All Products
Search
Document Center

Intelligent Media Management:GetVideoLabelClassificationResult

Last Updated:Dec 11, 2024

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
imm:GetVideoLabelClassificationResultget
*Project
acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectNamestringYes

The name of the project. For more information, see CreateProject .

immtest
TaskTypestringYes

The type of the task. Valid values:

VideoLabelClassification
TaskIdstringYes

The task ID, which is obtained from response parameters of CreateVideoLabelClassificationTask .

VideoLabelClassification-2f157087-91df-4fda-8c3e-232407ec****

Response parameters

ParameterTypeDescriptionExample
object

The result of the video label detection task.

RequestIdstring

The request ID.

7F84C6D9-5AC0-49F9-914D-F02678E3****
ProjectNamestring

The project name.

immtest
EventIdstring

The event ID.

2F6-1Bz99Xi93EnRpNEyLudILJm****
Statusstring

The task status.

Succeeded
Codestring

The error code of the task.

ResourceNotFound
Messagestring

The error message of the task.

The specified resource project is not found.
StartTimestring

The start time of the task.

2021-12-24T03:00:38.892462383Z
EndTimestring

The end time of the task.

2021-12-24T03:00:42.134971294Z
UserDatastring

The custom information.

{"ID": "user1","Name": "test-user1","Avatar": "http://example.com?id=user1"}
TaskTypestring

The type of the task.

VideoLabelClassification
TaskIdstring

The task ID.

VideoLabelClassification-2f157087-91df-4fda-8c3e-232407ec****
Labelsarray

The labels.

LabelsLabel

The label information.

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
No change history