Mengkueri detail pekerjaan moderasi konten.
Deskripsi operasi
In the content moderation result, the video section is sorted by time points in ascending order to form a timeline. If the video duration is very long, the first page of results is returned when you query. To obtain the complete results for the video section, you can invoke this API separately.
queries per second (QPS) limit
The QPS limit for this API is 100 queries per second (QPS) per user. If the limit is exceeded, API calls will be subject to Rate Limiting, which may Impact your business. Please invoke the API reasonably. For more information, see QPS limits.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:QueryMediaCensorJobDetail |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
Yes |
ID pekerjaan moderasi konten. Anda dapat memperoleh ID pekerjaan dari parameter tanggapan operasi SubmitMediaCensorJob. |
2288c6ca184c0e47098a5b665e2a12**** |
| NextPageToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Anda tidak perlu menentukan parameter ini untuk permintaan pertama. Token halaman berikutnya dikembalikan setelah Anda memanggil operasi ini untuk mengkueri hasil pekerjaan moderasi konten untuk pertama kalinya. |
ae0fd49c0840e14daf0d66a75b83**** |
| MaximumPageSize |
integer |
No |
Jumlah maksimum entri yang dikembalikan pada setiap halaman.
|
30 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
B42299E6-F71F-465F-8FE9-4FC2E3D3C2CA |
| MediaCensorJobDetail |
object |
The results of the content moderation job. |
|
| CreationTime |
string |
The time when the job was created. |
2018-09-13T16:32:24Z |
| FinishTime |
string |
The time when the job was complete. |
2018-09-21 |
| Suggestion |
string |
The overall result of the job. Valid values:
If the moderation result of one type of the moderated content is review, the overall result is review. If the moderation result of one type of the moderated content is block, the overall result is block. |
block |
| CoverImageCensorResults |
object |
||
| CoverImageCensorResult |
array<object> |
The moderation results of thumbnails. |
|
|
array<object> |
The response parameters. |
||
| Object |
string |
The Object Storage Service (OSS) object that is used as the video thumbnail. |
test/ai/censor/v2/vme-****.jpg |
| Location |
string |
The OSS region in which the video thumbnail resides. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket that stores the video thumbnail. |
bucket-out-test-**** |
| Results |
object |
||
| Result |
array<object> |
The moderation results. |
|
|
object |
The response parameters. |
||
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
pass |
| Label |
string |
The labels of the moderation result. Multiple labels are separated with commas (,).
|
normal |
| Scene |
string |
The moderation scenario. Valid values:
|
porn |
| Rate |
string |
The score. Valid values: 0 to 100. |
100 |
| State |
string |
The status of the job. Valid values: |
Success |
| TitleCensorResult |
object |
The moderation result of the title. |
|
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
block |
| Label |
string |
The labels of the moderation result. Valid values:
|
meaningless |
| Scene |
string |
The moderation scenario. Valid values: The value is antispam. |
antispam |
| Rate |
string |
The score. |
99.91 |
| Message |
string |
The error message returned if the job fails. This parameter is not returned if the job is successful. |
The resource operated cannot be found |
| Input |
object |
The information about the job input. |
|
| Object |
string |
The name of the OSS object that is used as the input media file. |
test/ai/censor/test-****.mp4 |
| Location |
string |
The OSS region in which the input media file resides. |
oss-cn-shanghai |
| Bucket |
string |
The name of the OSS bucket in which the input media file is stored. |
bucket-test-in-**** |
| BarrageCensorResult |
object |
The moderation result of live comments. |
|
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
pass |
| Label |
string |
The labels of the moderation result. Multiple labels are separated with commas (,). Valid values:
|
normal |
| Scene |
string |
The moderation scenario. Valid values: The value is antispam. |
antispam |
| Rate |
string |
The score. |
99.91 |
| DescCensorResult |
object |
The moderation result of the description. |
|
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
review |
| Label |
string |
The labels of the moderation result. Valid values:
|
normal |
| Scene |
string |
The moderation scenario. Valid values: The value is antispam. |
antispam |
| Rate |
string |
The score. |
100 |
| VideoCensorConfig |
object |
The video moderation configurations. |
|
| OutputFile |
object |
The information about output snapshots. |
|
| Object |
string |
The one or more OSS objects that are generated as the output snapshots. Catatan
In the example, {Count} is a placeholder. The OSS objects that are generated as output snapshots are named |
output{Count}.jpg |
| Location |
string |
The region in which the OSS bucket that stores the output snapshot resides. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket that stores the output snapshots. |
test-bucket-**** |
| VideoCensor |
string |
Indicates whether the video content needs to be moderated. 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 data. |
example userdata **** |
| Code |
string |
The error code returned if the job fails. This parameter is not returned if the job is successful. |
InvalidParameter.ResourceNotFound |
| VensorCensorResult |
object |
The moderation results of the video. |
|
| VideoTimelines |
object |
||
| VideoTimeline |
array<object> |
The moderation results that are sorted in ascending order by time. |
|
|
array<object> |
The response parameters. |
||
| Timestamp |
string |
The position in the video. Format: |
00:02:59.999 |
| Object |
string |
The one or more OSS objects that are generated as the output snapshots. Catatan
In the example, {Count} is a placeholder. The OSS objects that are generated as output snapshots are named |
output{Count}.jpg |
| CensorResults |
object |
||
| CensorResult |
array<object> |
The moderation results that include information such as labels and scores. |
|
|
object |
The response parameters. |
||
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
block |
| Label |
string |
The labels of the moderation result. Multiple labels are separated with commas (,). Valid values:
|
porn,ad |
| Scene |
string |
The moderation scenario. Valid values:
|
porn |
| Rate |
string |
The score. |
99.99 |
| NextPageToken |
string |
The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. |
ea04afcca7cd4e80b9ece8fbb251**** |
| CensorResults |
object |
||
| CensorResult |
array<object> |
A collection of the moderation results. The information includes the summary of various scenarios such as pornographic content and terrorist content. |
|
|
object |
The moderation result of the video. |
||
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
review |
| Label |
string |
The labels of the moderation result. Multiple labels are separated with commas (,). Valid values:
|
meaningless |
| Scene |
string |
The moderation scenario. Valid values:
|
terrorism |
| Rate |
string |
The score. |
100 |
| AudioCensorResult |
object |
Audio review result. |
|
| Suggestion |
string |
Processing suggestion. Valid values:
|
pass |
| Label |
string |
Categorization of the detection result. Valid values:
|
normal |
| AudioDetailResultList |
object |
||
| AudioDetailResult |
array<object> |
Detailed audio review results. |
|
|
object |
Result content. |
||
| StartTime |
integer |
The time when the sentence starts, in seconds. |
0 |
| EndTime |
integer |
The time when the sentence ends, in seconds. |
30 |
| Text |
string |
The result of transforming speech into text. |
测试一下 |
| Label |
string |
The categorization of the detection result. Valid values:
|
normal |
| PipelineId |
string |
The ID of the ApsaraVideo Media Processing (MPS) queue to which the content moderation job is submitted. |
c5b30b7c0d0e4a0abde1d5f9e751**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "B42299E6-F71F-465F-8FE9-4FC2E3D3C2CA",
"MediaCensorJobDetail": {
"CreationTime": "2018-09-13T16:32:24Z",
"FinishTime": "2018-09-21",
"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": "porn",
"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": "normal",
"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": "porn,ad",
"Scene": "porn",
"Rate": "99.99"
}
]
}
}
]
},
"NextPageToken": "ea04afcca7cd4e80b9ece8fbb251****",
"CensorResults": {
"CensorResult": [
{
"Suggestion": "review",
"Label": "meaningless",
"Scene": "terrorism",
"Rate": "100"
}
]
}
},
"AudioCensorResult": {
"Suggestion": "pass",
"Label": "normal",
"AudioDetailResultList": {
"AudioDetailResult": [
{
"StartTime": 0,
"EndTime": 30,
"Text": "测试一下",
"Label": "normal"
}
]
}
},
"PipelineId": "c5b30b7c0d0e4a0abde1d5f9e751****"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.