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

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

#include <LivenessEstimator.h>

Public Types

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

Public Member Functions

void addSample (const pbio::RawSample &)
 Add a sample of the observed face from the new frame. More...
 
Liveness estimateLiveness ()
 Estimate liveness of the observed face. More...
 

Detailed Description

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

Member Enumeration Documentation

Estimated liveness.

Enumerator
NOT_ENOUGH_DATA 

Not enough information.

REAL 

The observed face belongs to a living person.

FAKE 

The observed face is taken from a photo.

Member Function Documentation

void pbio::LivenessEstimator::addSample ( const pbio::RawSample sample)
inline

Add a sample of the observed face from the new frame.

Parameters
[in]sampleFace sample.
LivenessEstimator::Liveness pbio::LivenessEstimator::estimateLiveness ( )
inline

Estimate liveness of the observed face.

Returns
Estimated liveness.