户口本个人页OCR识别
  • 可对户口本个人页上的关键字段进行识别 支持任意方向的图像自动识别

  API 文档     立即购买

在线体验

本地上传

产品概述

API

接口说明

接口地址: www.etoplive.com/ocr/server.srvc
接口调用方法:Post
接口调用参数:
序号名称类型必填说明
1fileString上传的文件(图片的base64流)
2keyString用户ocrKey
3secretString 用户ocrSecret
4pidInteger识别类型(户口本个人页OCR识别 固定值:1003)
返回数据:
返回数据类型: JSON
返回数据示例: {"ErrorCode":0,"Time":"1985","ResultList":[{"pid":36,"direct":1,"angle":-0.003217,"FieldList":[{"key":"XM","chn_key":"姓名","value":"张维圆","image_data":"","position":{"left":256,"top":851,"width":102,"height":34}},{"key":"HZGX","chn_key":"户主关系","value":"户主","image_data":"","position":{"left":661,"top":862,"width":98,"height":37}},{"key":"CYM","chn_key":"曾用名","value":"张雪健","image_data":"","position":{"left":250,"top":912,"width":89,"height":32}},{"key":"XB","chn_key":"性别","value":"男","image_data":"","position":{"left":701,"top":911,"width":31,"height":33}},{"key":"CSDZ","chn_key":"出生地","value":"吉林省伊通满族自治县","image_data":"","position":{"left":245,"top":960,"width":241,"height":30}},{"key":"MZ","chn_key":"民族","value":"汉族","image_data":"","position":{"left":701,"top":963,"width":61,"height":32}},{"key":"JG","chn_key":"籍贯","value":"吉林省伊通满族自治县","image_data":"","position":{"left":245,"top":1013,"width":241,"height":28}},{"key":"CSRQ","chn_key":"出生日期","value":"19791111","image_data":"","position":{"left":696,"top":1012,"width":196,"height":29}},{"key":"SFZBH","chn_key":"身份证编号","value":"220323197911110811","image_data":"","position":{"left":244,"top":1120,"width":257,"height":25}},{"key":"WHCD","chn_key":"文化程度","value":"小学","image_data":"","position":{"left":250,"top":1177,"width":57,"height":31}},{"key":"HYZK","chn_key":"婚姻状况","value":"已婚","image_data":"","position":{"left":530,"top":1160,"width":93,"height":53}},{"key":"FYZK","chn_key":"服役状况","value":"未服兵役","image_data":"","position":{"left":742,"top":1173,"width":107,"height":31}},{"key":"BSXQTZZ","chn_key":"本市县其他住址","value":"","image_data":"","position":{"left":238,"top":1058,"width":384,"height":51}},{"key":"ZJXY","chn_key":"宗教信仰","value":"无宗教信仰","image_data":"","position":{"left":735,"top":1056,"width":181,"height":49}},{"key":"SG","chn_key":"身高","value":"176","image_data":"","position":{"left":622,"top":1110,"width":112,"height":48}},{"key":"XX","chn_key":"血型","value":"不明","image_data":"","position":{"left":814,"top":1118,"width":51,"height":31}},{"key":"FWCS","chn_key":"服务处所","value":"营成子镇东街二委","image_data":"","position":{"left":236,"top":1213,"width":385,"height":53}},{"key":"ZY","chn_key":"职业","value":"","image_data":"","position":{"left":736,"top":1213,"width":183,"height":51}},{"key":"HSHDQLBS","chn_key":"何时何地迁来本市","value":"久居","image_data":"","position":{"left":286,"top":1265,"width":651,"height":51}},{"key":"HSHDQLBZ","chn_key":"何时何地迁来本址","value":"295年04月22日因购房由吉林省伊通满族自治县营城子派出","image_data":"","position":{"left":265,"top":1323,"width":641,"height":33}}]}]}
通用字段说明:
ErrorCode OCR识别状态码
Time 识别时间
ResultList 返回结果数组
type 证件类型
image_data 裁切后的图片base64编码
direct 图片方向
key 英文字段名称
chn_key 中文字段名称
value 对应字段识别结果
position 当前裁切图片或字段在图片上的位置信息
证件特有返回字段说明:
XM姓名
HZGX户主关系
CYM曾用名
XB性别
CSDZ出生地址
MZ民族
JG籍贯
CSRQ出生日期
SFZBH身份证编号
WHCD文化程度
HYZK婚姻状况
HSYHDQLBS何时由何地迁来本市
FYZK兵役状况
ZJXY宗教信仰
SG身高
XX血型
ZY职业
FWCS服务处所
BSXQTZZ本市县其他住址
ErrorCode返回码说明:
0成功
16不支持的图像文件(读取图像文件失败)
19识别失败
-1用户已屏蔽。
-2用户key或secret验证错误。
-3服务次数不足。
-4用户未找到。
-5未支持的识别类型。
-6file参数未提供。
-7未提供key或secret参数
-8服务器IO错误.
-49请求超时
-51图片错误,请换张图片再重试.
-52服务器繁忙
其他 请咨询服务商

购买记录

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