结婚证OCR识别
  • 支持对结婚证的关键字段识别
  • 支持扫描仪扫描、手机拍照的图像

  API 文档     立即购买

在线体验

本地上传

产品概述

API

接口说明

接口地址: www.etoplive.com/ocr/server.srvc
接口调用方法:Post
接口调用参数:
序号名称类型必填说明
1fileString上传的文件(图片的base64流)
2keyString用户ocrKey
3secretString 用户ocrSecret
4pidInteger识别类型(结婚证OCR识别 固定值:12)
返回数据:
返回数据类型: JSON
返回数据示例: [{"pid":36,"direct":1,"angle":0,"FieldList":[{"key":"CZR","chn_key":"持证人","value":"罗金艳","image_data":"","position":{"left":179,"top":95,"width":57,"height":23}},{"key":"DJRQ","chn_key":"登记日期","value":"2008年9月12日","image_data":"","position":{"left":179,"top":164,"width":109,"height":19}},{"key":"JHZZH","chn_key":"结婚证字号","value":"鄂伍结字020801044","image_data":"","position":{"left":179,"top":226,"width":142,"height":21}},{"key":"XM1","chn_key":"姓名1","value":"罗金艳","image_data":"","position":{"left":176,"top":391,"width":53,"height":19}},{"key":"GJ1","chn_key":"国籍1","value":"罗金艳","image_data":"","position":{"left":176,"top":391,"width":53,"height":19}},{"key":"SFZJH1","chn_key":"身份证件号1","value":"420503198003152343","image_data":"","position":{"left":171,"top":443,"width":154,"height":23}},{"key":"XM2","chn_key":"姓名2","value":"孙俊","image_data":"","position":{"left":167,"top":494,"width":42,"height":19}},{"key":"GJ2","chn_key":"国籍2","value":"中国","image_data":"","position":{"left":167,"top":520,"width":38,"height":19}},{"key":"SFZJH2","chn_key":"身份证件号2","value":"420821197907191016","image_data":"","position":{"left":163,"top":548,"width":162,"height":26}},{"key":"XB1","chn_key":"性别1","value":"女","image_data":"","position":{"left":388,"top":397,"width":24,"height":18}},{"key":"XB2","chn_key":"性别2","value":"","image_data":"","position":{"left":337,"top":492,"width":58,"height":45}},{"key":"BZ","chn_key":"备注","value":"各注","image_data":"","position":{"left":75,"top":277,"width":38,"height":17}}]}]
通用字段说明:
ErrorCode OCR识别状态码
Time 识别时间
ResultList 返回结果数组
type 证件类型
image_data 裁切后的图片base64编码
direct 图片方向
key 英文字段名称
chn_key 中文字段名称
value 对应字段识别结果
position 当前裁切图片或字段在图片上的位置信息
证件特有返回字段说明:
CZR 持证人
DJRQ登记日期
JHZZH结婚证字号
XM1姓名1
XB1性别1
GJ1国籍1
SFZJH1身份证件号1
XM2姓名2
XB2性别2
GJ2国籍2
SFZJH2身份证件号2
ErrorCode返回码说明:
0成功
16不支持的图像文件(读取图像文件失败)
19识别失败
-1用户已屏蔽。
-2用户key或secret验证错误。
-3服务次数不足。
-4用户未找到。
-5未支持的识别类型。
-6file参数未提供。
-7未提供key或secret参数
-8服务器IO错误.
-49请求超时
-51图片错误,请换张图片再重试.
-52服务器繁忙
其他 请咨询服务商

购买记录

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