3DiVi Face SDK  3.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
pbio::IRLivenessEstimator Class Reference

Interface object used to estimate face liveness in order to prevent spoofing attacks. More...

#include <IRLivenessEstimator.h>

Public Types

enum  Liveness { NOT_ENOUGH_DATA = 0, REAL = 1, FAKE = 2, NOT_COMPUTED = 3 }
 Estimated liveness. More...
 
typedef LightSmartPtr
< IRLivenessEstimator >::tPtr 
Ptr
 Alias for the type of a smart pointer to IRLivenessEstimator.
 

Public Member Functions

Liveness estimateLiveness (const pbio::RawSample &sample, const pbio::IRFrameRaw ir_frame)
 Estimates liveness of an observed face. The given IR map must be synchronized and aligned with the original image from which the sample was captured. More...
 

Detailed Description

Interface object used to estimate face liveness in order to prevent spoofing attacks.

Member Enumeration Documentation

Estimated liveness.

Enumerator
NOT_ENOUGH_DATA 

Not enough information.

REAL 

The observed face belongs to a real person.

FAKE 

The observed face is taken from a photo.

NOT_COMPUTED 

The observed face was not checked.

Member Function Documentation

IRLivenessEstimator::Liveness pbio::IRLivenessEstimator::estimateLiveness ( const pbio::RawSample sample,
const pbio::IRFrameRaw  ir_frame 
)
inline

Estimates liveness of an observed face. The given IR map must be synchronized and aligned with the original image from which the sample was captured.

Parameters
[in]sampleFace sample.
[in]ir_frameIR frame.
Returns
Estimated liveness (see IRLivenessEstimator.Liveness for details).