临时身份证OCR识别
  • 可对临时身份证上的关键字段进行识别 支持任意方向的图像自动识别

  API 文档     立即购买

在线体验

本地上传

产品概述

API

接口说明

接口地址: www.etoplive.com/ocr/server.srvc
接口调用方法:Post
接口调用参数:
序号名称类型必填说明
1fileString上传的文件(图片的base64流)
2keyString用户ocrKey
3secretString 用户ocrSecret
4pidInteger识别类型(临时身份证OCR识别 固定值:1020)
返回数据:
返回数据类型: JSON
返回数据示例: {"ErrorCode":0,"Time":"1312","ResultList":[{"pid":36,"direct":1,"angle":0.001524,"FieldList":[{"key":"Name","chn_key":"姓名","value":"张才","image_data":"","position":{"left":80,"top":26,"width":68,"height":26}},{"key":"Sex","chn_key":"性别","value":"男","image_data":"","position":{"left":104,"top":77,"width":20,"height":23}},{"key":"Nation","chn_key":"民族","value":"瑶","image_data":"","position":{"left":219,"top":75,"width":37,"height":24}},{"key":"Address","chn_key":"住址","value":"广东省东莞市莞城区运河西路15号之二","image_data":"","position":{"left":100,"top":164,"width":276,"height":55}},{"key":"Valid","chn_key":"有效期限","value":"2016.01.15-2016.04.15","image_data":"","position":{"left":125,"top":279,"width":251,"height":23}},{"key":"Authority","chn_key":"签发机关","value":"东莞市公安局","image_data":"","position":{"left":122,"top":320,"width":150,"height":23}},{"key":"IDNo","chn_key":"公民身份号码","value":"45088119820817861X","image_data":"","position":{"left":188,"top":363,"width":304,"height":28}},{"key":"HeadImage","chn_key":"头像","value":"/9j/4AAAAF9AQIDAAQRBRIhMUEGE1","image_data":"","position":{"left":419,"top":33,"width":222,"height":276}}]}]}
通用字段说明:
ErrorCode OCR识别状态码
Time 识别时间
ResultList 返回结果数组
type 证件类型
image_data 裁切后的图片base64编码
direct 图片方向
key 英文字段名称
chn_key 中文字段名称
value 对应字段识别结果
position 当前裁切图片或字段在图片上的位置信息
证件特有返回字段说明:
Name姓名
Sex性别
Nation民族
Address住址
Valid有效期限
Authority签发机关
IDNo公民身份证号码
ErrorCode返回码说明:
0成功
16不支持的图像文件(读取图像文件失败)
19识别失败
-1用户已屏蔽。
-2用户key或secret验证错误。
-3服务次数不足。
-4用户未找到。
-5未支持的识别类型。
-6file参数未提供。
-7未提供key或secret参数
-8服务器IO错误.
-49请求超时
-51图片错误,请换张图片再重试.
-52服务器繁忙
其他 请咨询服务商

购买记录

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