3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
Liveness2DEstimator

Classes

class  face_sdk.modules.liveness_2d_estimator.Liveness
 Estimated liveness. More...
 
class  face_sdk.modules.liveness_2d_estimator.LivenessAndScore
 Estimated liveness and score. More...
 
class  face_sdk.modules.liveness_2d_estimator.Liveness2DEstimator
 Interface object used to estimate face liveness in order to prevent spoofing attacks. More...
 

Functions

def face_sdk.modules.liveness_2d_estimator.LivenessAndScore.__init__
 Estimated liveness (see Liveness for details). More...
 
def face_sdk.modules.liveness_2d_estimator.LivenessAndScore.__repr__
 
def face_sdk.modules.liveness_2d_estimator.Liveness2DEstimator.__init__
 
def face_sdk.modules.liveness_2d_estimator.Liveness2DEstimator.estimate_liveness
 liveness of an observed face. More...
 
def face_sdk.modules.liveness_2d_estimator.Liveness2DEstimator.estimate
 liveness and score of an observed face. More...
 

Variables

int face_sdk.modules.liveness_2d_estimator.Liveness.NOT_ENOUGH_DATA = 0
 Not enough information.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.REAL = 1
 The observed face belongs to a real person.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.FAKE = 2
 The observed face is taken from a photo.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.NOT_COMPUTED = 3
 The observed face was not checked.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.FACE_NOT_FULLY_FRAMED = 4
 The observed face is out of image boundaries.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.MULTIPLE_FACE_FRAMED = 5
 More than one face detected on the input image.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.FACE_TURNED_RIGHT = 6
 The observed face is not frontal and turned right.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.FACE_TURNED_LEFT = 7
 The observed face is not frontal and turned left.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.FACE_TURNED_UP = 8
 The Observed face is not frontal and turned up.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.FACE_TURNED_DOWN = 9
 The Observed face is not frontal and turned down.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.BAD_IMAGE_LIGHTING = 10
 Input image has bad lighting.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.BAD_IMAGE_NOISE = 11
 Input image is too noisy.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.BAD_IMAGE_BLUR = 12
 Input image is too blurry.
 
int face_sdk.modules.liveness_2d_estimator.Liveness.BAD_IMAGE_FLARE = 13
 Input image is too flared.
 
 face_sdk.modules.liveness_2d_estimator.LivenessAndScore.liveness
 
 face_sdk.modules.liveness_2d_estimator.LivenessAndScore.score
 

Detailed Description

Function Documentation

def face_sdk.modules.liveness_2d_estimator.LivenessAndScore.__init__ (   self,
  liveness,
  score 
)

Estimated liveness (see Liveness for details).

Liveness score.

def face_sdk.modules.liveness_2d_estimator.Liveness2DEstimator.estimate (   self,
  sample 
)

liveness and score of an observed face.

Parameters
[in]sampleFace sample.
Returns
liveness and score (see LivenessAndScore for details).
def face_sdk.modules.liveness_2d_estimator.Liveness2DEstimator.estimate_liveness (   self,
  sample 
)

liveness of an observed face.

Parameters
[in]sampleFace sample.
Returns
liveness (see Liveness for details).