Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Check the latest DNN-based face detector: https://github.com/opencv/opencv/blob/master/samples/dnn/resnet_ssd_face.cpp (python version: https://github.com/opencv/opencv/blob/master/samples/dnn/resnet_ssd_face_python.py).

The model is here: https://github.com/opencv/opencv_3rdparty/tree/dnn_samples_face_detector_20170830 (FP16 model: https://github.com/opencv/opencv_3rdparty/tree/dnn_samples_face_detector_20180205_fp16).

It consumes ~ 11 Mb memory for weights plus 38 Mb for blobs and runs at 40 ms per frame (25 FPS) on Core-i7. Also there can be possibility to offload processing to GPU using OpenCL backend.

Finally you can train your own model: https://github.com/opencv/opencv/blob/master/samples/dnn/face_detector/how_to_train_face_detector.txt