产品动态
产品公告
GET /<ObjectKey>?ci-process=DetectCar HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
参数名称 | 描述 | 类型 | 是否必选 |
ObjectKey | 对象文件名,例如:folder/document.jpg | String | 是 |
ci-process | 数据万象处理能力,车辆识别固定为 DetectCar | String | 是 |
<Response><RequestId></RequestId><CarTags><Serial></Serial><Brand></Brand><Type></Type><Color><Color><Confidence></Confidence><Year></Year><CarLocation><X></X><Y></Y></CarLocation><PlateContent><Plate></Plate><Color></Color><Type></Type><PlateLocation><X></X><Y></Y></PlateLocation></PlateContent></CarTags></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
RequestId | Response | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 | String |
CarTags | Response | 车辆属性识别的结果数组,支持返回多个车辆信息 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Serial | Response.CarTags | 车系 | String |
Brand | Response.CarTags | 车辆品牌 | String |
Type | Response.CarTags | 车辆类型 | String |
Color | Response.CarTags | 车辆颜色 | String |
Confidence | Response.CarTags | 置信度,0 - 100 | Int |
Year | Response.CarTags | 年份,识别不出年份时返回0 | Int |
CarLocation | Response.CarTags | 车辆在图片中的坐标信息,可能返回多个坐标点的值 | Container |
PlateContent | Response.CarTags | 车牌信息,包含车牌号、车牌颜色、车牌位置。支持返回多个车牌 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
X | Response.CarTags.CarLocation | 横坐标 x | Int |
Y | Response.CarTags.CarLocation | 纵坐标 y | Int |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Plate | Response.CarTags.PlateContent | 车牌号信息 | String |
Color | Response.CarTags.PlateContent | 车牌的颜色 | String |
Type | Response.CarTags.PlateContent | 车牌的种类,例如普通蓝牌 | String |
PlateLocation | Response.CarTags.PlateContent | 车牌的位置 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
X | Response.CarTags.PlateContent.PlateLocation | 定位出的车牌左上角、右上角、左下角、右下角的 X 坐标 | Int |
Y | Response.CarTags.PlateContent.PlateLocation | 定位出的车牌左上角、右上角、左下角、右下角的 Y 坐标 | Int |
GET test.jpg?ci-process=DetectCar HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=****************************************Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.com
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 414641Date: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><RequestId>NjE1MzEyMDlfOTBmYTUwNjRfNzUz****</RequestId><CarTags><Serial>奔驰S级</Serial><Brand>奔驰</Brand><Type>轿车</Type><Color>黑</Color><Confidence>98</Confidence><Year>0</Year><CarLocation><X>8</X><Y>364</Y></CarLocation><CarLocation><X>8</X><Y>5</Y></CarLocation><CarLocation><X>637</X><Y>5</Y></CarLocation><CarLocation><X>637</X><Y>364</Y></CarLocation><PlateContent><Plate>陕ASxxxL</Plate><Color>蓝色</Color><Type>普通蓝牌</Type><PlateLocation><X>263</X><Y>309</Y></PlateLocation><PlateLocation><X>263</X><Y>239</Y></PlateLocation><PlateLocation><X>459</X><Y>239</Y></PlateLocation><PlateLocation><X>459</X><Y>309</Y></PlateLocation></PlateContent></CarTags><CarTags><Serial>五菱宏光</Serial><Brand>五菱</Brand><Type>面包车</Type><Color>白</Color><Confidence>0</Confidence><Year>0</Year><CarLocation><X>0</X><Y>228</Y></CarLocation><CarLocation><X>0</X><Y>81</Y></CarLocation><CarLocation><X>73</X><Y>81</Y></CarLocation><CarLocation><X>73</X><Y>228</Y></CarLocation></CarTags></Response>
文档反馈