最近更新时间:2021-10-14
车牌识别用于识别车牌图片中的文字内容,并将识别的结果返回给您。支持对中国大陆机动车车牌的识别,并返回地域编号和车牌号信息。
调用地址:https://apim.unicloud.com/api/ocr/plate/1.0.0/
请求方式:POST
返回类型:JSON
Header如下:
| 参数 | 值 | 说明 |
|---|---|---|
| Content-Type | application/json | -- |
| Authorization | Bearer | 参考Token获取 |
Body如下:
| 参数 | 是否必选 | 类型 | 可选值范围 | 说明 |
|---|---|---|---|---|
| plate_pic | true | file | -- | 汽车牌照图片(支持jpg、jpeg、png格式) |
注:Body使用form-data形式
curl -k -H "Authorization:Bearer 2b8296e1-86a5-3a68-bd61-9b88f9dce5c0" \ -F "plate_pic=@imgpath.jpg"
curl -k -H "Authorization:Bearer 2b8296e1-86a5-3a68-bd61-9b88f9dce5c0" \ -F "plate_pic=@imgpath.jpg"
| 字段 | 类型 | 说明 |
|---|---|---|
| vehicle_number | string | 汽车牌照 |
| code | string | 是否正常返回(“succeed”,”failed”) |
正常返回示例
{
"code": "succeed",
"Data": {
"vehicle_number": "皖AL692B"
}
}{
"code": "succeed",
"Data": {
"vehicle_number": "皖AL692B"
}
}