驾驶证OCR识别
  • 可对驾驶证上的全部字段进行识别
  • 支持任意方向的图像自动识别

  API 文档     立即购买

在线体验

本地上传

产品概述

   * 可对行驶证上全部字段数据进行识别
   * 识别率达98%以上

API

接口说明

接口地址: www.etoplive.com/ocr/server.srvc
接口调用方法:Post
接口调用参数:
序号名称类型必填说明
1fileString上传的文件(图片的base64流)
2keyString用户ocrKey
3secretString 用户ocrSecret
4pidInteger识别类型(驾驶证OCR识别 固定值:7)
返回数据:
返回数据类型: JSON
返回数据示例: {"ErrorCode":0,"Time":"1250","ResultList":[{"pid":7,"type":"驾驶证正页","position":{"left":872,"top":385,"width":726,"height":512},"direct":2,"angle":0,"image_data":"/9j/4AAQS/2Q==","FieldList":[{"key":"CardNo","chn_key":"证号","value":"51012119540413003X","image_data":"/9j/4AEUyBioyMjOKKXOwcrn//2Q==","position":{"left":299,"top":87,"width":279,"height":43},"quad":[300,87,579,99,578,130,299,119]},{"key":"Name","chn_key":"姓名","value":"李世春","image_data":"/9j/42Q==","position":{"left":112,"top":121,"width":160,"height":40},"quad":[113,121,272,127,272,161,112,155]},{"key":"Sex","chn_key":"性别","value":"男","image_data":"","position":{"left":0,"top":0,"width":0,"height":0},"quad":[0,0,0,0,0,0,0,0]},{"key":"Nationality","chn_key":"国籍","value":"中国","image_data":"","position":{"left":0,"top":0,"width":0,"height":0},"quad":[0,0,0,0,0,0,0,0]},{"key":"Address","chn_key":"地址","value":"四川省成都市金堂县赵镇文化街402号","image_data":"/9j/4AAQSO7KbZ//9k=","position":{"left":117,"top":168,"width":489,"height":53},"quad":[119,168,608,191,606,221,117,199]},{"key":"Birth","chn_key":"出生日期","value":"1954-04-13","image_data":"/9j/4AAQSkZJRZ","position":{"left":293,"top":265,"width":149,"height":35},"quad":[294,265,443,270,442,300,293,294]},{"key":"FirstIssueDate","chn_key":"初始领证日期","value":"1989-05-10","image_data":"/9j/4AA=","position":{"left":328,"top":314,"width":154,"height":37},"quad":[328,314,483,321,482,351,328,344]},{"key":"Class","chn_key":"准驾车型","value":"C1","image_data":"/9j/4AAXQw8n3h/Gf8AGrYd8ffbqf4jUOKM+Wx//9k=","position":{"left":350,"top":371,"width":75,"height":27},"quad":[351,371,425,372,425,398,350,397]},{"key":"ValidFrom","chn_key":"起始日期","value":"2015-05-10","image_data":"/9j/4AAQS2Q==","position":{"left":141,"top":404,"width":363,"height":49},"quad":[141,404,506,421,504,453,141,436]},{"key":"ValidTo(For)","chn_key":"有效截止日期/有效年限","value":"2025-05-16","image_data":"/9jimao//2Q==","position":{"left":141,"top":404,"width":363,"height":49},"quad":[141,404,506,421,504,453,141,436]}]},{"pid":71,"type":"驾驶证副页","position":{"left":63,"top":353,"width":728,"height":510},"direct":2,"angle":0,"image_data":"/9j/4AAQSkZJRgABAQAAA/2Q==","FieldList":[{"key":"DeputyID","chn_key":"证号","value":"51012119540413003X","image_data":"/9j/4AAZ","position":{"left":287,"top":91,"width":276,"height":46},"quad":[290,91,564,105,563,137,287,123]},{"key":"DeputyName","chn_key":"姓名","value":"李世春","image_data":"/9j/4AAQSk1Usc5IHGf/wBVY9n91/8Ac/wrQf8A1yf7q/ypWBs0iEz0FFVx0opEn//Z","position":{"left":106,"top":118,"width":178,"height":41},"quad":[108,118,285,127,284,159,106,149]},{"key":"DeputyNo","chn_key":"档案编号","value":"510100065594","image_data":"/9j/4A","position":{"left":440,"top":136,"width":191,"height":44},"quad":[443,136,632,147,631,180,440,169]}]}]}
通用字段说明:
ErrorCode OCR识别状态码
Time 识别时间
ResultList 返回结果数组
type 证件类型
image_data 裁切后的图片base64编码
direct 图片方向
key 英文字段名称
chn_key 中文字段名称
value 对应字段识别结果
position 当前裁切图片或字段在图片上的位置信息
证件特有返回字段说明:
CardNo身份证号码
Name姓名
Sex性别
Address住址
FirstIssueDate初次领证日期
Class准驾车型
ValidFrom有效期限起始日期
ValidToFor有效期限起始日期
Birth出生日期
Nationality国籍
DeputyID证号
DeputyName副页姓名
DeputyNo档案编号
ErrorCode返回码说明:
0成功
16不支持的图像文件(读取图像文件失败)
19识别失败
-1用户已屏蔽。
-2用户key或secret验证错误。
-3服务次数不足。
-4用户未找到。
-5未支持的识别类型。
-6file参数未提供。
-7未提供key或secret参数
-8服务器IO错误.
-49请求超时
-51图片错误,请换张图片再重试.
-52服务器繁忙
其他 请咨询服务商

购买记录

购买用户 订单套餐 金额 购买时间