This is a modified version from tprlab's opencv-detect-ssd.
/docker-app folder contains Flask server source code to be executed in docker container
The server exposes 2 POST methods:
-
/detect - accepting image, returning detections in JSON
-
/ddetect - accepting image, returning image with drawn detections
Example:
curl -X POST -F "[email protected]" host:80/ddetect --output a.jpg