3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
face_sdk.modules.raw_sample.RawSample Class Reference

Interface object that stores a captured face sample. More...

Public Member Functions

def __init__
 
def get_left_eye
 Get a point of the left eye. More...
 
def get_right_eye
 Get a point of the right eye. More...
 
def get_rectangle
 Get a face bounding rectangle. More...
 
def get_landmarks
 Get anthropometric landmarks. More...
 
def get_iris_landmarks
 Get the characteristic points of the eyes. More...
 
def get_angles
 Get a face orientation. More...
 
def has_original_image
 Does the sample store the original image (True for samples made with VideoWorker with enabled store_original_frame_in_raw_sample). More...
 
def get_score
 Get the score of the detected face (for samples made with supported single-shot Capturers). More...
 
def get_face_visibility_score
 Get the score of face visibility. More...
 
def get_type
 Get a sample type. More...
 
def get_frame_id
 Get an ID of the frame, in which this RawSample is detected (for samples made with VideoWorker). More...
 
def get_id
 Get a face ID. More...
 
def cut_face_image
 Crop the face and save in the specified format. More...
 
def cut_face_raw_image
 Crop face in RawImage format (with raw pixels). More...
 
def save
 Save (serialize) the sample. More...
 
def get_face_cut_rectangle
 Get a cropping rectangle (for preview) that will be used in cutFaceImage. More...
 
def save_without_image
 Save (serialize) all sample information except the image. More...
 
def get_original_image
 Get an original image. More...
 
def downscale_to_preferred_size
 Clone this RawSample with an internal face image downscaled to preferred size and without an original image. More...
 
def to_context
 

Detailed Description

Interface object that stores a captured face sample.