本文為您介紹智能審核完成事件、事件通知的內容和回調示例。
事件類型
AIMediaAuditComplete
事件說明
當智能審核完成時,會產生AIMediaAuditComplete事件。
說明
審核結果的圖片資源僅在點播提供的免費存儲上保留2周時間,之后會自動刪除。
AIMediaAuditComplete事件對應視頻點播控制臺上的視頻AI處理完成事件。
事件內容
名稱 | 類型 | 必備項 | 描述 |
EventTime | String | 是 | 事件產生時間,為UTC時間:yyyy-MM-ddTHH:mm:ss:SSSZ。 |
EventType | String | 是 | 事件類型,系統規定參數。固定為:AIMediaAuditComplete。 |
JobId | String | 是 | 作業ID,與提交智能審核作業接口返回的JobId一致。 |
MediaId | String | 是 | 視頻ID。 |
Status | String | 是 | 作業狀態。
|
Code | String | 否 | 作業錯誤碼,當審核出錯時,會有該字段。 |
Message | String | 否 | 作業錯誤信息,當審核出錯時,會有該字段。 |
Data | String | 是 | 作業結果數據,JSON對象。具體結構,請參見具體結構智能審核結果AIMediaAuditResult。 |
回調示例
回調示例說明:
對于HTTP回調,以下內容為HTTP Post Body。
對于MNS回調,以下內容為消息體。
{
"EventTime": "2022-10-20T10:29:46:540Z",
"EventType": "AIMediaAuditComplete",
"JobId": "43q91jdh7df****",
"MediaId": "SHEN38505NDF9****",
"Status": "success",
"Code": "0",
"Message": "OK",
"Data": {
"AbnormalModules":"video",
"Label":"porn",
"Suggestion":"review",
"VideoResult":{
"Suggestion":"review",
"TerrorismResult":{
"TopList":[
{
"Score":"100.0000000000",
"Label":"normal",
"Timestamp":"3005",
"Url":"http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/aivideocensor/1****.jpg"
},
{
"Score":"100.0000000000",
"Label":"normal",
"Timestamp":"15005",
"Url":"http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/aivideocensor/1****.jpg"
}
],
"Suggestion":"pass",
"MaxScore":"100.0000000000",
"AverageScore":"100.0000000000",
"Label":"normal",
"CounterList":[
{
"Label":"terrorism",
"Count":0
},
{
"Label":"outfit",
"Count":0
},
{
"Label":"logo",
"Count":0
},
{
"Label":"weapon",
"Count":0
},
{
"Label":"politics",
"Count":0
},
{
"Label":"others",
"Count":0
},
{
"Label":"normal",
"Count":16
}
]
},
"Label":"porn",
"PornResult":{
"TopList":[
{
"Score":"92.4800000000",
"Label":"sexy",
"Timestamp":"1005",
"Url":"http://example.aliyundoc.com/aivideocensor/****.jpg"
},
{
"Score":"91.8200000000",
"Label":"sexy",
"Timestamp":"9005",
"Url":"http://example.aliyundoc.com/aivideocensor/****.jpg"
}
],
"Suggestion":"review",
"MaxScore":"92.4800000000",
"AverageScore":"81.7066666667",
"Label":"sexy",
"CounterList":[
{
"Label":"porn",
"Count":0
},
{
"Label":"sexy",
"Count":6
},
{
"Label":"normal",
"Count":10
}
]
}
},
" CoverResult":[
{
"Suggestion":"pass",
"Type":"cover",
"Label":"normal",
"Url":"http://example.aliyundoc.com/43q91jdh7df****.jpg",
"Result":[
{
"Suggestion":"pass",
"Score":"65.25",
"Label":"normal",
"Scene":"porn"
},
{
"Suggestion":"pass",
"Score":"100.0",
"Label":"normal",
"Scene":"terrorism"
}
]
}
],
"TitleResult":[
{
"Suggestion":"pass",
"Type":"title",
"Score":"99.91",
"Content":"1111",
"Label":"normal",
"Scene":"antispam"
}
]
}
}
文檔內容是否對您有幫助?