coral-pi-rest-server
coral-pi-rest-server copied to clipboard
Add docker container
https://blogs.sap.com/2020/02/11/containerizing-a-tensorflow-lite-edge-tpu-ml-application-with-hardware-access-on-raspbian/
I will love to use this in a docker container to classify birds detected by Frigate.
So I'm working on trying to swap my deepstack end points with just using a coral end point.
I've got things working in docker, and if it's a 1-1 camera->coral-deepstack, it works fine. But if I try to connect more than one camera and process more than one image, it gives a 500 error. Which, I think makes sense because I think the script isn't designed to handle more than one request at a time.
Any thoughts on adding multiprocessing or a queue of some sort to the flask configuration? I've been looking into it, but the python is a bit over my head. :/
An approach like this https://github.com/robmarkcole/ServingMLFastCelery You can also see how deepstack does it