Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 967 Bytes

File metadata and controls

40 lines (27 loc) · 967 Bytes

FaceDetection

A simple face detection application using python and opencv dnn. For detail explanataion check out my blog.

This was possible only due to the simple and clear explanation by Adrian Rosebrock's blog.

How to run?

1. Create virtual environment

python3 -m venv my_env
source my_env/bin/activate

2. Install required dependencies

pip3 install -r requirements.txt

3. Execute

a. To detect faces from Images

python3 -m detect_faces_from_image -i /path/to/image/file.jpg

b. To detect faces from Videos

i. To detect faces from video files
python3 -m detect_faces_from_video -v /path/to/video/file.mov
ii. To detect faces realtime using camera
python3 -m detect_faces_from_video