Binocular Face Tracking
Binocular Face Tracking
Windows/Linux/Arm_Linux interface is described here, for Android interface please refer to Android Interface Description.
stid_facepro_binocular_tracking_create_handle
Function: Create a handle by loading a model file.
Note:
Binocular face tracking can only track one person at a time.
Declaration:
Parameters:
[out] out_handle: Return the initialized handle, when not in use, call destroy_handle to release resource.
[in] rgb_alignment_model_filename: Pass the location of the alignment model file.
[in] infrared_alignment_model_filename: Pass the location of the alignment model file.
[in] config: Setup the configuration options for detector. Set to 0 to use default configuration.
Return:
[return] Return STID_OK if successful, otherwise return error code.
Note: The RGB and IR cameras use the same key point model, therefore the same value can be passed in for rgb_alignment_model_filename and infrared_alignment_model_filename.
stid_facepro_binocular_tracking_destroy_handle
Function: Release handle.
Declaration:
Parameters:
[in] handle: Handle to be released.
Return: None.
stid_facepro_binocular_tracking_reset
Function: Restart handle.
Declaration:
Parameters:
[in] handle: Handle to be restarted.
Return: None.
stid_facepro_binocular_tracking_track
Function: Input one frame of image for face tracking. Call this interface continuously to implement face tracking for continuous frames.
Note:
Binocular face tracking can only track one person at a time.
Declaration:
Parameters:
[in] handle: Initialized handle.
[in] rgb_input_image: Pass in a frame of visible light image.
[in] infrared_input_image: Pass in a frame of infrared image.
[in] face_orientation: Specify face orientation.
[in] time_stamp_s: Time stamp information of the frame, in seconds, floating point (decimal point represents the precision in seconds).
[out] out_rgb_targets_array: Return the face information array detected from the visible light image. API is responsible for allocating memory, need to call stid_facepro_tracking_release_targets_array to release.
[out] out_rgb_targets_array_count Return the number of faces detected from the visible light image.
[out] out_infrared_targets_array: Returns the face information array detected from the infrared image. API is responsible for allocating memory, need to call stid_facepro_tracking_release_targets_array to release.
[out] out_infrared_targets_array_count Return the number of faces detected from the infrared image.
Return:
[return] Return STID_OK if successful, otherwise return error code.
Note: The interface for releasing binocular tracking detection result is the same as the one for monocular tracking detection.
Last updated