A simple example for detecting and tracking either a single face or multiple faces.
- OpenCV with Python Bindings
- dlib
- numpy
single_face_detection_tracking.py is for single face detection (largest size face will be detected).
- Ensure that within the file you have set the path for your OpenCV installation's HaarCascade xml files.
- Run the program:
python single_face_detection_tracking.py
- Press 'q' at any time to quit.
multi_face_detection_tracking.py is for multiple faces. All faces will be tracked and detected.
- Ensure that within the file you have set the path for your OpenCV installation's HaarCascade xml files.
- Run the program:
python multi_face_detection_tracking.py
- Press 'q' at any time to quit.