开放能力
开发平台
行业应用
生态合作
开发与教学
资讯 社区 控制台
技术能力
语音技术
图像技术
文字识别
人脸与人体识别
视频技术
AR与VR
自然语言处理
知识图谱
数据智能
场景方案
部署方案
行业应用
智能教育
智能医疗
智能零售
智能工业
企业服务
智能政务
智能农业
信息服务
智能园区
智能硬件
内容审核平台

    请求说明

    接口说明

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

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

    接口地址: 用户自己的接收地址,可自定义实现
    请求方式:POST
    接口名称:内容审核平台-长视频(接收结果)

    请求参数

    字段名 类型 是否必须 备注 样例
    appId String Y 用户的appId
    taskId String Y 用户任务taskId
    extId String Y 用户测提交任务的唯一Id
    result JSONObject Y 结论详情,参见审核结论详情数据
    +conclusion String N 审核结果描述,可取值:合规、不合规、疑似
    +conclusionType Int N 审核结果,可取值:1 合规,2 不合规,3 疑似, 4 审核失败
    +frames JsonArray N 帧审核明细,定义只返回违规、疑似的帧;审核失败、合规的不返回
    ++frameTimeStamp Long N 帧时间戳
    ++conclusion Long 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:色情识别、2:暴恐识别、3:恶心图识别、4:广告检测、5:政治敏感识别、6:图像质量检测、7:用户图像黑名单、8:用户图像白名单、9:图文审核、10:用户头像审核、11:百度官方违禁词库、12:文本反作弊、13:自定义文本黑名单、14:自定义文本白名单、15:EasyDL自定义模型、16:旗帜标志识别、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=2时subType取值含义:
    0:警察部队、1:血腥、2:尸体、3:爆炸火灾、4:杀人、5:暴乱、6:暴恐人物、7:军事武器、8:暴恐旗帜、9:血腥动物或动物尸体、10:车祸、11:枪械、12:弹药、13:刀具、14:武装人员、15、特殊服饰
    当type=3时subType取值含义:
    0:恶心图、1:性器官特写、2:脏器、3:疾病表症、4:密集恐惧症、5:腐烂食物、6:排泄物、7:恶心动物、8:人体血腥和尸体、9:动物血腥及尸体
    当type=4时subType取值含义:0:水印、1:二维码、2:条形码、3:识别二维码中内容、4:识别条形码中内容、5:不过滤字幕、6:小程序码
    当type=5时subType取值含义:0:政治敏感、1:公众人物、2:自定义敏感人脸黑库、3:自定义敏感人脸白库
    当type=6时subType取值含义:
    0:图像清晰度、1:图像美观度
    当type=7时subType取值含义:
    0:用户自定义图像黑名单
    当type=8时subType取值含义:
    0:用户自定义图像白名单
    当type=11时subType取值含义:
    0:百度官方默认违禁词库
    当type=12时subType取值含义:
    0:低质灌水、1:暴恐违禁、2:文本色情、3:政治敏感、4恶意推广、5:低俗辱骂、6:恶意推广-联系方式、7:恶意推广-软文推广、8:广告法审核
    当type=13时subType取值含义:
    0:自定义文本黑名单
    当type=14时subType取值含义:
    0:自定义文本白名单
    当type=16时subType取值含义:
    0:中国国旗及类似图形、1:中国地图及类似图形、2:党旗、军旗、党徽及类似图形、3:警徽及类似图形、4:各类臂章、5:反动组织旗帜、徽章、标志
    当type=21时subType取值含义:
    1:真人吸烟、2:卡通吸烟、3:毒品、4:真人饮酒、5:卡通饮酒、6:赌博、7:纹身
    当type=24时subType取值含义:
    0:卫生间场景、1:车内场景、2:卧室场景、3:无意义场景、4:普通场景
    +++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 命中关键词
    ++++modelName String N 命中自定义模型名称
    ++++score Float N 命中自定义模型置信度
    ++++modelId Array N 命中自定义模型ID
    ++++label String N 命中自定义模型标签名称

    接收通知结论代码

    /**
         * @param taskId 视频任务ID
         * @param extId  用户侧视频唯一ID
         * @param appId  用户应用ID
         * @param result 视频审核结论
         */
        @RequestMapping(name = "/notice", method = RequestMethod.POST)
        @ResponseBody
        public String notice(@RequestParam(value = "taskId") String taskId,
                             @RequestParam(value = "extId") String extId,
                             @RequestParam(value = "appId") String appId,
                             @RequestParam(value = "result") String result) {
            System.out.println("appId:" + appId);
            System.out.println("extId:" + extId);
            System.out.println("result:" + result);
            AddVideoStreamResponse response = new AddVideoStreamResponse();
            response.setCode(0);
            response.setData(result);
            response.setMsg("SUCCESS");
            return JsonUtils.toJson(response);
        }

    请求参数示例

    result参数示例

    {
            "conclusion":"不合规",
            "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
        }
    上一篇
    提交视频审核任务
    下一篇
    响应参数说明