1、接口说明
(注:调用图片为base64流接口时传参数img,调用图片为file格式接口传参数file)
2、请求参数
序号 |
名称 |
类型 |
必填 |
说明 |
1 |
img |
String |
是 |
上传的文件(图片的base64流) |
2 |
file |
MultipartFile |
是 |
上传的文件(上传文件的字段名必须是“file”) |
3 |
key |
String |
是 |
用户ocrKey |
4 |
secret |
String |
是 |
用户ocrSecrert |
5 |
typeId |
Integer |
是 |
识别类型:2008 |
6 |
outvalue |
String |
是 |
输出选项(0为全部返回) |
3、结果示例
{
"message": {
"status": 0,
"value": "识别完成"
},
"cardsinfo": [
{
"type": "2008",
"items": [
{"nID": null, "index": null, "desc": "统一社会信用代码", "content": ""},
{"nID": null, "index": null, "desc": "组织机构代码", "content": ""},
{"nID": null, "index": null, "desc": "税务登记证号", "content": ""},
{"nID": null, "index": null, "desc": "社保登记号", "content": ""},
{"nID": null, "index": null, "desc": "统计证证号", "content": ""},
{"nID": null, "index": null, "desc": "名称", "content": ""},
{"nID": null, "index": null, "desc": "类型", "content": ""},
{"nID": null, "index": null, "desc": "住所/经营场所/营业场所", "content": ""},
{"nID": null, "index": null, "desc": "法定代表人/执行事务合伙人/投资人/经营者/负责人", "content": ""},
{"nID": null, "index": null, "desc": "注册资本/成员出资总额/组成形式", "content": ""},
{"nID": null, "index": null, "desc": "成立日期/注册日期", "content": ""},
{"nID": null, "index": null, "desc": "营业期限/经营期限/合伙期限", "content": ""},
{"nID": null, "index": null, "desc": "经营范围/业务范围", "content": ""},
{"nID": null, "index": null, "desc": "登记机关", "content": ""},
{"nID": null, "index": null, "desc": "登记日期", "content": ""},
{"nID": null, "index": null, "desc": "二维码", "content": ""},
{"nID": null, "index": null, "desc": "副本", "content": ""}
]
}
]
}