Logo 检测
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/image/logo_detection
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/image/logo_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": []
},
"microsoft": {
"items": [
{
"bounding_poly": {
"vertices": [
{
"x": 301,
"y": 124
},
{
"x": 543,
"y": 124
},
{
"x": 543,
"y": 400
},
{
"x": 301,
"y": 400
}
]
},
"description": "Apple",
"score": 0.891
}
]
},
"clarifai": {
"items": [
{
"bounding_poly": {
"vertices": [
{
"x": 965.1260159999999,
"y": 147.594204
},
{
"x": 1222.1293696,
"y": 147.594204
},
{
"x": 1222.1293696,
"y": 416.270124
},
{
"x": 965.1260159999999,
"y": 416.270124
}
]
},
"description": "Gatorade",
"score": 0.36127707
},
{
"bounding_poly": {
"vertices": [
{
"x": 303.5156864,
"y": 173.7181368
},
{
"x": 542.7466624,
"y": 173.7181368
},
{
"x": 542.7466624,
"y": 407.561328
},
{
"x": 303.5156864,
"y": 407.561328
}
]
},
"description": "Pepsi",
"score": 0.29769984
},
{
"bounding_poly": {
"vertices": [
{
"x": 528.9805184,
"y": 353.2499712
},
{
"x": 805.681024,
"y": 353.2499712
},
{
"x": 805.681024,
"y": 411.26702400000005
},
{
"x": 528.9805184,
"y": 411.26702400000005
}
]
},
"description": "Pepsi",
"score": 0.054978378
},
{
"bounding_poly": {
"vertices": [
{
"x": 148.319264,
"y": 197.0731152
},
{
"x": 274.7208192,
"y": 197.0731152
},
{
"x": 274.7208192,
"y": 372.14491680000003
},
{
"x": 148.319264,
"y": 372.14491680000003
}
]
},
"description": "Under-Armour",
"score": 0.026964108
},
{
"bounding_poly": {
"vertices": [
{
"x": 561.9222272,
"y": 160.2127944
},
{
"x": 774.38336,
"y": 160.2127944
},
{
"x": 774.38336,
"y": 393.14930400000003
},
{
"x": 561.9222272,
"y": 393.14930400000003
}
]
},
"description": "Gatorade",
"score": 0.01654512
},
{
"bounding_poly": {
"vertices": [
{
"x": 745.5328,
"y": 163.84145039999999
},
{
"x": 942.7647360000001,
"y": 163.84145039999999
},
{
"x": 942.7647360000001,
"y": 417.965184
},
{
"x": 745.5328,
"y": 417.965184
}
]
},
"description": "Budweiser",
"score": 0.011105369
}
]
},
"api4ai": {
"items": [
{
"bounding_poly": {
"vertices": [
{
"x": 0,
"y": 0.11240538954734802
},
{
"x": 0.997164249420166,
"y": 0.11240538954734802
},
{
"x": 0.997164249420166,
"y": 0.6311928331851959
},
{
"x": 0,
"y": 0.6311928331851959
}
]
},
"description": "Yahoo",
"score": 0.8487341403961182
},
{
"bounding_poly": {
"vertices": [
{
"x": 0,
"y": 0.10130736231803894
},
{
"x": 1,
"y": 0.10130736231803894
},
{
"x": 1,
"y": 0.6678279936313629
},
{
"x": 0,
"y": 0.6678279936313629
}
]
},
"description": "Unicef",
"score": 0.1362941861152649
}
]
},
"smartclick": {
"items": [
{
"bounding_poly": {
"vertices": [
{
"x": 299,
"y": 123
},
{
"x": 541,
"y": 123
},
{
"x": 541,
"y": 398
},
{
"x": 299,
"y": 398
}
]
},
"description": null,
"score": null
},
{
"bounding_poly": {
"vertices": [
{
"x": 549,
"y": 159
},
{
"x": 1234,
"y": 159
},
{
"x": 1234,
"y": 418
},
{
"x": 549,
"y": 418
}
]
},
"description": null,
"score": null
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 09:02:20