电动车入梯算子
更新时间:2021-07-29
识别电动车入梯算子
在电梯角度摄像头的图片中,识别电动车(二轮车和三轮车)的类别和位置;
请求Url
POST /v1/electric/elevator/detect HTTP/1.1
Request参数
| 参数 | 可选 | 类型 | 说明 |
|---|---|---|---|
| image_base64 | 必选 | String | 图片base64编码,image_base64和image_url二选一即可,优先使用image_base64 |
| image_url | 必选 | String | 图片url,只有当image_base64为空时才会使用image_url下载图片再base64编码,增加下载时延 |
| min_score | 可选 | Double | 最小置信度,如果指定该参数,会对检测、识别结果按min_score过滤,只保留置信度大于min_score的特征结果 |
Response参数
| 参数 | 类型 | 说明 |
|---|---|---|
| code | Integer | 0:请求成功,非0:请求失败 |
| message | String | 请求成功message为空,请求失败为失败提示信息 |
| data | Object | 响应对象实体,包括属性列表和属性数量 |
| +items | List | 电动车列表 |
| ++label | Integer | 电动车类别标识 |
| ++category | String | 电动车类别 |
| ++desc | String | 电动车类别描述 |
| ++score | Double | 置信度 |
| ++location | Object | 位置信息 |
| +++left | Integer | 位置相对左边框的坐标 |
| +++top | Integer | 位置相对上边框的坐标 |
| +++width | Integer | 宽度 |
| +++height | Integer | 高度 |
| +item_count | Integer | 识别的item个数 |
其中电动车类别字典:
| label | category | desc |
|---|---|---|
| 1 | motorcycle | 摩托车 |
| 2 | e-motorcycle | 电动摩托车 |
| 3 | e-bicycle | 电动自行车 |
| 4 | bicycle | 自行车 |
| 5 | c-bicycle | 儿童脚踏车 |
| 6 | trolley | 手推车 |
| 7 | scooter | 滑板车 |
