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

Classes

class  face_sdk.modules.ir_frame_raw.IRFrameRaw
 An IR frame aligned with the original color image. More...
 
class  face_sdk.modules.ir_liveness_estimator.Liveness
 Estimated liveness. More...
 
class  face_sdk.modules.ir_liveness_estimator.IRLivenessEstimator
 Interface object used to estimate face liveness in order to prevent spoofing attacks. More...
 

Functions

def face_sdk.modules.ir_frame_raw.IRFrameRaw.__init__
 Height of an IR frame. More...
 
def face_sdk.modules.ir_frame_raw.IRFrameRaw.read_ir_frame
 A function that loads a IR frame from a file and converts it to a uint16 array.
 
def face_sdk.modules.ir_frame_raw.IRFrameRaw.__repr__
 
def face_sdk.modules.ir_liveness_estimator.IRLivenessEstimator.__init__
 
def face_sdk.modules.ir_liveness_estimator.IRLivenessEstimator.estimate_liveness
 Estimates liveness of an observed face. More...
 

Variables

 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_frame_rows
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_frame_cols
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_frame_2_image_offset_x
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_frame_2_image_offset_y
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_frame_2_image_scale_x
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_frame_2_image_scale_y
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_horizontal_fov
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_vertical_fov
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_frame_data
 
 face_sdk.modules.ir_frame_raw.IRFrameRaw.ir_data_stride_in_bytes
 
int face_sdk.modules.ir_liveness_estimator.Liveness.NOT_ENOUGH_DATA = 0
 Not enough information.
 
int face_sdk.modules.ir_liveness_estimator.Liveness.REAL = 1
 The observed face belongs to a real person.
 
int face_sdk.modules.ir_liveness_estimator.Liveness.FAKE = 2
 The observed face is taken from a photo.
 
int face_sdk.modules.ir_liveness_estimator.Liveness.NOT_COMPUTED = 3
 The observed face was not checked.
 

Detailed Description

Function Documentation

def face_sdk.modules.ir_frame_raw.IRFrameRaw.__init__ (   self)

Height of an IR frame.

Width of an IR frame.

Parameter of correspondence between the coordinates of an original image and an IR frame.

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

Parameter of correspondence between the coordinates of an original image and an IR frame.

Parameter of correspondence between the coordinates of an original image and an IR frame.

The horizontal viewing angle of an IR frame in degrees.

The vertical viewing angle of an IR frame in degrees.

Pointer to the IR data.

Stride in bytes.

def face_sdk.modules.ir_liveness_estimator.IRLivenessEstimator.estimate_liveness (   self,
  sample 
)

Estimates liveness of an observed face.

The given IR frame 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 Liveness).