Face detection sample Python scripts.
Run the face-test-ocv2.py script - python face-detect-ocv2.py You should see a green rectangle around the faces.
anypic-face-ocv2.py: Requires the first command line argument to be the name of an image for which you would like to know if a face exists within or not.
rainbow-face-ocv2.py: Detects the faces in the four image files and draws rectangles around them in different colors. python rainbow-face-ocv2.py
video-face-ocv2.py: Opens the webcam and starts looking for a face in the live video. Pressing Escape exits.
outlet-ocv2.py: Shows a custom Haar cascade that detects AC power outlets.