港澳台居民来往大陆通行证
  • 可对港澳台居民来往大陆通行证上的全部字段进行识别 支持任意方向的图像自动识别

  API 文档     立即购买

在线体验

本地上传

产品概述

API

接口说明

接口地址: www.etoplive.com/ocr/server.srvc
接口调用方法:Post
接口调用参数:
序号名称类型必填说明
1fileString上传的文件(图片的base64流)
2keyString用户ocrKey
3secretString 用户ocrSecret
4pidInteger识别类型(港澳台居民来往大陆通行证 固定值:1018)
返回数据:
返回数据类型: JSON
返回数据示例: {"ErrorCode":0,"Time":"1390","ResultList":[{"pid":36,"direct":1,"angle":0.003156,"FieldList":[{"key":"Name","chn_key":"中文名","value":"廖文杉","image_data":"","position":{"left":386,"top":183,"width":172,"height":51}},{"key":"EName","chn_key":"英文名","value":"LIA0.WEN-SAN","image_data":"","position":{"left":374,"top":254,"width":371,"height":45}},{"key":"Birth","chn_key":"出生日期","value":"1946.02.15","image_data":"","position":{"left":378,"top":355,"width":240,"height":43}},{"key":"Sex","chn_key":"性别","value":"男","image_data":"","position":{"left":864,"top":352,"width":46,"height":56}},{"key":"ValidPeroid","chn_key":"有效期限","value":"2015.07.06~2020.07.05","image_data":"","position":{"left":373,"top":456,"width":534,"height":50}},{"key":"Authority","chn_key":"签发机关","value":"公安部出入境管理后","image_data":"","position":{"left":377,"top":569,"width":428,"height":51}},{"key":"IDNo","chn_key":"证件号码","value":"10001398","image_data":"","position":{"left":377,"top":669,"width":303,"height":55}},{"key":"IssuePlace","chn_key":"签发地点","value":"广东","image_data":"","position":{"left":865,"top":569,"width":92,"height":49}},{"key":"Times","chn_key":"签发次数","value":"01","image_data":"","position":{"left":874,"top":674,"width":63,"height":45}}]}]}
通用字段说明:
ErrorCode OCR识别状态码
Time 识别时间
ResultList 返回结果数组
type 证件类型
image_data 裁切后的图片base64编码
direct 图片方向
key 英文字段名称
chn_key 中文字段名称
value 对应字段识别结果
position 当前裁切图片或字段在图片上的位置信息
证件特有返回字段说明:
Name姓名
EName英文姓名
Birth出生年月
Sex性别
ValidPeroid有效期限
Authority公安机关
IDNo证件号码
IssuePlace签发地点
Times签发次数
ErrorCode返回码说明:
0成功
16不支持的图像文件(读取图像文件失败)
19识别失败
-1用户已屏蔽。
-2用户key或secret验证错误。
-3服务次数不足。
-4用户未找到。
-5未支持的识别类型。
-6file参数未提供。
-7未提供key或secret参数
-8服务器IO错误.
-49请求超时
-51图片错误,请换张图片再重试.
-52服务器繁忙
其他 请咨询服务商

购买记录

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