Queries the results of a video label detection task.
Operation description
- Before you call this operation, make sure that a project is created on Intelligent Media Management (IMM). For more information, see CreateProject .
- Before you call this operation, make sure that a video label detection task is created and the
TaskId
of the task is obtained. For more information, see CreateVideoLabelClassificationTask .
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
imm:GetVideoLabelClassificationResult | get | *Project acs:imm:{#regionId}:{#accountId}:project/{#ProjectName} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ProjectName | string | Yes | The name of the project. For more information, see CreateProject . | immtest |
TaskType | string | Yes | The type of the task. Valid values: | VideoLabelClassification |
TaskId | string | Yes | The task ID, which is obtained from response parameters of CreateVideoLabelClassificationTask . | VideoLabelClassification-2f157087-91df-4fda-8c3e-232407ec**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "7F84C6D9-5AC0-49F9-914D-F02678E3****",
"ProjectName": "immtest",
"EventId": "2F6-1Bz99Xi93EnRpNEyLudILJm****",
"Status": "Succeeded",
"Code": "ResourceNotFound",
"Message": "The specified resource project is not found.",
"StartTime": "2021-12-24T03:00:38.892462383Z",
"EndTime": "2021-12-24T03:00:42.134971294Z",
"UserData": "{\"ID\": \"user1\",\"Name\": \"test-user1\",\"Avatar\": \"http://example.com?id=user1\"}",
"TaskType": "VideoLabelClassification",
"TaskId": "VideoLabelClassification-2f157087-91df-4fda-8c3e-232407ec****",
"Labels": [
{
"Language": "zh-Hans",
"LabelName": "",
"LabelLevel": 1,
"LabelConfidence": 0.9891784601980591,
"ParentLabelName": "",
"CentricScore": 0.7319999933242798
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history