接口描述
请求路径:https://aiapi-ocr.apigw-gz.didiyunapi.com/algo/ocr/v1/vehicle_license
请求方法:POST
输入参数
参数名称 | 必选 | 默认值 | 描述 |
---|---|---|---|
url | 是 | 无 | 图片url地址。 |
type | 是 | 无 | 0,1分别表示图片是行驶证的副页和正页。 |
输出参数
参数名称 | 类型 | 描述 |
---|---|---|
status | int | 状态码,0表示正常,1表示异常 |
error_code | int | 识别状态code,0表示成功,非0表示异常 |
error_message | string | 识别状态code非0时对应的异常信息 |
cards | Cards | 请求返回数据 |
Cards:
参数名称 | 类型 | 描述 |
---|---|---|
is_valid | int | 0,1分别表示该图片是否和参数中type指定的类型一致(1:是,0:否) |
plate | string | 号牌号码 |
plate_prob | double | 号牌号码识别置信度 |
vehicle_type | string | 车辆类型 |
vehicle_type_prob | double | 车辆类型识别置信度 |
owner | string | 所有人 |
owner_prob | double | 所有人识别置信度 |
address | string | 地址 |
address_prob | double | 地址识别置信度 |
use_character | string | 使用性质 |
use_character_prob | double | 使用性质识别置信度 |
model | string | 品牌型号 |
model_prob | double | 品牌型号识别置信度 |
vin | string | 车辆识别代号 |
vin_prob | double | 车辆识别代号识别置信度 |
engine | string | 发动机号码 |
engine_prob | double | 发动机号码识别置信度 |
date | string | 注册日期 |
date_prob | double | 注册日期识别置信度 |
date_issue | string | 发证日期 |
date_issue_prob | double | 发证日期识别置信度 |
错误码
示例
请求:
curl -H"Content-Type: application/json" -X POST http://aiapi-ocr.apigw-gz.didiyunapi.com/algo/ocr/v1/vehicle_license -H 'Authorization: AppCode ACDDqo3ZnIWsWdVPX5CehmhzaW5vHbcb' -d '{"url":"http://img-hxy021.didistatic.com/static/menghui_space/ocr_zhengye/140412818.jpg", "type":"1"}'
输出:
{
"status":0,
"cards":[
{
"date_issue":"20181226",
"vin":"LDEV205JZ00097100089",
"address_prob":0.4253,
"plate_prob":1,
"model_prob":0.9999,
"vehicle_type_prob":1,
"owner":"北京车胜科技有限公司惠州分公司",
"date_issue_prob":0.9999,
"police":"广东省惠州市公安局交通普察支队",
"vin_prob":0.9888,
"date_prob":0.9999,
"is_valid":1,
"use_character_prob":0.9999,
"engine":"DEV205JZ00097100089",
"plate":"粤LD09733",
"engine_prob":0.9875,
"use_character":"预约出租客运",
"address":"广州市江北市号中区双园大道69号(0幢办公",
"date":"20181226",
"vehicle_type":"小型轿车",
"police_prob":0.6593,
"model":"风神牌DFM7000G1F6BEV",
"owner_prob":0.9461
}
],
"error_code":0
}