snowzach / doods

DOODS - Dedicated Open Object Detection Service
MIT License
304 stars 31 forks source link

Implement way to healthcheck edgetpu detector to ensure it's still functioning #7

Closed snowzach closed 4 years ago

snowzach commented 4 years ago

I would prefer to do this with a docker healthcheck.

The following command will run a basic detection of a 1 pixel image and return a status code:

echo "{\"detector_name\":\"edgetpu\", \"data\":\"Qk06AAAAAAAAADYAAAAoAAAAAQAAAAEAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA/////w==\"}" | curl -d@- -f http://localhost:8080/detect

I need to change some of the return values inside of doods for this to work. Opening an issue to track.

snowzach commented 4 years ago

This should work now. Doods should exit out.