Face SDK  1.13.0 Mozart release
Face Recognition Software Development Kit
Public Types | Public Member Functions | List of all members
face_sdk::liveness_102_result Class Referenceabstract

The result of liveness 102 algorithm. More...

#include <liveness_102.h>

Inheritance diagram for face_sdk::liveness_102_result:
face_sdk::liveness_result

Public Types

enum  {
  ERR_IMAGE_TOO_SMALL = liveness_result::SUCCESS + 1, ERR_TOO_BIG_FACE, ERR_TOO_LARGE_YAW_ANGLE, ERR_TOO_LARGE_ROLL_ANGLE,
  ERR_UNSUPPORTED_DETECTOR_VERSION, ERR_FACE_OUT_OF_BOUNDS, ERR_LAST = ERR_FACE_OUT_OF_BOUNDS
}
 
- Public Types inherited from face_sdk::liveness_result
enum  { SUCCESS }
 

Public Member Functions

virtual float value1 () const =0
 predicted value1. All three values must be greater than corresponsding thresholds for passing liveness.
 
virtual float value2 () const =0
 predicted value2. All three values must be greater than corresponsding thresholds for passing liveness.
 
virtual float value3 () const =0
 predicted value3. All three values must be greater than corresponsding thresholds for passing liveness.
 
- Public Member Functions inherited from face_sdk::liveness_result
virtual int error_code () const =0
 Error code. Non-success error codes depend on liveness algoritm version. More...
 
virtual bool real () const =0
 false in case of spoof Make sense only if error_code is SUCCESS
 

Detailed Description

The result of liveness 102 algorithm.

Use face_sdk::liveness_results_102_cast function to cast face_sdk::liveness_result to face_sdk::liveness_102_result

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ERR_IMAGE_TOO_SMALL 

input image is too small. Width and Height of the image must be not less than 128

ERR_TOO_BIG_FACE 

detected face width is too big. The ratio of the distance between the eyes and the image size must not be greater than 0.2325

ERR_TOO_LARGE_YAW_ANGLE 

detected face yaw angle is too big. The angle must not be greater than 25

ERR_TOO_LARGE_ROLL_ANGLE 

detected face rool angle is too big. The angle must not be greater than 25

ERR_UNSUPPORTED_DETECTOR_VERSION 

given face_sdk::face object was made by unsupported face detector version. See list of dependencies.

ERR_FACE_OUT_OF_BOUNDS 

detected face is out of image bounds


The documentation for this class was generated from the following file: