ci:DatasetFaceSearch permission to the action of the authorization policy. For all APIs supported by Cloud Infinite, see CI action.Region can only be set to ap-jakarta.POST /datasetquery/facesearch HTTP/1.1Host: <AppId>.ci.ap-jakarta.myqcloud.comAuthorization: Auth StringContent-Length: xxxContent-Type: application/jsonAccept: application/json
{"DatasetName": "test","URI": "cos://examplebucket-1250000000/test.jpg","MaxFaceNum": 1,"Limit": 10,"MatchThreshold": 10}
Parameter Name | Description | Type | Required |
DatasetName | String | Yes | |
URI | Resource identifier field, indicating the file address for which an index needs to be created | String | Yes |
MaxFaceNum | Number of faces to search for in the input image. Default value: 1 (if 0 is passed or no value is passed, the default value is used). Maximum value: 10 | Integer | No |
Limit | Number of related faces returned for each face in the search. Default value: 10. Maximum value: 100 | Integer | No |
MatchThreshold | Limits the minimum relevance score for returned faces. Only faces with a relevance score exceeding the MatchThreshold value are returned. Default value: 0. Recommended value: 80. For example, if MatchThreshold is set to 80, only faces with a relevance score greater than or equal to 80 are returned in the search results | Integer | No |
{"FaceResult": [{"FaceInfos": [{"PersonId": "xxxxx","FaceBoundary": {"Height": 264,"Width": 203,"Left": 353,"Top": 90},"FaceId": "80c10056-1d40-418b-9f4f-dabf8e8cc349","Score": 76,"URI": "cos://facesearch-1258726280/huge_hezao.webp"}],"InputFaceBoundary": {"Height": 545,"Width": 401,"Left": 737,"Top": 191}}],"RequestId": "NjYxNTMyY2JfNGQ2ODk0MGJfNzAzZl81"}
Parameter Name | Type | Description |
FaceResult | Container Array | List of face search and recognition result information |
RequestId | String | Request ID |
Parameter Name | Type | Description |
FaceInfos | Container Array | List of related face information |
InputFaceBoundary | Container | Position of the face bounding box in the input image |
Parameter Name | Type | Description |
PersonId | String | Custom character ID |
FaceBoundary | Container | Position of the associated face bounding box |
FaceId | String | Face ID |
Score | Integer | Related face match score |
URI | String | Resource identifier field, indicating the file address for which an index needs to be created |
Parameter Name | Type | Description |
Height | Integer | Face height |
Width | Integer | Face width |
Left | Integer | Horizontal coordinate of the upper-left corner of the face bounding box |
Top | Integer | Vertical coordinate of the upper-left corner of the face bounding box |
Parameter Name | Type | Description |
Height | Integer | Face height |
Width | Integer | Face width |
Left | Integer | Horizontal coordinate of the upper-left corner of the face bounding box |
Top | Integer | Vertical coordinate of the upper-left corner of the face bounding box |
POST /datasetquery/facesearch HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=****************************************Host: 1234567890.ci.ap-jakarta.myqcloud.comContent-Length: 166Content-Type: application/jsonAccept: application/json{"DatasetName": "test","URI": "cos://examplebucket-1250000000/test.jpg","MaxFaceNum": 1,"Limit": 10,"MatchThreshold": 10}
HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 230Connection: keep-aliveDate: Mon, 28 Jun 2022 15:23:12 GMTServer: tencent-cix-ci-request-id: NjMxMDJhYTNfMThhYTk0MGFfYmU1OV8zZjc={"FaceResult": [{"FaceInfos": [{"PersonId": "xxxxx","FaceBoundary": {"Height": 264,"Width": 203,"Left": 353,"Top": 90},"FaceId": "80c10056-1d40-418b-9f4f-dabf8e8cc349","Score": 76,"URI": "cos://facesearch-1258726280/huge_hezao.webp"}],"InputFaceBoundary": {"Height": 545,"Width": 401,"Left": 737,"Top": 191}}],"RequestId": "NjYxNTMyY2JfNGQ2ODk0MGJfNzAzZl81"}
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan