Creates a figure clustering task. This task uses an intelligent algorithm to group the faces of different people in images that are indexed in a dataset.
Operation description
-
Before you call this operation, make sure that you fully understand the billing methods and pricing of Intelligent Media Management.
Important The completion time of asynchronous tasks is not guaranteed. -
Before you call this operation, make sure that you have indexed files to a dataset (CreateDataset) by attaching them (CreateBinding) or by indexing them (IndexFileMeta or BatchIndexFileMeta).
-
Each time you call this operation, files in the dataset (CreateDataset) are incrementally processed. You can periodically call this operation to process new files.
-
After the clustering is complete, you can call the GetFigureCluster or BatchGetFigureCluster operation to retrieve information about specific groups. You can also call QueryFigureClusters to query and list the groups in the dataset.
-
Deleting files from a dataset changes the face clustering results. When all images that contain the faces in a cluster are deleted, the cluster is also deleted.
-
This is an asynchronous operation. After a task starts, its information is saved for only 7 days. You cannot retrieve the task information after this period. You can call the GetTask or ListTasks operation to view the task information. Alternatively, you can set the Notification parameter to receive task information from asynchronous notification messages.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:CreateFigureClusteringTask |
create |
*Dataset
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The project name. For more information, see Create a project. |
immtest |
| DatasetName |
string |
Yes |
The dataset name. For more information, see Create a dataset. |
dataset001 |
| UserData |
string |
No |
Custom user data that is returned in the asynchronous notification message. You can use this data to associate the notification message with your services. The maximum length is 2048 bytes. |
{"ID": "user1","Name": "test-user1","Avatar": "http://example.com?id=user1"} |
| Tags |
object |
No |
Custom tags that you can use to search for and filter asynchronous tasks. |
{"test": "val1"} |
| Notification | Notification |
No |
The notification configuration. For more information, see Notification. For more information about the message format, see Asynchronous notification message format. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The information about the figure clustering task. |
||
| RequestId |
string |
The ID of the request. |
1B3D5E0A-D8B8-4DA0-8127-ED32C851**** |
| TaskId |
string |
The ID of the task. |
formatconvert-00bec802-073a-4b61-ba3b-39bc**** |
| EventId |
string |
The ID of the event. |
0ED-1Bz8z71k5TtsUejT4UJ16**** |
Examples
Success response
JSON format
{
"RequestId": "1B3D5E0A-D8B8-4DA0-8127-ED32C851****",
"TaskId": "formatconvert-00bec802-073a-4b61-ba3b-39bc****",
"EventId": "0ED-1Bz8z71k5TtsUejT4UJ16****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.