3DiVi Face SDK  3.21.0
 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.__init__
 
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.
 
def face_sdk.modules.depth_map_raw.DepthMapRaw.__repr__
 

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.
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_map_rows
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_map_cols
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_map_2_image_offset_x
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_map_2_image_offset_y
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_map_2_image_scale_x
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_map_2_image_scale_y
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.horizontal_fov
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.vertical_fov
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_data
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_unit_in_millimeters
 
 face_sdk.modules.depth_map_raw.DepthMapRaw.depth_data_stride_in_bytes
 

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).