3DiVi Face SDK  3.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
DepthLivenessEstimator

Classes

class  face_sdk.modules.depth_liveness_estimator.Liveness
 Estimated liveness. More...
 
class  face_sdk.modules.depth_liveness_estimator.DepthLivenessEstimator
 Interface object used to estimate face liveness in order to prevent spoofing attacks. More...
 
class  face_sdk.modules.depth_map_raw.DepthMapRaw
 A depth map aligned with the original color image. More...
 

Functions

def face_sdk.modules.depth_liveness_estimator.DepthLivenessEstimator.estimate_liveness
 Estimates liveness of an observed face. More...
 
def face_sdk.modules.depth_map_raw.DepthMapRaw.__init__
 Height of the depth map. More...
 
def face_sdk.modules.depth_map_raw.DepthMapRaw.read_depth_map
 A function that loads a depth map from a file and converts it to a uint16 array.
 

Variables

int face_sdk.modules.depth_liveness_estimator.Liveness.NOT_ENOUGH_DATA = 0
 Not enough information.
 
int face_sdk.modules.depth_liveness_estimator.Liveness.REAL = 1
 The observed face belongs to a real person.
 
int face_sdk.modules.depth_liveness_estimator.Liveness.FAKE = 2
 The observed face is taken from a photo.
 
int face_sdk.modules.depth_liveness_estimator.Liveness.NOT_COMPUTED = 3
 The observed face was not checked.
 

Detailed Description

Function Documentation

def face_sdk.modules.depth_map_raw.DepthMapRaw.__init__ (   self)

Height of the depth map.

Width of the depth map.

Parameter of correspondence between the coordinates of the original image and depth map.

Parameter of correspondence between the coordinates of the original image and depth map.

Parameter of correspondence between the coordinates of the original image and depth map.

Parameter of correspondence between the coordinates of the original image and depth map.

The horizontal viewing angle of the depth map in degrees.

The vertical viewing angle of the depth map in degrees.

Pointer to the depth raw data.

Scale of values stored in the depth_data.

Stride in bytes.

def face_sdk.modules.depth_liveness_estimator.DepthLivenessEstimator.estimate_liveness (   self,
  sample 
)

Estimates liveness of an observed face.

The given depth map must be synchronized and aligned with the original image from which the sample was captured.

Parameters
[in]sampleFace sample.
[in]depth_mapDepth map.
Returns
Estimated liveness (see Liveness).