This is an open source library for CNN-based face detection in images. The CNN model has been converted to static variables in C source files. The source code does not depend on any other libraries. What you need is just a C++ compiler. You can compile the source code under Windows, Linux, ARM and any platform with a C++ compiler. SIMD instructions are used to speed up the detection. You can enable AVX2 if you use Intel CPU or NEON for ARM. The model file has also been provided in directory ./models/. The file examples/detect-image.cpp and examples/detect-camera.cpp show how to use the library. The library was trained by libfacedetection.train. You can copy the files in directory src/ into your project, and compile them as the other files in your project. The source code is written in standard C/C++. It should be compiled at any platform which supports C/C++.

Features

  • You can also compile the source code to a static or dynamic library, and then use it in your project
  • You can enable OpenMP to speedup, but the best solution is to call the detection function in different threads
  • You can compile the source code under Windows, Linux, ARM and any platform with a C++ compiler
  • SIMD instructions are used to speed up the detection
  • The model file has also been provided in directory ./models/
  • The library was trained by the technology of libfacedetection.train

Project Samples

Project Activity

See All Activity >

License

BSD License

Follow libfacedetection

libfacedetection Web Site

Other Useful Business Software
Gemini 3 and 200+ AI Models on One Platform Icon
Gemini 3 and 200+ AI Models on One Platform

Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

Build generative AI apps with Vertex AI. Switch between models without switching platforms.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of libfacedetection!

Additional Project Details

Operating Systems

Linux, Windows

Programming Language

C++

Related Categories

C++ Libraries, C++ Image Recognition Software

Registered

2021-06-03