Fastest Realtime Multiple Faces Detection using the deep neural networks (dnn) module algorithm in OpenCV.
OpenCV dnn module supports running inference on pre-trained deep learning models from popular frameworks such as TensorFlow, Torch, Darknet and Caffe.
Imutils are a series of convenience functions to make basic image processing functions such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and both Python 2.7 and Python 3
- Python 3.7
- OpenCV 4.2.0
- imutils
- numpy==1.15.4
- Download official deploy.prototxt and place it under a folder called data/model.
- Download res10_300x300_ssd_iter_140000.caffemodel and place it under a folder called data/weights.
Firstly create data folder |
---|
Then create model folder inside data folder |
And create weights folder inside data folder |
- opencv
- numpy imutils
pip install opencv-python
pip install numpy
pip install imutils
- Clone the repository
git clone https://github.com/muhammadshiraz/Fastest-Realtime-Multiple-Faces-Detection.git
- Move to the directory
cd Fastest-Realtime-Multiple-Faces-Detection
- To view the Fastest Realtime Multiple Faces Detection
python face_detection_cap.py