身份证OCR识别
  • 自动判断身份证正面、反面并同时识别
  • 支持任意方向的图像自动识别
  • 识别率速度<200ms,识别率>99%

  API 文档     立即购买

在线体验

本地上传

产品概述

   * 导入身份证图像即可精准识别身份证上的所有信息
   * 识别准确率高达99%以上
   * 自动判断身份证正、反面
   * 支持任意方向的图像识别

API

接口说明

接口地址: www.etoplive.com/ocr/server.srvc
接口调用方法:Post
接口调用参数:
序号名称类型必填说明
1fileString上传的文件(图片的base64流)
2keyString用户ocrKey
3secretString 用户ocrSecret
4pidInteger识别类型(身份证OCR识别 固定值:2)
返回数据:
返回数据类型: JSON
返回数据示例: {"json":{"ErrorCode":0,"Time":"907","ResultList":[{"pid":2,"type":"身份证人像页","position":{"left":17,"top":66,"width":601,"height":378},"direct":0,"angle":0,"image_data":"q6AeiyxqYzx05FFFFCIZ//Z","ocr_error_code":0,"FieldList":[{"key":"IDNum","chn_key":"身份证号码","value":"210106198808075515","image_data":"Q==","position":{"left":216,"top":302,"width":322,"height":34},"quad":[219,308,535,305,535,329,220,333]},{"key":"Nation","chn_key":"民族","value":"汉","image_data":"//Z","position":{"left":189,"top":99,"width":86,"height":27},"quad":[192,102,272,102,272,123,192,123]},{"key":"Name","chn_key":"姓名","value":"赵旻昊","image_data":"Gf//Z","position":{"left":127,"top":45,"width":88,"height":33},"quad":[131,48,212,49,211,75,130,73]},{"key":"Address","chn_key":"地址","value":"北京市西城区西交民巷17号","image_data":"/9j/4AAQSk7daBH/9k=","position":{"left":128,"top":190,"width":255,"height":61},"quad":[131,194,380,193,380,247,131,248]},{"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":"Birth","chn_key":"出生","value":"19880807","image_data":"","position":{"left":0,"top":0,"width":0,"height":0},"quad":[0,0,0,0,0,0,0,0]}]}]},"ErrorCode":"0","totalMs":"907","en":{"ErrorCode":"0","IDNum":"210106198808075515","Nation":"汉","Name":"赵旻昊","Address":"北京市西城区西交民巷17号","Sex":"男","Birth":"19880807"},"msg":"识别成功"}
通用字段说明:
ErrorCode OCR识别状态码
Time 识别时间
ResultList 返回结果数组
type 证件类型
image_data 裁切后的图片base64编码
direct 图片方向
key 英文字段名称
chn_key 中文字段名称
value 对应字段识别结果
position 当前裁切图片或字段在图片上的位置信息
证件特有返回字段说明:
Name姓名
Sex性别
Nation民族
Birth出生日期
Address地址
IDNum身份证号
IssueAuthority签发机关
ExpiryDate有限期限
ErrorCode返回码说明:
0成功
16不支持的图像文件(读取图像文件失败)
19识别失败
-1用户已屏蔽。
-2用户key或secret验证错误。
-3服务次数不足。
-4用户未找到。
-5未支持的识别类型。
-6file参数未提供。
-7未提供key或secret参数
-8服务器IO错误.
-49请求超时
-51图片错误,请换张图片再重试.
-52服务器繁忙
其他 请咨询服务商

购买记录

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