注册单个目标信息到检测库
addAiDetectTarget:注册单个目标信息到检测库
功能详情
将单个人脸或人形工装,注册保存到指定的检测目标库中。后续可使用其他的图片,从目标库中检索是否有匹配的人脸或人形工装。
请求地址
https://openapi.lechange.cn/openapi/addAiDetectTarget
传入参数说明
| 参数名 | 参数类型 | 是否必填 | 默认值 | 合法值 | 参数说明 |
|---|---|---|---|---|---|
| token | String | 是 | 管理员accessToken | ||
| repositoryId | String | 是 | 检测目标库ID | ||
| type | Integer | 是 | 资源类型:0-图片URL,1-Base64编码的二进制图片数据 | ||
| content | String | 是 | 资源内容,Base64 编码的图片数据 或 图片URL。和type对应 |
样例输入
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"b7e5bbcc6cc07941725d9ad318883d8e",
"time":1599013514,
"nonce":"fbf19fc6-17a1-4f73-a967-75eadbc805a2"
},
"id":"98a7a257-c4e4-4db3-a2d3-d97a3836b87c",
"params":{
"token":"At_12345678901234567890123456789012",
"repositoryId": "xxxxxxxxxxxx",
"type": 0,
"content": "https://xxx.xxx.com/xx/xx.png"
}
}
返回data字段说明
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| targetKey | String | 注册成功后的目标唯一ID |
样例输出
{
"result":{
"msg":"操作成功。",
"code":"0",
"data":{
"targetKey": "qweqeqwe123123123"
}
},
"id":"98a7a257-c4e4-4db3-a2d3-d97a3836b87c"
}