解释 :用于检测一张车辆图片的具体车型,即对于输入的一张图片(可正常解码,且长宽比适宜),输出图片的车辆品牌及型号、颜色及年份、位置信息。
Web 态说明:受宿主环境限制,Web 态暂不支持 AI 能力相关接口。在 Web 态会做 打开百度 App 对应小程序页面 的降级处理。

创新互联公司主要从事网站制作、成都网站建设、网页设计、企业做网站、公司建网站等业务。立足成都服务槐荫,10多年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:13518219792
Object object
| 属性名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
|
image |
String |
是 |
- |
图像资源地址 |
|
top_num |
Number |
否 |
5 |
返回结果 top n,默认 5 |
|
success |
Function |
否 |
接口调用成功的回调函数 |
|
|
fail |
Function |
否 |
接口调用失败的回调函数 |
|
|
complete |
Function |
否 |
接口调用结束的回调函数(调用成功、失败都会执行) |
| 参数 | 类型 | 说明 |
|---|---|---|
|
log_id |
Number |
唯一的 log id ,用于问题定位 |
|
color_result |
string |
颜色 |
|
result |
Array |
车型识别结果数组 |
|
location_result |
Object |
车在图片中的位置信息 |
| 参数名 | 参数类型 | 说明 |
|---|---|---|
|
name |
String |
车型名称,示例:宝马 x6 |
|
score |
Number |
置信度,示例:0.5321 |
|
year |
String |
年份 |
| 参数名 | 参数类型 | 说明 |
|---|---|---|
|
left |
Number |
左起像素位置 |
|
top |
Number |
上起像素位置 |
|
width |
Number |
像素宽 |
|
height |
Number |
像素高 |
跳转编辑工具
在开发者工具中打开
在 WEB IDE 中打开
扫码体验
代码示例
请使用百度APP扫码
识别结果 {{item.name}} 置信度 {{item.score}} % 年份 {{item.year}} 未检测到车辆 请上传包含车辆的清晰图片
{"log_id": $log_id,"location_result": {"width": 434,"top": 119,"height": 246,"left": 110},"result": [{"score": 0.99993008375168,"name": "宝马X3","year": "2016"},{"score": 0.00005255633732304,"name": "宝马X4","year": "2015-2016"},{"score": 0.0000031432850846613,"name": "SWM斯威X7","year": "2016-2017"},{"score": 0.0000012879694395451,"name": "宝马X5","year": "2016-2017"},{"score": 5.6126202707674e-7,"name": "丰田汉兰达","year": "2015-2017"},{"score": 4.4069730620322e-7,"name": "斯柯达速尊","year": "2014-2016"},{"score": 4.0618823504701e-7,"name": "宝马X1","year": "2017"}],"color_result": "白色"}