Skip to content

Infra Red Liveness Estimation example#

What it does#

This example demonstrates how to use the detector and to estimate a liveness on an infra red image.

Prerequisites#

This example assumes that you have already read the FaceEngine Handbook (or at least have it somewhere nearby for reference) and know some core concepts, like memory management, object ownership, and life-time control. This sample will not explain these aspects in detail.

How to run#

Use the following command to run the example.

./example_ir <some_infra_red_image>

Example output#

Warped images with faces.

[LivenessIREstimatorExample] Detecting faces.
Found 6 face(s).
Detection 1
Rect: x=29.1432 y=25.6546 w=72.6785 h=80.0122
Face is real: true score: 0.999407
Detection 2
Rect: x=29.8662 y=233.287 w=72.7124 h=80.0827
Face is real: true score: 1
Detection 3
Rect: x=149.572 y=26.2656 w=75.1791 h=86.9817
Face is real: true score: 0.972015
Detection 4
Rect: x=151.426 y=232.602 w=75.6714 h=83.8235
Face is real: true score: 0.999995
Detection 5
Rect: x=302.828 y=26.9954 w=73.9233 h=84.0742
Face is real: false score: 0.270386
Detection 6
Rect: x=302.983 y=216.565 w=77.1824 h=97.5578
Face is real: true score: 0.999971
Back to top