Skip to content

Latest commit

 

History

History
 
 

face-detection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Face Detection in Python using webcam

A simple python script to detect faces in a webcam.

Requeriments

  • 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

Running the script

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

Screenshot

output

Author

Mitanshi Kshatriya