A simple python script to detect faces in a webcam.
-
Python 3
-
opencv-python package
To install opencv, on command prompt type -
pip install opencv-python
- Downloading haar cascade files
Open the following link to download haar cascade xml file, keep it in the same folder as face-detection.py
https://drive.google.com/file/d/15dnrarVLAUzysNj0gF00vu8T4g7U0yaN/view
On command prompt/ terminal, Change to the face-detection directory
cd Python_and_the_web/Scripts/Miscellaneous/Face-detection
Run the face-detection.py script
python face-detection.py
To exit the execution - press q
Mitanshi Kshatriya