Detects labels for scenarios, objects, and events in video content. This feature supports more than 30 categories and thousands of labels. Scenario labels include natural landscapes, life scenes, and disaster scenes. Event labels include talent shows, office work, performances, and production. Object labels include tableware, electronic products, furniture, and vehicles.
Operation description
Before you call this operation, make sure that you understand the billing methods and pricing of Intelligent Media Management.
- Before you call this operation, make sure that you have created a project in Intelligent Media Management. For more information, see Create a project.
Important The completion time of asynchronous tasks is not guaranteed.
For more information about the features of this operation, see Video label detection.
This operation supports multiple video formats, such as MP4, MPEG-TS, MKV, MOV, AVI, FLV, and M3U8.
This is an asynchronous operation. After a task starts, its information is stored for seven days. You cannot retrieve the information after this period. Call the GetTask or ListTasks operation with the returned
TaskIdto view task information. You can also set the Notification parameter to receive task information through message notifications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:CreateVideoLabelClassificationTask |
create |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The project name. For more information about how to obtain the project name, see Create a project. |
immtest |
| SourceURI |
string |
Yes |
The Object Storage Service (OSS) URI of the video. The OSS URI must follow the format oss://${Bucket}/${Object}. ${Bucket} is the name of the OSS bucket that is in the same region as the current project. ${Object} is the full path of the file, including the file name extension. |
oss://bucket1/object.mp4 |
| UserData |
string |
No |
Custom information. This information is returned in the asynchronous notification message. You can use this information to associate the notification message with your services. The maximum length is 2,048 bytes. |
{ "ID": "testuid", "Name": "test-user", "Avatar": "http://test.com/testuid" } |
| Tags |
object |
No |
Custom tags that you can use to search for and filter asynchronous tasks. |
{"test":"val1"} |
| CredentialConfig | CredentialConfig |
No |
If you do not have special requirements, leave this parameter empty. The chained authorization configuration. This parameter is not required. For more information, see Use chained authorization to access resources of other entities. |
|
| Notification | Notification |
No |
The message notification configuration. For more information, click Notification. For more information about the format of asynchronous notification messages, see Asynchronous notification message format. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct for creating a video label detection task. |
||
| RequestId |
string |
The ID of the request. |
CA995EFD-083D-4F40-BE8A-BDF75FFFE0B6 |
| EventId |
string |
The event ID of the task. You can use this ID to query task information notifications in the EventBridge service. |
03F-1Qt1Yn5RZZ0Zh3ZdYlDblv7**** |
| TaskId |
string |
The ID of the task. You can use the GetTask operation to view task information or the GetVideoLabelClassificationResult operation to obtain the results of the video label detection task. |
VideoLabelClassification-2f157087-91df-4fda-8c3e-232407ec***** |
Examples
Success response
JSON format
{
"RequestId": "CA995EFD-083D-4F40-BE8A-BDF75FFFE0B6",
"EventId": "03F-1Qt1Yn5RZZ0Zh3ZdYlDblv7****",
"TaskId": "VideoLabelClassification-2f157087-91df-4fda-8c3e-232407ec*****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.