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

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
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