A example of face detection using OpenCV library and imutils. It uses the predefined caffe model and deploy.prototxt from OpenCv.
The application was created following the PyImageSearch tutorial.
The application has two ways of being executed:
- A video file;
- Your own webcam.
To run the app. you can do the following:
For a existing video:
python face_detect.py -v path/to/video -p path/to/deploy.prototxt -m path/to/caffe_modelIf you don't pass the -v argument, it will automatically use the Webcam for face detection.
At the end, it will produce a report containing the timestamp of each detection.