阿里云知识

阿里云行驶证识别请求接口参数说明

用户提供一张待识别照片,系统对图片进行识别并返回图片中的行驶证信息。支持图片中包含多个行驶证件,可同时支持识别证件首副页。 请求参数说明: Body:(JSON) { system : 应用系统名称, file_type : base64 or file_id or url, //标识传入文件方式,包

用户提供一张待识别照片,系统对图片进行识别并返回图片中的行驶证信息。支持图片中包含多个行驶证件,可同时支持识别证件首副页。

请求参数说明:
Body:(JSON)
 
{
    “system”  : “应用系统名称”,
    “file_type” : “base64 or file_id or url”,  //标识传入文件方式,包括base64(图片文件base64编码),file_id(阿里影像系统文件唯一索引id),url(图片下载路径)
    “file”     : “文件内容“ //根据file_type,以不同形式上传图片文件信息
}
 
返回参数说明:
 
{
    "code": "200", // [string] 接口状态码
    "message": "success", // [string] 结果描述
    "info": [
        //行驶证1识别结果
        {
            "angle": 0,
            "content": {
                "car_model": { //行驶证品牌型号识别结果体
                    "coord": {
                        "xmax": 693,
                        "xmin": 425,
                        "ymax": 587,
                        "ymin": 550
                    },
                    "score": "0.964932122560654",
                    "text": "宝马牌BMW7160BL"
                },
                "car_owner": {//行驶证所有人识别结果体
                    "coord": {
                        "xmax": 290,
                        "xmin": 186,
                        "ymax": 472,
                        "ymin": 437.9166717529297
                    },
                    "score": "0.9657182843890609",
                    "text": "李四"
                },
                "car_plate_number": {//行驶证车牌号识别结果体
                    "coord": {
                        "xmax": 320,
                        "xmin": 201,
                        "ymax": 424.3391418457031,
                        "ymin": 389.8228454589844
                    },
                    "score": "0.9838326009980349",
                    "text": "闽AM886E"
                },
                "engine_id": {//行驶证发动机号识别结果体
                    "coord": {
                        "xmax": 499,
                        "xmin": 365,
                        "ymax": 687.4606628417969,
                        "ymin": 645.0656127929688
                    },
                    "score": "0.9839967149841824",
                    "text": "A029K123"
                },
                "functional_type": {//行驶证使用性质识别结果体
                    "coord": {
                        "xmax": 276,
                        "xmin": 186,
                        "ymax": 577.452392578125,
                        "ymin": 541.4190521240234
                    },
                    "score": "0.9864424307649581",
                    "text": "非营运"
                },
                "issue_date": {//行驶证发证日期识别结果体
                    "coord": {
                        "xmax": 693,
                        "xmin": 559,
                        "ymax": 742.1231994628906,
                        "ymin": 699.7330017089844
                    },
                    "score": "0.9964892010401782",
                    "text": "2016-02-04"
                },
                "register_date": {//行驶证注册日期识别结果体
                    "coord": {
                        "xmax": 484,
                        "xmin": 320,
                        "ymax": 745.93115234375,
                        "ymin": 699.7099609375
                    },
                    "score": "0.9860081773073611",
                    "text": "2016-02-04"
                },
                "vehicle_type": {//行驶证车辆类型识别结果体
                    "coord": {
                        "xmax": 589,
                        "xmin": 484,
                        "ymax": 444.69642639160156,
                        "ymin": 401.6607131958008
                    },
                    "score": "0.9714333358373094",
                    "text": "小型轿车"
                },
                "vin_id": {//行驶证车架号识别结果体
                    "coord": {
                        "xmax": 633,
                        "xmin": 395,
                        "ymax": 634.75439453125,
                        "ymin": 600.0473937988281
                    },
                    "score": "0.9997054016061853",
                    "text": "LBV8V1105GMD12345"
                }
            },
            "coord": {
                "xmax": 701,
                "xmin": 30,
                "ymax": 765,
                "ymin": 303
            },
            "img_type": "vehicle_license_first"
        },
        //行驶证2识别结果
        {
            "angle": 0,
            "content": {
                "car_plate_number": {//行驶证车牌号识别结果体
                    "coord": {
                        "xmax": 977,
                        "xmin": 869,
                        "ymax": 401.39975357055664,
                        "ymin": 367.0156993865967
                    },
                    "score": "0.9135291024042629",
                    "text": "闽AM123E"
                },
                "car_seat_count": {//行驶证座位数识别结果体
                    "coord": {
                        "xmax": 923,
                        "xmin": 880,
                        "ymax": 442.08629608154297,
                        "ymin": 408.8532028198242
                    },
                    "score": "0.9655856667646889",
                    "text": "5人"
                },
                "curb_weight": {//行驶证整备质量识别结果体
                    "coord": {
                        "xmax": 955,
                        "xmin": 880,
                        "ymax": 487.2905731201172,
                        "ymin": 454.7721481323242
                    },
                    "score": "0.8582167868530666",
                    "text": "1530kg"
                },
                "gross_mass": {//行驶证总质量识别结果体
                    "coord": {
                        "xmax": 1236,
                        "xmin": 1160,
                        "ymax": 461,
                        "ymin": 429.03453063964844
                    },
                    "score": "0.9155686933038428",
                    "text": "1955kg"
                },
                "overall_dimension": {//行驶证外廓尺寸识别结果体
                    "coord": {
                        "xmax": 1085,
                        "xmin": 880,
                        "ymax": 535.4276580810547,
                        "ymin": 499.15745544433594
                    },
                    "score": "0.6368773862136221",
                    "text": "4753X1811X1453mm"
                },
                "payload": {//行驶证核定载重量识别结果体
                    "coord": {
                        "xmax": 1085,
                        "xmin": 880,
                        "ymax": 535.4276580810547,
                        "ymin": 499.15745544433594
                    },
                    "score": "0.90823423423123",
                    "text": "1234kg"
                },
                "traction_mass ": {//行驶证准牵引总质量识别结果体
                    "coord": {
                        "xmax": 1085,
                        "xmin": 880,
                        "ymax": 535.4276580810547,
                        "ymin": 499.15745544433594
                    },
                    "score": "0.90823423423123",
                    "text": "1234kg"
                },
                "valid_date ": {//行驶证检验有效期识别结果体
                    "coord": {
                        "xmax": 1085,
                        "xmin": 880,
                        "ymax": 535.4276580810547,
                        "ymin": 499.15745544433594
                    },
                    "score": "0.90823423423123",
                    "text": "检验有效期至2017年01月京A(01)"
                },
            },
            "coord": {
                "xmax": 1263,
                "xmin": 778,
                "ymax": 749,
                "ymin": 351
            },
            "img_type": "vehicle_license_second"
        }
    ],
}
 
错误码定义:
    200     结束正常
    8001    OCR 系统服务异常导致图片识别失败
    8002    无效的入参,如入参格式不正确或图片无法解析等
    8003    未检测到有效的证件
    8004    OCR 服务器端接口签证失败
    8005    系统繁忙,请稍后再试



上一篇:阿里云身份证识别请求接口参数说明 下一篇:阿里云服务器实例如何分配至项目

精彩导读