地标检测
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/image/landmark_detection
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/image/landmark_detection' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false
}'
响应示例响应示例
200 - 成功示例
{
"google": {
"items": [
{
"description": "Saint Basil's Cathedral",
"confidence": 0.92191577,
"bounding_box": [
{
"x": 73,
"y": 175
},
{
"x": 410,
"y": 175
},
{
"x": 410,
"y": 404
},
{
"x": 73,
"y": 404
}
],
"locations": [
{
"lat_lng": {
"latitude": 55.752912,
"longitude": 37.622315883636475
}
}
]
},
{
"description": "St. Basil's Cathedral",
"confidence": 0.85232186,
"bounding_box": [
{
"x": 161,
"y": 73
},
{
"x": 410,
"y": 73
},
{
"x": 410,
"y": 407
},
{
"x": 161,
"y": 407
}
],
"locations": [
{
"lat_lng": {
"latitude": 55.752522899999995,
"longitude": 37.623086799999996
}
}
]
}
]
},
"microsoft": {
"items": [
{
"description": "Saint Basil's Cathedral",
"confidence": 0.9888749122619629,
"bounding_box": [],
"locations": []
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 09:02:18