YuNet is a light-weight, fast and accurate face detection model, which achieves 0.834(AP_easy), 0.824(AP_medium), 0.708(AP_hard) on the WIDER Face validation set.
face_detection_yunet_2023mar_int8bq.onnx represents the block-quantized version in int8 precision and is generated using block_quantize.py with block_size=64.
*: 'quant' stands for 'quantized'.
**: 'block' stands for 'blockwise quantized'.
Demo
Python
Run the following command to try the demo:
shell
1# detect on camera input2python demo.py
3# detect on an image4python demo.py --input /path/to/image -v
56# get help regarding various parameters7python demo.py --help
C++
Install latest OpenCV and CMake >= 3.24.0 to get started with:
shell
1# A typical and default installation path of OpenCV is /usr/local2cmake -B build -D OPENCV_INSTALLATION_PATH=/path/to/opencv/installation .3cmake --build build
45# detect on camera input6./build/demo
7# detect on an image8./build/demo -i=/path/to/image -v
9# get help messages10./build/demo -h
Example outputs
webcam demo
largest selfie
License
All files in this directory are licensed under MIT License.