添加人体库人体
更新时间:2022-11-04
接口描述
本接口用于向EVS人体库添加一个人体
请求结构
POST /v1/database/human HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
{
"databaseId": databaseId,
"description": description,
"pics": pics
}
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必须 | 参数位置 | 描述 |
---|---|---|---|---|
databaseId | String | 是 | RequestBody参数 | 人体库ID |
description | String | 否 | RequestBody参数 | 用户描述,最大长度128个字符 |
pics | Array | 是 | RequestBody参数 | 图片列表,填BOS Key |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
humanId | String | 人体ID,20位随机数 |
请求示例
POST /v1/database/human HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
{
"databaseId": "ddb-maqtvbg8e1bipyi5",
"description": "人体描述",
"pics": [
"tmp/dbf-maqtvbg8e1bipyi5/user1-1.jpg",
"tmp/dbf-maqtvbg8e1bipyi5/user1-2.jpg"
]
}
响应示例
HTTP/1.1 200 OK
Transfer-Encoding: chunked
x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
Cache-Control: no-cache
Server: BWS
Date: Tue, 24 Mar 202 013:34:07 GMT
Content-Type: application/json;charset=UTF-8
{
"humanId": "ddh-maqusa7sc9v2z9ct"
}