行驶证OCR

最后更新于:2022-04-02 08:17:10

## 行驶证识别 ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/b5/09/b509fd7a15828c594f55b58d914d33af_512x281.png =x120) > 对机动车行驶证主页字段进行结构化识别,包括号牌号码、车辆类型、所有人、品牌型号、车辆识别代码、发动机号码、核定载人数等 ## 接口费用( [点击购买](https://market.topthink.com/product/108)) > 最低 0.08元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` POST https://api.topthink.com/ocr/vehicle_license ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是 |string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | image | 是 | string | 识别图片,请确保身份证内容信息清晰可见。支持url或base64,图片大小不能大于2M,支持图片类型:jpg/png/bmp | | imageType| 是 | string | 图片类型,枚举值:URL-图片路径;BASE64 –图片BASE64编码 | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | |tradeNo|String|交易号,唯一。样例:18041109215057630| |brandModel|String|品牌型号| |openingDate|String|发证日期| |usingProperties|String|使用性质| |engineNo|String|发动机号码| |possessor|String|所有人| |address|String|地址| |registrationDate|String|注册日期| |vin|String|车辆识别代码| |vehicleType|String|车辆类型| |plateNo|String|车牌号| |msg|String|行驶证检测业务返回码对应说明| ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->ocrDrivingLicense() ->withImage('图像地址') ->withImageType('URL') ->request(); dump($result); ``` 返回结果示例: ``` { "code": 0, "message": "成功", "data":{ msg: "成功", engineNo: "53****Y", address: "江西省****附1号", tradeNo: "18062915505091149", plateNo: "赣****10", usingProperties: "非营运", brandModel: "东风日产****L2", possessor: "段**", registrationDate: "20170123", vin: "LGBH*******5652", openingDate: "20170123", vehicleType: "小型轿车" } } ```
';