[in] input_image: Image to be calculated; support four orientations of up, down, left and right. Facing up is recommended for a better performance.
[in] input_landmarks: Face key points.
[in] face_quality_flag: Flag, set this flag to calculate a specified face quality index; can use '|' to combine and calculate multiple flags at the same time.
[out] out_face_quality_result: Return face quality result.
Return:
[return] Return STID_OK if successful, otherwise return error code.
stid_facepro_calcpose_create_handle
Function: Create head pose calculation handle.
Declaration:
Parameters:
[out] out_handle: Return the created handle pointer.
[in] model_filename: Pass in the model file location.
Return:
[return] Return STID_OK if successful, otherwise return error code.
stid_facepro_calcpose_destroy_handle(
Function: Release handle.
Declaration:
Parameters:
[in] handle: Initialized head pose calculation handle.
Return: None.
stid_facepro_calcpose_get_head_pose
Function: Determine the three-dimensional face rotation angle and the distance between the two eyeballs by locating the key points; first calculate the roll angle, then calculate the yaw and the pitch.
Declaration:
Parameters:
[in] handle: Initialized head pose calculation handle.
[in] input_landmarks: Face key points.
[out] out_head_pose: Output head pose.
Return:
[return]Return ST_OK if successful, otherwise return error type.