Raspbian stretch with OpenCV installed and a python script for face detection
89
I modeled this image after this one Tested on Raspberry Pi 3B+ with Raspbian Stretch and a generic logitech webcam To run it the first time you can use:
docker run -it --privileged -v ~/opencv_data:/data --name face_detection umbobaldi/opencv_face_detection:1.0
--privileged it's useful to let the container access to all devices connected to the raspberry, in particular the webcam.~/opencv_data:/data it's useful to see/copy the output image from OpenCV.The python script for face detection and the xml file which is used by OpenCV are located in /usr/scr/ocv_face_detection.
The container will run the script for face detection on startup and will save the output image in /data only if at least one face is detected.
If you find errors I apologize, it's my first Docker Image
docker pull umbobaldi/opencv_face_detection:1.0