# libfacedetection **Repository Path**: NobodyFeng/libfacedetection ## Basic Information - **Project Name**: libfacedetection - **Description**: A fast binary library for face detection in images. The face detection speed can reach 1500FPS. You can use it free of charge with any purpose. - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-07 - **Last Updated**: 2025-11-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # libfacedetection This is a binary library for CNN-based face detection in images. AVX2 is needed for running the library. That means your CPU should be Haswell microarchitecture or better. examples/libfacedetectcnn-example.cpp shows how to use the library. ![Examples](/images/cnnresult.png "Detection example") CNN-based Face Detection on Windows ------------- | Method |Time | FPS |Time | FPS | |--------------------|--------------|-------------|--------------|-------------| | | X64 |X64 | X64 |X64 | | |Single-thread |Single-thread|Multi-thread |Multi-thread | |OpenCV Haar+AdaBoost (640x480)| -- | -- | 12.33ms | 81.1 | |cnn (CPU, 640x480) | 64.21ms | 15.57 | 15.59ms | 64.16 | |cnn (CPU, 320x240) | 15.23ms | 65.68 | 3.99ms | 250.40 | |cnn (CPU, 160x120) | 3.47ms | 288.08 | 0.95ms | 1052.20 | |cnn (CPU, 128x96) | 2.35ms | 425.95 | 0.64ms | 1562.10 | * OpenCV Haar+AdaBoost runs with minimal face size 48x48 * Face detection only, and no landmark detection included. * Minimal face size ~12x12 * Intel(R) Core(TM) i7-7700 CPU @ 3.6GHz. CNN-based Face Detection on ARM Linux (Raspberry Pi 3 B+) ------------- | Method |Time | FPS |Time | FPS | |--------------------|--------------|-------------|--------------|-------------| | |Single-thread |Single-thread|Multi-thread |Multi-thread | |cnn (CPU, 640x480) | 512.04ms | 1.95 | 174.89ms | 5.72 | |cnn (CPU, 320x240) | 123.47ms | 8.10 | 42.13ms | 23.74 | |cnn (CPU, 160x120) | 27.42ms | 36.47 | 9.75ms | 102.58 | |cnn (CPU, 128x96) | 17.78ms | 56.24 | 6.12ms | 163.50 | * Face detection only, and no landmark detection included. * Minimal face size ~12x12 * Raspberry Pi 3 B+, Broadcom BCM2837B0, Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz The dll cannot run on ARM. The library should be recompiled from source code for ARM compatibility. If you need the source code, a commercial license is needed. Author ------------- * Shiqi Yu, Contributors ------------- * Jia Wu * Shengyin Wu * Dong Xu Acknowledgment ------------- The work is partyly supported by the Science Foundation of Shenzhen (Grant No. JCYJ20150324141711699).