行驶证识别 OCR

HTTPS
支持对机动车行驶证正页的所有字段识别,包括号牌号码、车辆类型、所有人、住址、使用性质、品牌型号、车辆识别代号、发动机号码、注册日期、发证日期。
免费套餐
套餐 1
套餐 2
套餐 3
套餐 4
0 / 50 次

雷达评级

AA

用户规模

10 万+

产品上线

4

行驶证识别 OCR

接口地址
https://tupu.apistd.com/v3/recognition/drivinglicense-ocr
请求格式
multipart/form-data
响应格式
application/json
请求方法
POST
请求参数 (Query)
参数类型必须描述
keystring
string
请求 AccessKey, 请在控制台中查看
请求参数 (Body)
参数类型必须描述
imagefile
string|file
1、支持传图片URL或者直接post图片文件,不过两者不能混在同一请求中;2、支持多个image参数,也就是上传多个图片文件;3、只支持对静态图像的处理,如:png、jpg、jpeg、tif、webp,不支持动态图像的处理,如:gif;如需识别请参考视频识别;4、为了加快网络传输速度,图片大小必须在1M以内,且建议对图片进行压缩处理,等比压缩到[256, 512]之间。
tagstring
string
用于给图片或文本附加额外信息(比如:直播客户可能传房间号,或者主播ID信息)。方便后续根据tag搜索到相关的图片或文本。1、支持多个tag参数,和image或text参数一一对应;2、如果tag只有一个,或者tag数量少于image或text,缺省用最后一个tag补全(尾补全)。
refererstring
string
根据图片url下载图片时,将其赋值给HTTP Header的Referer,用于图片防盗链
返回参数 (Body)
参数类型描述
codenumber
number
请求的状态码
messagestring
string
请求的状态信息
timestampnumber
number
当前的服务器的Unix时间戳
noncenumber
number
随机数
dataobject
object
识别任务的结果
fileListarray
array
每张图片的识别结果
namestring
string
如果上传的image参数是url,则该值是图片url;如果是以图片文件上传,则该值为文件名
objectsarray
array
检测出来的所有物体
locationarray
array
物体方框坐标[左上角坐标,右上角坐标,右下角坐标,左下角坐标]
categorynumber
number
行驶证信息类别 0 号牌号码 1 车辆类型 2 所有人 3 住址 4 使用性质 5 品牌型号 6 车辆识别代号 7 发动机号码 8 注册日期 9 发证日期
scoresnumber
number
行驶证信息类别分数,准确度[0~1],分数越高,该类型越准确
请求返回示例
{
  "data": {
    "fileList": [
      {
        "objects": [
          {
            "scores": 1,
            "degree": 360,
            "location": [
              [
                0.204,
                0.24592391304348
              ],
              [
                0.337,
                0.24592391304348
              ],
              [
                0.337,
                0.30027173913043
              ],
              [
                0.204,
                0.30027173913043
              ]
            ],
            "category": 0,
            "text": ""
          },
          {
            "scores": 1,
            "degree": 359,
            "location": [
              [
                0.458,
                0.61141304347826
              ],
              [
                0.852,
                0.61141304347826
              ],
              [
                0.852,
                0.6616847826087
              ],
              [
                0.458,
                0.6616847826087
              ]
            ],
            "category": 6,
            "text": "SSVUD********2558"
          },
          {
            "scores": 1,
            "degree": 359,
            "location": [
              [
                0.676,
                0.79211956521739
              ],
              [
                0.901,
                0.79211956521739
              ],
              [
                0.901,
                0.83695652173913
              ],
              [
                0.676,
                0.83695652173913
              ]
            ],
            "category": 9,
            "text": "2018-03-13"
          },
          {
            "scores": 1,
            "degree": 359,
            "location": [
              [
                0.394,
                0.78532608695652
              ],
              [
                0.619,
                0.78532608695652
              ],
              [
                0.619,
                0.83016304347826
              ],
              [
                0.394,
                0.83016304347826
              ]
            ],
            "category": 8,
            "text": "2018-03-12"
          },
          {
            "scores": 1,
            "degree": 359,
            "location": [
              [
                0.209,
                0.51086956521739
              ],
              [
                0.405,
                0.51086956521739
              ],
              [
                0.405,
                0.56385869565217
              ],
              [
                0.209,
                0.56385869565217
              ]
            ],
            "category": 4,
            "text": "非营运"
          },
          {
            "scores": 1,
            "degree": 359,
            "location": [
              [
                0.208,
                0.42119565217391
              ],
              [
                0.547,
                0.42119565217391
              ],
              [
                0.547,
                0.47826086956522
              ],
              [
                0.208,
                0.47826086956522
              ]
            ],
            "category": 3,
            "text": "中****寨村"
          },
          {
            "scores": 1,
            "degree": 360,
            "location": [
              [
                0.206,
                0.33423913043478
              ],
              [
                0.372,
                0.33423913043478
              ],
              [
                0.372,
                0.38586956521739
              ],
              [
                0.206,
                0.38586956521739
              ]
            ],
            "category": 2,
            "text": "郑*"
          },
          {
            "scores": 1,
            "degree": 359,
            "location": [
              [
                0.479,
                0.52173913043478
              ],
              [
                0.899,
                0.52173913043478
              ],
              [
                0.899,
                0.57201086956522
              ],
              [
                0.479,
                0.57201086956522
              ]
            ],
            "category": 5,
            "text": "大众汽车牌********FD"
          },
          {
            "scores": 1,
            "degree": 360,
            "location": [
              [
                0.544,
                0.25271739130435
              ],
              [
                0.866,
                0.25271739130435
              ],
              [
                0.866,
                0.30978260869565
              ],
              [
                0.544,
                0.30978260869565
              ]
            ],
            "category": 1,
            "text": "小型普通客车"
          },
          {
            "scores": 1,
            "degree": 359,
            "location": [
              [
                0.45,
                0.69836956521739
              ],
              [
                0.638,
                0.69836956521739
              ],
              [
                0.638,
                0.7445652173913
              ],
              [
                0.45,
                0.7445652173913
              ]
            ],
            "category": 7,
            "text": "1_11533"
          }
        ],
        "name": "B1934B4FE1BF4BC38F14621E554CFD41.jpeg"
      }
    ]
  },
  "code": 0,
  "message": "success",
  "nonce": "0.8887961930077664",
  "timestamp": 1610357951175
}

行驶证识别 OCR-API接口介绍