生产环境HOST:https://digitalman.h5no1.com
测试环境HOST:https://test.digitalman.h5no1.com
对接数字人开放平台,人脸审核。
接口地址 /open/platform/queueDigital/
faceCensor
请求方式 POST
consumes ["application/json"]
produces ["application/json"]
接口描述 视频人脸融合,
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | 备注 |
---|---|---|---|---|---|
resourceConfigId | 数字人平台资源队列配置id (人脸审核队列) | true | Long | 数字人平台获取 | |
image | 图片base64编码 图片url和图片base64二选一 | false | String | 二选一 | |
imgUrl | 图片地址 图片url和图片base64二选一 | false | String | 二选一 | |
channel | 渠道: T=腾讯,V=火山引擎 B=百度,默认值('B') | false | String | 暂时只支持B | |
requestId | 请求id (唯一) | true | Long | 随机数 |
https://digitalman.h5no1.com/open/platform/queueDigital/faceCensor
{
"resourceConfigId": 139682625782701056,
"image": null,
"imgUrl": "https://rabbitlab-2d-1251517970.cos.ap-guangzhou.myqcloud.com/1/face/hg.png",
"requestId": 1744903622966001664,
"channel": "B"
}
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
code | 状态码 | body | true | string | |
showMsg | 错误描述 | body | true | string | |
errorMsg | 错误描述 对开放者 | body | true | string | |
data | 响应数据 | body | true | object | QueueImageCensorRes |
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
conclusion | 审核结论: 合规、不合规、疑似、审核失败 | body | true | string | |
keywords | 违规词条 | body | true | string | 实际违规信息 |
状态码 | 说明 | schema |
---|---|---|
0 | OK |
合规:
{
"code": "0",
"showMsg": null,
"errorMsg": null,
"requestId": "17048524175986631",
"data": {
"conclusion": "合规",
"keywords": null
}
}
不合规:
{
"code": "0",
"showMsg": null,
"errorMsg": null,
"requestId": "17048530381013951",
"data": {
"conclusion": "不合规",
"keywords": "头像审核未检测到人脸不合规"
}
}