1 min to read
Facial Detection
This is a simple yet quick implementation of facial detection using the pretrained Caffe
model. I created this as a helper module to be used in future projects whereever there could be a need to write a module to detect faces among images and videos.
- the
prototxt
file contains the model architecture i.e. the layers - the
ResNet caffemodel
file contains the weights of the actual layers of the SSD (Single Shot Detection) model.
How to run?
for still images:
python detect_faces.py --image your-image-file.jpg --prototxt deploy.prototxt.txt \
--model res10_300x300_ssd_iter_140000.caffemodel
for videos:
python detect_faces_video.py --prototxt deploy.prototxt.txt --model res10_300x300_ssd_iter_140000.caffemodel
Check out the GitHub repo to know more.
If you liked this project, please consider buying me a coffee
Comments