I am currently writing the "Pflichtenheft" (as we have to for the practical). I think the mediseg project should have its own executable. This program should start and load the model before we feed it with images to reduce latency. We could use a web service approach as with sst before, but that is not so clean. Cleaner would be a system service.
I found a couple of sources how to create a Python service:
However, I'm currently not quite sure how to call the service and give it parameters.
Essentially, I am thinking of the following workflow:
- User (or system) starts the
medisegd daemon
- Daemon loads model, makes as much as possible and keeps the important stuff in memory.
- User calls
mediseg --input image.jpg --output segmentation.jpg as often as he wants with little latency
I am currently writing the "Pflichtenheft" (as we have to for the practical). I think the
medisegproject should have its own executable. This program should start and load the model before we feed it with images to reduce latency. We could use a web service approach as withsstbefore, but that is not so clean. Cleaner would be a system service.I found a couple of sources how to create a Python service:
However, I'm currently not quite sure how to call the service and give it parameters.
Essentially, I am thinking of the following workflow:
medisegddaemonmediseg --input image.jpg --output segmentation.jpgas often as he wants with little latency