AllParam
Function
This topic describes all parameter types involved in FRS.
Parameter Description
| Parameter | Type | Description |
|---|---|---|
| project_id | String | Project ID. For details about how to obtain the ID, see Obtaining the Project ID, Account Name, and AK/SK. |
| image_url | String | Image URL. Currently, only the URL of an OBS bucket on HUAWEI CLOUD is supported and FRS must have the permission to read data in the OBS bucket. For details about how to enable the read permission, see Service Authorization. |
| image_file | File | Local image file, whose size cannot exceed 8 MB. It is recommended that the image size be less than 1 MB. The request format is Multipart. |
| image_base64 | String | Image data (Base64-encoded). Its requirements are as follows:
|
| similarity | Double | Face similarity. The value ranges from 0 to 1. A larger value indicates a higher similarity degree. Generally, if the value is greater than 0.93, the faces in two images belong to one person. |
| face_set_name | String | Name of the facial image library. The value contains 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_). Other special characters are not allowed. |
| face_set_capacity | Integer | Maximum capacity of a facial image library. The value is an integer multiple of 10,000, for example, 30,000. The default value is 100000 and the maximum value is also 100000. You can create a new facial image library to expand the capacity. Each user can use 10 facial image libraries. Each library can house a maximum of 100,000 facial features. If you want to expand the capacity of a facial image library, contact HUAWEI CLOUD customer service to confirm the expansion scale and price. |
| face_id | String | Face ID returned by the system after a face is imported. The value is a string of eight uppercase and lowercase letters that are randomly generated. |
| external_image_id | String | External image ID specified by the user. It is bound to the current image. If the user does not provide one, it is generated by the system. The ID contains 1 to 36 characters, including letters, digits, hyphens (-), and underscores (_). Other special characters are not allowed. |
| external_fields | JSON | Enters a value based on the customized data type. This field is defined when you create the facial image library. Duplication of the JSON character string is not verified. For details, see section Customized Fields. |
| top_n | Integer | N faces returned that are most similar to the input one. The default value of N is 10. If the first five faces are returned, the value of variable N is 5. Value range: 1-1000 |
| threshold | Double | Face similarity threshold. If the similarity degree of a face is lower than the threshold, the face is not returned. The value ranges from 0 to 1. The recommended value is 0.93. The default value is 0. |
| offset | Integer | Start number of data records to be read. The default value is 0. |
| limit | Integer | Number of records to be read. The default value is 5. |
| video_url | String | Video URL. Currently, only the URL of an OBS bucket on HUAWEI CLOUD is supported and FRS must have the permission to read data in the OBS bucket. For details about how to enable the read permission, see Service Authorization. The video requirements are as follows:
|
| video_file | File | Local video file. The request format is Multipart. The video requirements are as follows:
|
| video_base64 | String | Video data (Base64-encoded). Its requirements are as follows:
|
| actions | String | Action code sequence list. Actions are separated by commas (,). Currently, the following actions are supported:
|
| action_time | String | String of the action time array. The length of the array is the same as the number of actions. Each item contains the start time and end time of the action in the corresponding sequence. The unit is the milliseconds from the video start time. |
| error_code | String | Error code returned after the API fails to be called. |
| error_msg | String | Error message returned after the API fails to be called. |
| attributes | String | Whether to return the facial attribute list. Multiple attributes are separated by commas (,). Currently, the following attributes are supported:
|
Last Article: Message Object Structures
Next Article: DetectFace
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.