Skip to content

Repository files navigation

libfacedetection

This is a binary library for face detection and face landmark detection in images. The 32-bit and 64-bit dll files are provided. To achieve better performance, the 64-bit dll is recommended.

examples/libfacedetect-example.cpp shows how to use the library.

Examples

Comparison on Windows

MethodTimeFPSTimeFPSTimeFPSMisc
Win32Win32X64X64X64X64
Single-threadSingle-threadSingle-threadSingle-threadMulti-threadMulti-thread
OpenCV--------12.33ms81.1Yaw angle: -60 to 60 degrees
frontal2.92ms342.52.41ms414.90.652ms1533.1Yaw angle: -60 to 60 degrees
frontal-surveillance3.83ms261.13.37ms269.70.944ms1059.8Yaw angle: -70 to 70 degrees
multiview7.12ms140.45.81ms172.11.597ms626.4Yaw angle: -90 to 90 degrees
multiview_reinforce10.95ms91.39.15ms109.32.725ms367.0Yaw angle: -90 to 90 degrees
  • Face detection only, and no landmark detection included.
  • 640x480 image size (VGA), scale=1.2, minimal window size = 48.
  • Intel(R) Core(TM) i7-4770 CPU @ 3.4GHz.
  • OpenCV classifier file: haarcascade_frontalface_alt.xml

Comparison on ARM

MethodTimeFPSMisc
frontal12.5ms80.0Yaw angle: -60 to 60 degrees
frontal-surveillance15.7ms63.7Yaw angle: -70 to 70 degrees
multiview27.8ms36.0Yaw angle: -90 to 90 degrees
multiview_reinforce38.4ms26.0Yaw angle: -90 to 90 degrees
  • Face detection only, and no landmark detection included.
  • 640x480 image size (VGA), scale=1.2, minimal window size = 48
  • NVIDIA TK1 "4-Plus-1" 2.32GHz ARM quad-core Cortex-A15 CPU
  • Multi-core parallelization is disabled.
  • C programming language, and no SIMD instruction is used.

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.

Evaluation

FDDB: http://vis-www.cs.umass.edu/fddb/index.html

Evaluation on FDDB

  • scale=1.08
  • minimal window size = 16
  • the heights of the face rectangles are scaled to 1.2 to fit the ground truth data in FDDB.

Author

Contributors

  • Jia Wu
  • Shengyin Wu
  • Dong Xu

About

A fast binary library for face detection and face landmark detection in images. The face detection speed can reach 1500FPS. You can use it free of charge with any purpose.

Resources

Stars

9 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages