Tiny Python program to capture the image and video, and detect faces (in real time) powered by OpenCV.
image.py
: Detect faces inside a image (one frame)video.py
: Detect faces inside a video filewebcam.py
: Detect faces from webcam real time
$ python image.py
$ python video.py
$ python webcam.py
The haarcascade_frontalface_default.xml
originally available on https://github.com/opencv/opencv/blob/master/data/haarcascades/haarcascade_frontalface_default.xml.