A CLI application for detecting faces, eyes and smiles while capturing and streaming live video from webcam. In case another camera is to be used instead of webcam, change the index from 0 to the index of the camera being used in file faceDetection.py at line
cap = cv2.VideoCapture(0)
- Clone the repo via URL
- Set up virtual environment:
- Create virtual environment using command
virtualenv venv
- Activate the virtual environment venv environment
- Install requirements using command
pip install -r requirements.txt
- Create virtual environment using command
- Run the project using command
python faceDetection.py