资讯 社区 文档
技术能力
语音技术
文字识别
人脸与人体
图像技术
语言与知识
视频技术

请求说明

接口说明

长视频审核(接收结果)接口用于用户接收百度推送的审核结果,用户可自定义自己的接收地址

内容审核平台-长视频审核(接收结果)

接口地址:用户自己的接收地址,可自定义实现,但需要传入公网可访问的url地址
请求方式:POST
请求体格式化:content-type:application/json

请求参数

字段名 类型 是否必须 备注 样例
appId String Y 用户的appId
taskId Long Y 用户任务taskId
taskDuration Long Y 审核的视频时长,单位s
extId String Y 用户测提交任务的唯一Id
result JSONObject Y 结论详情,参见审核结论详情数据
+errorCode Int N 失败code,审核失败才有
+errorMsg String N 失败原因描述,审核失败才有
+conclusion String N 审核结果描述,可取值:合规、不合规、疑似
+conclusionType Int N 审核结果,可取值:1 合规,2 不合规,3 疑似, 4 审核失败
+audios JsonArray N 音频审核结果,list下是视频中截取出来的音频片段审核结果
++startTime Int N 音频片段相对于视频的开始时间戳,单位ms
++endTime Int N 音频片段相对于视频的结束时间戳,单位ms
++audioUrl String N 音频片段url
++audioAuditResult JSONOjbject N 音频片段审核结论,JSONObject中字段和语音同步审核V3返回的结果字段相同,链接:https://ai.baidu.com/ai-doc/ANTIPORN/Zku5bn2em
+frames JsonArray N 帧审核明细,定义只返回违规、疑似的帧;审核失败、合规的不返回
++frameTimeStamp Long N 帧时间戳
++conclusion String N 帧审核结果描述,可取值:合规、不合规、疑似
++conclusionType Int N 帧审核结果,可取值:1 合规,2 不合规,3 疑似, 4 审核失败
++frameUrl String N 帧url地址
++frameThumbnailUrl String N 帧缩略图url地址
++data JsonArray N 各维度明细审核结果
+++error_code uint64 N 内层错误提示码,底层服务失败才返回,成功不返回
+++error_msg string N 内层错误提示信息,底层服务失败才返回,成功不返回
+++type uint64 N 结果具体命中的模型:0:百度违禁图库、1:色情识别、3:恶心图识别、4:广告检测、6:图像质量检测、7:用户图像黑名单、8:用户图像白名单、10:用户头像审核、11:百度违禁词库、12:文本反作弊、13:自定义文本黑名单、14:自定义文本白名单、15:EasyDL自定义模型、21:违禁识别、24:直播场景审核
+++subType uint64 N 审核子类型,此字段需参照type主类型字段决定其含义:
当type=0时subType取值含义 :
0:百度违禁图
当type=1时subType取值含义: 0:一般色情、1:卡通色情、2:SM、3:低俗、4:儿童裸露、5:艺术品色情、6:性玩具、7:男性性感、8:自然男性裸露、9:女性性感、10:卡通女性性感、11:特殊类、12:亲密行为、13:卡通亲密行为、14:孕肚裸露、15:臀部特写、16:脚部特写、17:裆部特写
当type=3时subType取值含义:
1:性器官特写、2:脏器、3:疾病表症、4:密集恐惧症、5:腐烂食物、6:排泄物、7:恶心动物、8:人体血腥和尸体、9:动物血腥及尸体
当type=4时subType取值含义:0:水印、1:二维码、2:条形码、3:识别二维码中内容、4:识别条形码中内容、5:不过滤字幕、6:小程序码
当type=6时subType取值含义:
0:图像清晰度、1:图像美观度
当type=7时subType取值含义:
0:用户自定义图像黑名单
当type=8时subType取值含义:
0:用户自定义图像白名单
当type=11时subType取值含义:
0:百度默认违禁词库
当type=12时subType取值含义:
0:低质灌水、2:文本色情、4:恶意推广、5:低俗辱骂、7:隐私信息
当type=13时subType取值含义:
0:自定义文本黑名单
当type=14时subType取值含义:
0:自定义文本白名单
当type=21时subType取值含义:
1:真人吸烟、2:卡通吸烟、3:毒品、4:真人饮酒、5:卡通饮酒、6:赌博、7:纹身
当type=24时subType取值含义:
0:卫生间场景、1:车内场景、2:卧室场景、3:无意义场景、4:普通场景
*完整版subType说明,您可联系商务经理或填写咨询表单进行获取
+++msg String N 不合规项描述信息
+++probability Float N 不合规项置信度
+++datasetName Float N 违规项目所属数据集名称
+++stars Array N 命中人脸的信息
++++name String N 人名
++++probability Float N 人脸相似度
++++datasetName Float N 所属数据集名称
+++codes Array N 二维码或者条形码识别结果
+++hits Array N 命中信息
++++words Array N 送检文本命中词库的关键词(备注:建议参考新字段“wordHitPositions”,包含信息更丰富:关键词以及对应的位置及标签信息)
++++probability Float N 不合规项置信度
++++datasetName String N 违规项目所属数据集名称
++++modelHitPositions Array N 送检文本命中模型的详细信息,包含位置信息及置信度信息。位置信息:命中模型的违规内容在送检原文中的位置(从0开始计算):“开始位置”、“结束位置”;置信度信息:命中模型对应的置信度分数(范围:0至1,数字越大,可能性越高)。返回示例见下方“成功响应示例——不合规”部分
++++wordHitPositions Array N 送检文本命中词库的详细信息,为Object的列表,包含words、positions、label三个字段,详细描述如下表所示。返回示例见下方“成功响应示例——不合规”部分
+++++keyword String N 送检文本命中词库的关键词
+++++positions Array N 关键词在送检原文中的位置(从0开始计算):分别为“起始位置”,“结束位置”
+++++label String N 关键词命中的细分标签,标签规则见文末“细分标签对照表”
++++modelName String N 命中自定义模型名称
++++score Float N 命中自定义模型置信度
++++modelId Array N 命中自定义模型ID
++++label String N 命中自定义模型标签名称

请求参数示例

{
"taskId":"16412312312341",
"taskDuration":1000,
"extraInfo":"",
"extId":"1234",
"appId":"250345708",
"result":{
        "conclusion":"不合规",
"audios": [
            {
                "audioAuditResult": {
                    "conclusion": "不合规",
                    "conclusionType": 2,
                    "data": [
                        {
                            "auditData": [
                                {
                                    "hits": [
                                        {
                                            "datasetName": "百度默认文本反作弊库",
                                            "probability": 1.0,
                                            "words": [
                                                "示例词A",
                                                "示例词B"
                                            ]
                                        }
                                    ],
                                    "msg": "存在色情识别不合规",
                                    "subType": 0,
                                    "type": 1
                                }
                            ],
                            "conclusion": "不合规",
                            "conclusionType": 2,
                            "endTime": 10190,
                            "startTime": 0,
                            "text": "这是一段示例文字,"
                        },
                        {
                            "auditData": [
                                {
                                    "hits": [
                                        {
                                            "datasetName": "百度默认文本反作弊库",
                                            "probability": 0.906864,
                                            "words": []
                                        }
                                    ],
                                    "msg": "疑似存在色情识别不合规",
                                    "subType": 0,
                                    "type": 1
                                }
                            ],
                            "conclusion": "疑似",
                            "conclusionType": 3,
                            "endTime": 16510,
                            "startTime": 10190,
                            "text": "这是一段示例文字,"
                        }
                    ],
                    "log_id": 16824924784290161,
                    "rawText": [
                        "这是一段示例文字A,",
                        "这是一段示例文字B,"
                    ]
                },
                "audioUrl": "http://gz.bcebos.com/async-video-frame-hn/async/frame/1482863739/2023-04-26/16824924624300028/0.128000_16.596000.pcm?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2023-04-26T07%3A01%3A06Z%2F2592000%2Fhost%2Fb5313820defaa573536d69f02a5c5efe75b2a59051592f0cbe59a716b0fdb688",
                "endTime": 16596,
                "startTime": 128
            }
        ],
        "frames":[
            {
                "conclusion":"不合规",
                "frameTimeStamp":480,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/480.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A35Z%2F2592000%2F%2Fad06a942baa1c4e63907a0953b303ecf607b3da4c5944cb21f0dd66908d49c95",
                "data":[
                    {
                        "msg":"存在watermark不合规",
                        "conclusion":"不合规",
                        "probability":0.9168264,
                        "subType":0,
                        "conclusionType":2,
                        "type":4
                    }
                ],
                "conclusionType":2,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/480.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A35Z%2F2592000%2F%2Fad06a942baa1c4e63907a0953b303ecf607b3da4c5944cb21f0dd66908d49c95"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":120,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/120.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2Fcc9b9528d1c6f2db8010f17c29ae1a0d2221af32e6a90ef6f1e8b5d07a909197",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.88397026,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/120.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2Fcc9b9528d1c6f2db8010f17c29ae1a0d2221af32e6a90ef6f1e8b5d07a909197"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":150,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/150.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F3baee8925f5f24059468fb6f8ee987d402408e4437ae0975a20f8b19f5857956",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.85340554,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/150.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F3baee8925f5f24059468fb6f8ee987d402408e4437ae0975a20f8b19f5857956"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":180,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/180.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F0331c417d8b721d4ee88b53f436295c891b531aaf801098d5ebde2205ce4bc3f",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.85520506,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/180.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F0331c417d8b721d4ee88b53f436295c891b531aaf801098d5ebde2205ce4bc3f"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":210,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/210.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F15c32196ee914a6996f2b329f71422c1823922cea6d95701f90095f99a2834fd",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.89889395,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/210.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F15c32196ee914a6996f2b329f71422c1823922cea6d95701f90095f99a2834fd"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":240,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/240.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2Fcc708de7912d927dde56b365d3aecbe362ad47ca962bf77fa9a01a3e92e5ad8b",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.8332106,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/240.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2Fcc708de7912d927dde56b365d3aecbe362ad47ca962bf77fa9a01a3e92e5ad8b"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":360,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/360.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2Ffd9c7788c1da708c5dde025cb7db27547b855685e148295c3423776fc8c9a4aa",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.81543106,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/360.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2Ffd9c7788c1da708c5dde025cb7db27547b855685e148295c3423776fc8c9a4aa"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":300,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/300.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F4b09619af986557f7a612470b04b4df659072117fbce995c38c87466483c9b71",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.86002344,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/300.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F4b09619af986557f7a612470b04b4df659072117fbce995c38c87466483c9b71"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":330,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/330.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F274e0e8d04c1ea62ef68e1f44593b71330f7783a9c769214f1aef16be4d7548f",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.8592974,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/330.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A25Z%2F2592000%2F%2F274e0e8d04c1ea62ef68e1f44593b71330f7783a9c769214f1aef16be4d7548f"
            },
            {
                "conclusion":"疑似",
                "frameTimeStamp":510,
                "frameUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/510.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A35Z%2F2592000%2F%2Fc703deef16674dd2404217ccea19bc2df9a22833e8244d15e545d35ea285a651",
                "data":[
                    {
                        "msg":"疑似存在watermark不合规",
                        "conclusion":"疑似",
                        "probability":0.87063086,
                        "subType":0,
                        "conclusionType":3,
                        "type":4
                    }
                ],
                "conclusionType":3,
                "frameThumbnailUrl":"http://bj.bcebos.com/aip-web/81219/2021-08-12/162877275333721741/510.jpg?authorization=bce-auth-v1%2F5c28b2780c0d4df8a99aec39a07fdb79%2F2021-08-12T15%3A39%3A35Z%2F2592000%2F%2Fc703deef16674dd2404217ccea19bc2df9a22833e8244d15e545d35ea285a651"
            }
        ],
        "conclusionType":2
    }
}
上一篇
提交视频审核任务
下一篇
响应参数说明