This repository contains a simple face detection system implemented using the OpenCV library. The system is able to detect faces in an image or video stream and draw a bounding box around the detected face.
Python 3.x
OpenCV (version 4.x or higher)
Numpy
Usage
> python detect_faces.py --image path/to/image
> python detect_faces.py --video
The system uses a Haar cascade classifier for face detection, which is a machine learning based approach. The classifier is trained on a dataset of positive and negative images, and is able to detect faces with high accuracy. However, it may not work well for all types of faces or in all lighting conditions.
Nizar Assad