Bir görsel içerik denetimi görevini getirir.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:GetImageModerationResult |
get |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
Proje adı. |
test-project |
| TaskType |
string |
Yes |
Görev türü. |
ImageModeration |
| TaskId |
string |
Yes |
Görev kimliği. |
ImageModeration-ff207203-3f93-4645-a041-7b8f0f****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Görsel denetim sonucu. |
||
| RequestId |
string |
İstek kimliği. |
E6A120B1-BEB3-0F63-A7C2-0783B6****** |
| ProjectName |
string |
Proje adı. |
test-project |
| EventId |
string |
Olay kimliği. |
1B6-1XBMX3BixLMILvXVGtlkr****** |
| Status |
string |
Görevin çalışma durumu. Geçerli değerler:
|
Succeeded |
| Code |
string |
Görevin hata kodu. |
ResourceNotFound |
| Message |
string |
Görevin hata mesajı. |
The specified resource TaskId is not found. |
| StartTime |
string |
Görevin başlangıç zamanı. Değer, milisaniye hassasiyetinde ISO 8601 formatında bir UTC zaman damgasıdır. |
2023-04-03T09:44:31.029Z |
| EndTime |
string |
Görevin bitiş zamanı. Değer, milisaniye hassasiyetinde ISO 8601 formatında bir UTC zaman damgasıdır. |
2023-04-03T09:44:32Z |
| UserData |
string |
Özel kullanıcı verileri. |
{ "fileId": "123" } |
| TaskType |
string |
Görev türü. |
ImageModeration |
| TaskId |
string |
Görev kimliği. |
ImageModeration-ff207203-3f93-4645-a041-7b8f0f****** |
| ModerationResult |
object |
İçerik denetim sonucu. |
|
| URI |
string |
OSS dosyasının depolama konumu. Adres, oss://${bucketname}/${objectname} formatını izler; burada bucketname mevcut projeyle aynı bölgedeki bir OSS bucket'ının adı, objectname ise dosya yoludur. |
oss://test-bucket/test-object |
| Suggestion |
string |
Önerilen eylem. Geçerli değerler:
|
block |
| Categories |
array |
Kategorilerin listesi. |
|
|
string |
Kategori. |
porn |
|
| Frames |
object |
Video veya hareketli görsel denetimi için kare bilgileri. |
|
| TotalCount |
integer |
Denetlenen toplam kare sayısı. |
30 |
| BlockFrames |
array<object> |
İçerik politikalarını ihlal eden kareler. |
|
|
object |
İçerik politikalarını ihlal eden bir kare hakkındaki bilgiler. |
||
| Rate |
number |
İhlalin güven düzeyi. |
30 |
| Offset |
integer |
Karenin ofseti. |
2 |
| Label |
string |
İhlalin etiketi. |
{ "test": "val" } |
Examples
Success response
JSON format
{
"RequestId": "E6A120B1-BEB3-0F63-A7C2-0783B6******",
"ProjectName": "test-project",
"EventId": "1B6-1XBMX3BixLMILvXVGtlkr******",
"Status": "Succeeded",
"Code": "ResourceNotFound",
"Message": "The specified resource TaskId is not found.",
"StartTime": "2023-04-03T09:44:31.029Z",
"EndTime": "2023-04-03T09:44:32Z",
"UserData": "{\n \"fileId\": \"123\"\n}",
"TaskType": "ImageModeration",
"TaskId": "ImageModeration-ff207203-3f93-4645-a041-7b8f0f******",
"ModerationResult": {
"URI": "oss://test-bucket/test-object",
"Suggestion": "block",
"Categories": [
"porn"
],
"Frames": {
"TotalCount": 30,
"BlockFrames": [
{
"Rate": 30,
"Offset": 2,
"Label": "{\n \"test\": \"val\"\n}"
}
]
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.