最近更新时间:2021-10-14
行驶证识别用于识别行驶证图片中主页与副页的文字内容,并将识别的结果返回给您。支持识别行驶证主页及副页的所有字段,包含号牌号码、车辆类型、所有人、使用性质、品牌型号、车辆识别代码、发动机号、档案编号、核定载人数、总质量等证面文字信息。
调用地址:https://apim.unicloud.com/api/ocr/vehiclelicense/1.0.0/
请求方式:POST
返回类型:JSON
Header如下:
参数 | 值 | 说明 |
---|---|---|
Content-Type | application/json | -- |
Authorization | Bearer | 参考Token获取 |
Body如下:
参数 | 是否必选 | 类型 | 可选值范围 | 说明 |
---|---|---|---|---|
vehicle_pic | true | file | -- | 行驶证主页或副页图片(支持jpg、jpeg、png格式) |
vehicle_side | false | string | front/back | front:识别行驶证主页,back:识别行驶证副页,默认为主页 |
注:Body使用form-data形式
curl -k -H "Authorization:Bearer 2b8296e1-86a5-3a68-bd61-9b88f9dce5c0" \ -F "vehicle_pic=@imgpath.jpg" \ https://apim.unicloud.com/api/ocr/vehiclelicense/1.0.0/
curl -k -H "Authorization:Bearer 2b8296e1-86a5-3a68-bd61-9b88f9dce5c0" \ -F "vehicle_pic=@imgpath.jpg" \ https://apim.unicloud.com/api/ocr/vehiclelicense/1.0.0/
字段 | 类型 | 说明 |
---|---|---|
plate_number | string | 号牌号码 |
vehicle_type | string | 车辆类型 |
owner | string | 所有人 |
address | string | 住址 |
use_nature | string | 使用性质 |
brand | string | 品牌型号 |
engine_number | string | 发动机号码 |
registration_date | string | 注册日期 |
first_certification_date | string | 发证日期 |
identify_number | string | 车辆识别代码 |
file_number | string | 档案编号 |
total_quality | string | 总质量 |
approves_passengers_capacity | string | 核定载人数 |
curb_weight | string | 整备质量 |
approved_load_capacity | string | 核定载质量 |
overall_sizes | string | 外廓尺寸 |
traction_mass | string | 准牵引总质量 |
code | string | 是否正常返回(“succeed”,”failed”) |
行驶证主页:
{ "Data": { "plate_number": "京BU890D", "vehicle_type": "小型轿车", "owner": "焦西杰", "address": "湖南省津市市丰凤区古家西镇拓赣林第迁区", "use_nature": "非营运", "brand": "大众牌", "identify_number": "71MHM1", "engine_number": "Y27549", "registration_date": "2015-07-22", "first_certification_date": "2015-07-22" }, "code": "succeed" }
行驶证副页:
{ "code": "succeed", "Data": { "approved_load_capacity": "19000kg", "curb_weight": "15777kg", "approves_passengers_capacity": "5人", "total_quality": "2020kg", "plate_number": "沪AKG329", "file_number": "430101758218", "overall_sizes": "4643x180x1722mm", "traction_mass": "19000kg" } }
{ "code": "succeed", "Data": { "approved_load_capacity": "19000kg", "curb_weight": "15777kg", "approves_passengers_capacity": "5人", "total_quality": "2020kg", "plate_number": "沪AKG329", "file_number": "430101758218", "overall_sizes": "4643x180x1722mm", "traction_mass": "19000kg" } }