Face Detection on images, videos and webcam using OpenCV and Python.
The program by default is in webcam mode.
git clone https://github.com/CSjianbel/OpenCV-Face-Detection.git""
cd OpenCV-Face-Detection
pip install -r requirements.txt
python face-detect.py [-h] [-m MODE] [-p PATH]
python face-detect.py -m video ./video/test.mp4
optional arguments:
-h, --help show this help message and exit
-m MODE, --mode MODE Set mode to Detect face in [image, video, webcam] :
DEFAULT: webcam
-p PATH, --path PATH Path to image or video file requires --mode to be set
to image or video
Images used for testing were taken from unsplash.com
Photo by Andrey Zvyagintsev on Unsplash
Photo by Valentin Lacoste on Unsplash
Photo by Joel Mott on Unsplash
Videos used for testing were takend from pexels.com
Video by cottonbro from Pexels
Video by Yaroslav Shuraev from Pexels
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
A Project by Jiankarlo A. Belarmino