全部产品
Search
文档中心

视频点播:智能审核完成

更新时间:Sep 26, 2023

本文为您介绍智能审核完成事件、事件通知的内容和回调示例。

事件类型

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

作业状态。

  • success:成功。

  • fail:失败。

Code

String

作业错误码,当审核出错时,会有该字段。

Message

String

作业错误信息,当审核出错时,会有该字段。

Data

String

作业结果数据,JSON对象。

回调示例

回调示例说明:

  • 对于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"
                }
            ]
        }
}