Queries the face clusters that contain a specific face in an image, returning bounding boxes and similarity scores for each cluster.
Operation description
-
Before you call this operation, make sure that you are familiar with the billing of Intelligent Media Management (IMM).
-
Before you call this operation, make sure that you have clustered all faces in the dataset by calling the CreateFigureClusteringTask operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:SearchImageFigureCluster |
list |
*Dataset
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
|
test-project |
| DatasetName |
string |
Yes |
|
test-dataset |
| SourceURI |
string |
No |
The OSS URI of the image. Specify the URI in the |
oss://test-bucket/test-object |
| CredentialConfig | CredentialConfig |
No |
If you have no special requirements, leave this parameter empty. The authorization chain settings. For more information, see Use authorization chains to access resources of other entities. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
C2734912-E6D5-052C-AC67-6A9FD02***** |
| Clusters |
array<object> |
The face clusters. |
|
|
object |
The face cluster details. |
||
| Boundary | Boundary |
The bounding box of the face. |
|
| ClusterId |
string |
The ID of the face cluster that contains faces similar to the face within the bounding box. |
Cluster-ca730577-06b1-42c7-a25b-8f2c7****** |
| Similarity |
number |
The similarity between the face within the bounding box and the face cluster. Valid values: 0 to 1. |
0.87413794 |
Examples
Success response
JSON format
{
"RequestId": "C2734912-E6D5-052C-AC67-6A9FD02*****",
"Clusters": [
{
"Boundary": {
"Width": 200,
"Height": 300,
"Left": 10,
"Top": 30,
"Polygon": [
{
"X": 10,
"Y": 10
}
]
},
"ClusterId": "Cluster-ca730577-06b1-42c7-a25b-8f2c7******",
"Similarity": 0.87413794
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.