Facial Attribute (wearing mask) Detection
Facial attribute (wearing mask) detection
Windows interface specifications are detailed below,
The SDK currently only supports the detection of whether a person is wearing a mask or not
stid_facepro_attribute_create_handle
Function: creates a handle by loading the model file
Note:
Since the handle of the current SDK does not support multi-threaded calls for the time being, if multi-threaded multiple calls are needed, multiple handles need to be created with each thread in a separate handle
The initialization function only needs to be called once in a thread. You can call the face detection function multiple times later without creating a handle repeatedly
Statement:
Parameters:
[out] out_handle returns the initialized handle. When such a handle is not in use, you need to call stid_facepro_attribute_destroy_handle to release resources
Returns the initialized handle. When such a handle is not in use, you need to call destroy_handle to release resources
[in] model_filename passes in the path of attributes determination model file
Return:
[return] Successfully returns STID_OK, otherwise, it will return an error code
stid_facepro_attribute_destroy_handle
Function: releases the handle
Statement:
Parameters:
[in] handle handle to be released
Return:
None
stid_facepro_attribute_recognition
Function: Recognition of facial attributes. The SDK currently only supports the recognition of whether a person is wearing a mask or not
Statement:
Parameters:
[in] handle handle initialized
[in] input_image face image
[in] input_landmarks array of landmarks of the faces to be detected
[in] face_count number of faces to be detected
[out] result array of attribute results
Return:
[return] Successfully returns STID_OK, otherwise, it will return an error code
stid_facepro_attribute_release_result
Function: Release attribute results
Statement:
Statement:
[in] attribute_result array of attribute results
[in] face_count number of faces
Return:
None
Last updated