QueryMediaCensorJobDetail
Queries the details of a content moderation job.
Operation description
In the content moderation results, the video section forms a timeline sorted by time in ascending order. If the video is very long, the query returns the first page of information by default. To query the full results of the video section in detail, you can call this operation separately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:QueryMediaCensorJobDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
Yes |
The ID of the content moderation job. You can obtain the ID from the response parameters of Submit a content moderation job. |
2288c6ca184c0e47098a5b665e2a12**** |
| NextPageToken |
string |
No |
The token for the next page. Leave this parameter empty for the first request. The token is returned after the first query. |
ae0fd49c0840e14daf0d66a75b83**** |
| MaximumPageSize |
integer |
No |
The maximum number of entries to return per page.
|
30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
B42299E6-F71F-465F-8FE9-4FC2E3D3C2CA |
| MediaCensorJobDetail |
object |
The list of content moderation job results. |
|
| CreationTime |
string |
The creation time. The time is in the ISO 8601 format and in UTC (ending with Z). |
2018-09-13T16:32:24Z |
| FinishTime |
string |
The completion time. The time is in the ISO 8601 format and in UTC (ending with Z). |
2018-09-13T16:38:24Z |
| Suggestion |
string |
The overall moderation result of the job. Valid values:
Note
If the moderation result of any type is review, the overall result is review. If the moderation result of any type is block, the overall result is block. |
block |
| CoverImageCensorResults |
object |
||
| CoverImageCensorResult |
array<object> |
The cover image moderation results. |
|
|
array<object> |
The detailed moderation results. |
||
| Object |
string |
The OSS object of the video cover image. |
test/ai/censor/v2/vme-****.jpg |
| Location |
string |
The OSS location of the video cover image. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket of the video cover image. |
bucket-out-test-**** |
| Results |
object |
||
| Result |
array<object> |
The moderation results. |
|
|
object |
The detailed moderation results. |
||
| Suggestion |
string |
The moderation suggestion. Valid values:
|
pass |
| Label |
string |
The label of the moderation result.
|
Normal |
| Scene |
string |
The moderation scene. Valid values:
|
Antispam |
| Rate |
string |
The score. Valid values: 0 to 100. |
100 |
| State |
string |
The job status. |
Success |
| TitleCensorResult |
object |
The title moderation result. |
|
| Suggestion |
string |
The moderation suggestion. Valid values:
|
block |
| Label |
string |
The label of the moderation result. Valid values:
|
meaningless |
| Scene |
string |
The moderation scene. Set the value to antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The score. |
99.91 |
| Message |
string |
The error message returned when the job fails. This parameter is not returned when the job is successful. |
The resource operated cannot be found |
| Input |
object |
The job input. |
|
| Object |
string |
The OSS object of the input file. |
test/ai/censor/test-****.mp4 |
| Location |
string |
The OSS location of the input file. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket of the input file. |
bucket-test-in-**** |
| BarrageCensorResult |
object |
The barrage moderation result. |
|
| Suggestion |
string |
The moderation suggestion. Valid values:
|
pass |
| Label |
string |
The label of the moderation result. Valid values:
|
normal |
| Scene |
string |
The moderation scene. Set the value to antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The score. |
99.91 |
| DescCensorResult |
object |
The description moderation result. |
|
| Suggestion |
string |
The moderation suggestion. Valid values:
|
review |
| Label |
string |
The label of the moderation result. Valid values:
|
terrorism |
| Scene |
string |
The moderation scene. Set the value to antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The score. |
100 |
| VideoCensorConfig |
object |
The video moderation configuration. |
|
| OutputFile |
object |
The storage address of the video snapshot results. |
|
| Object |
string |
The OSS object of the snapshot output file. Note
In the example, {Count} is a placeholder. The image objects are sequentially named |
output{Count}.jpg |
| Location |
string |
The OSS location of the OSS bucket where the snapshot output file is stored. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket where the snapshot output file is stored. |
test-bucket-**** |
| VideoCensor |
string |
Specifies whether to moderate the video content. Default value: true. Valid values:
|
true |
| BizType |
string |
The custom business type. Default value: common. |
common |
| JobId |
string |
The ID of the content moderation job. |
f8f166eea7a44e9bb0a4aecf9543**** |
| UserData |
string |
The custom user data. |
example userdata **** |
| Code |
string |
The error code returned when the job fails. This parameter is not returned when the job is successful. |
InvalidParameter.ResourceNotFound |
| VensorCensorResult |
object |
The video moderation results. |
|
| VideoTimelines |
object |
||
| VideoTimeline |
array<object> |
The moderation results at specific timestamps, sorted by time in ascending order. |
|
|
array<object> |
The response parameters. |
||
| Timestamp |
string |
The position in the video. Format: |
00:02:59.999 |
| Object |
string |
The OSS object of the snapshot output file. Note
In the example, {Count} is a placeholder. The image objects are sequentially named |
output{Count}.jpg |
| CensorResults |
object |
||
| CensorResult |
array<object> |
The labels and scores of various types of moderation results. |
|
|
object |
The response parameters. |
||
| Suggestion |
string |
The moderation suggestion. Valid values:
|
block |
| Label |
string |
The label of the moderation result.
|
flood |
| Scene |
string |
The moderation scene. Valid values:
|
porn |
| Rate |
string |
The score. |
99.99 |
| NextPageToken |
string |
The token for the next page. |
ea04afcca7cd4e80b9ece8fbb251**** |
| CensorResults |
object |
||
| CensorResult |
array<object> |
The collection of moderation results, which includes the summary information of various scenes such as pornography, violence, terrorism, and political content. |
|
|
object |
The moderation result details. |
||
| Suggestion |
string |
The moderation suggestion. Valid values:
|
review |
| Label |
string |
The label of the moderation result.
|
meaningless |
| Scene |
string |
The moderation scene. Valid values:
|
terrorism |
| Rate |
string |
The score. |
100 |
| PipelineId |
string |
The pipeline ID. |
c5b30b7c0d0e4a0abde1d5f9e751**** |
Examples
Success response
JSON format
{
"RequestId": "B42299E6-F71F-465F-8FE9-4FC2E3D3C2CA",
"MediaCensorJobDetail": {
"CreationTime": "2018-09-13T16:32:24Z",
"FinishTime": "2018-09-13T16:38:24Z",
"Suggestion": "block",
"CoverImageCensorResults": {
"CoverImageCensorResult": [
{
"Object": "test/ai/censor/v2/vme-****.jpg",
"Location": "oss-cn-shanghai",
"Bucket": "bucket-out-test-****",
"Results": {
"Result": [
{
"Suggestion": "pass",
"Label": "Normal",
"Scene": "Antispam",
"Rate": "100"
}
]
}
}
]
},
"State": "Success",
"TitleCensorResult": {
"Suggestion": "block",
"Label": "meaningless",
"Scene": "antispam",
"Rate": "99.91"
},
"Message": "The resource operated cannot be found",
"Input": {
"Object": "test/ai/censor/test-****.mp4",
"Location": "oss-cn-shanghai",
"Bucket": "bucket-test-in-****"
},
"BarrageCensorResult": {
"Suggestion": "pass",
"Label": "normal",
"Scene": "antispam",
"Rate": "99.91"
},
"DescCensorResult": {
"Suggestion": "review",
"Label": "terrorism",
"Scene": "antispam",
"Rate": "100"
},
"VideoCensorConfig": {
"OutputFile": {
"Object": "output{Count}.jpg",
"Location": "oss-cn-shanghai",
"Bucket": "test-bucket-****"
},
"VideoCensor": "true",
"BizType": "common"
},
"JobId": "f8f166eea7a44e9bb0a4aecf9543****",
"UserData": "example userdata ****",
"Code": "InvalidParameter.ResourceNotFound",
"VensorCensorResult": {
"VideoTimelines": {
"VideoTimeline": [
{
"Timestamp": "00:02:59.999",
"Object": "output{Count}.jpg",
"CensorResults": {
"CensorResult": [
{
"Suggestion": "block",
"Label": "flood",
"Scene": "porn",
"Rate": "99.99"
}
]
}
}
]
},
"NextPageToken": "ea04afcca7cd4e80b9ece8fbb251****",
"CensorResults": {
"CensorResult": [
{
"Suggestion": "review",
"Label": "meaningless",
"Scene": "terrorism",
"Rate": "100"
}
]
}
},
"PipelineId": "c5b30b7c0d0e4a0abde1d5f9e751****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.