脸部对比
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/image/face_compare
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/image/face_compare' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false
}'
响应示例响应示例
200 - 成功示例
{
"facepp": {
"items": [
{
"confidence": 0.97283,
"bounding_box": {
"top": 189,
"left": 340,
"height": 348,
"width": 348
}
}
]
},
"amazon": {
"items": [
{
"confidence": 1,
"bounding_box": {
"top": 0.08223077654838562,
"left": 0.25835734605789185,
"height": 0.33433008193969727,
"width": 0.2857730984687805
}
}
]
},
"base64": {
"items": [
{
"confidence": 0.7,
"bounding_box": {
"top": 95,
"left": 317,
"height": 432,
"width": 364
}
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 08:49:40