Skip to main content
Version: 3.24.0 (latest)

Face tracking and face estimation

The bin directory contains the executable file demo:

demo

The sample demonstrates tracking, detection and cropping of faces, detection of anthropometric points and angles, as well as estimation of face quality, age and gender, emotions, and liveness (by processing an RGB image from your camera).

To make a quick run of the demo with default parameters on Windows, go to the bin folder and double-left-click demo.exe.

Location of C++ demo

The upper left corner of the demo shows Face SDK components, which can be turned on and off by the left mouse click:

  • rectangles – Face rectangle
  • angles – Angles
  • quality – Image quality
  • liveness – Liveness
  • age and gender – Age and gender
  • base cut, full cut, token cut – Type of face cropping (basic, full frontal, token frontal)
  • points – Anthropometric points
  • face quality – Face quality
  • angles vectors – Vector angles
  • emotions – Emotions
  • masked face - Checks the presence of a mask on the face
  • eyes openness - Checks whether the eyes are closed or open

Running demo.exe

Error messages (if any) are printed in the console.

You can also run demo.exe specifying some parameters (for example, if you have an online license).
Startup parameters:

  • capturer_conf – Path to the capturer config file (Learn more about types of Capturer config files.
  • config_dir – Path to the conf/facerec directory
  • dll_path – Path to the libfacerec.so or facerec.dll library file
  • license_dir – Path to the directory with a license; provide this parameter if you need to change a default directory license

Source code: demo.cpp

The OpenCV library is required for build.