Retrieves a video content moderation task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:GetVideoModerationResult |
get |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The project name. |
test-project |
| TaskType |
string |
Yes |
The task type. |
VideoModeration |
| TaskId |
string |
Yes |
The task ID. |
VideoModeration-d0f0df1d-531d-4ab4-b353-e7f475****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The video moderation result. |
||
| RequestId |
string |
The request ID. |
VideoModeration-d0f0df1d-531d-4ab4-b353-e7f475****** |
| ProjectName |
string |
The project name. |
test-project |
| EventId |
string |
The event ID. |
05C-1XBQvsG2Tn5kBx2dUWo43****** |
| Status |
string |
The task status. Valid values:
|
Succeeded |
| Code |
string |
The task error code. |
ResourceNotFound |
| Message |
string |
The task error message. |
The specified resource TaskId is not found. |
| StartTime |
string |
The time when the task started. The value is a UTC timestamp in ISO 8601 format with millisecond precision. |
2023-04-03T10:20:41.432Z |
| EndTime |
string |
The time when the task ended. The value is a UTC timestamp in ISO 8601 format with millisecond precision. |
2023-04-03T10:20:56.87Z |
| UserData |
string |
The custom user data. |
{ "id": "test-id", "name": "test-name" } |
| TaskType |
string |
The task type. |
VideoModeration |
| TaskId |
string |
The task ID. |
VideoModeration-d0f0df1d-531d-4ab4-b353-e7f4750****** |
| ModerationResult |
object |
The content moderation details. |
|
| URI |
string |
The file URI. The storage address of the OSS file. The address follows the format |
oss://test-bucket/test-object |
| Suggestion |
string |
The moderation result suggestion. Valid values:
|
block |
| Categories |
array |
The category list. |
|
|
string |
The category information. |
porn |
|
| Frames |
object |
The frame-related information for video and animated image moderation. |
|
| TotalCount |
integer |
The total number of detected frames. |
12 |
| BlockFrames |
array<object> |
The information about violated frames. |
|
|
object |
The information about violated frames. |
||
| Rate |
number |
The confidence level of the violation. |
10 |
| Offset |
integer |
The offset of the frame. |
1 |
| Label |
string |
The label of the violation. |
{"teat":"val"} |
Examples
Success response
JSON format
{
"RequestId": "VideoModeration-d0f0df1d-531d-4ab4-b353-e7f475******",
"ProjectName": "test-project",
"EventId": "05C-1XBQvsG2Tn5kBx2dUWo43******",
"Status": "Succeeded",
"Code": "ResourceNotFound",
"Message": "The specified resource TaskId is not found.",
"StartTime": "2023-04-03T10:20:41.432Z",
"EndTime": "2023-04-03T10:20:56.87Z",
"UserData": "{\n \"id\": \"test-id\",\n \"name\": \"test-name\"\n}",
"TaskType": "VideoModeration",
"TaskId": "VideoModeration-d0f0df1d-531d-4ab4-b353-e7f4750******",
"ModerationResult": {
"URI": "oss://test-bucket/test-object",
"Suggestion": "block",
"Categories": [
"porn"
],
"Frames": {
"TotalCount": 12,
"BlockFrames": [
{
"Rate": 10,
"Offset": 1,
"Label": "{\"teat\":\"val\"}"
}
]
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.