Monocular Liveness Detection
Last updated
Was this helpful?
Last updated
Was this helpful?
Windows/Linux/Arm_Linux interface is described here, for Android interface please refer to .
Function: Create a handle by loading a specified model file
Declaration:
Parameters:
[in] model_filename: Pass the location of the model file
[out] out_handle: Return the initialized handle, when not in use, call stid_face_anti_spoofing_destroy_handle to release resource.
Return:
[return] Return STID_OK if successful, otherwise return error code.
Function: Release handle
Declaration:
Parameters:
[in] handle: Handle to be released
Return: None
Function: Anti-hack face detection on input images
Declaration:
Parameters:
[in] input_landmarks: Face key points
[out] out_hack_score: Returns hack detection result, within the range of 0~1. The larger the score, the more likely it is a hack.
Return:
[return] Return STID_OK if successful, otherwise return error code.
Function: Obtain the default hack detection threshold
Declaration:
Parameters:
[in] handle: Initialized handle
[out] out_default_hackness_threshold: Return anti-hack detection threshold, when the hackness_score < this threshold, the anti-hack detection is passed.
Return:
[return] Return STID_OK if successful, otherwise return error code.