Code Monkey home page Code Monkey logo

libfacedetection's Introduction

libfacedetection

This is a binary library for face detection in images. The 32-bit and 64-bit dll files are provided.

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

Comparison on Windows

Method Time FPS Misc
OpenCV 21.2ms 47.2 Yaw angle: -40 to 40 degrees. Classifier: haarcascade_frontalface_alt.xml
frontal 2.7ms 370.4 Yaw angle: -60 to 60 degrees
frontal-surveillance 3.8ms 263.2 Yaw angle: -70 to 70 degrees
multiview 6.6ms 151.5 Yaw angle: -90 to 90 degrees
multiview_reinforce 9.5ms 105.3 Yaw angle: -90 to 90 degrees
  • 640x480 image size (VGA), scale=1.2, minimal window size = 48
  • Intel(R) Core(TM) i7-4770 CPU @ 3.4GHz
  • Multi-core parallelization is enabled for these five methods.

Comparison on iPhone(+)

Method Time (iPhoneSE) FPS (iPhoneSE) Time (iPhone5S) FPS (iPhone5S) Misc
frontal 14.9ms 67.1 23.8 42.0 Yaw angle: -60 to 60 degrees
multiview 47.3ms 21.1 75.1 13.3 Yaw angle: -90 to 90 degrees
multiview_reinforce 83.2ms 12.0 132.4 7.6 Yaw angle: -90 to 90 degrees
  • 640x480 image size (VGA), scale=1.2, minimal window size = 48
  • Multi-core parallelization is disabled.
  • C programming language, and no SIMD instruction is used.
  • (+) The performance data on iPhone is obtained using a previous version. Currrent version can gain ~40% speed improvement.

Comparison on ARM

Method Time FPS Misc
frontal 21.5ms 46.5 Yaw angle: -60 to 60 degrees
frontal-surveillance 36.5ms 27.4 Yaw angle: -70 to 70 degrees
multiview 67.1ms 14.9 Yaw angle: -90 to 90 degrees
multiview_reinforce 112.6ms 8.9 Yaw angle: -90 to 90 degrees
  • 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.

Tip

  • Do NOT use the functions in multiple threads. The memory used in the functions is not protected according to multiple threads.

Author

Contributors

  • Shengyin Wu, Shenzhen University, China
  • Dong Xu, Shenzhen University, China

libfacedetection's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.