一、图片为base64流 |
接口地址: |
http://netocr.com/api/recogliu.do或https://netocr.com/api/recogliu.do |
接口调用方法: |
post |
接口接收参数: |
序号 | 名称 | 类型 | 必填 | 说明 |
1 |
img |
String |
是 |
上传的文件(图片的base64流) |
2 |
key |
String |
是 |
用户ocrKey |
3 |
secret |
String |
是 |
用户ocrSecret |
4 |
typeId |
Integer |
是 |
识别类型:17 |
5 |
format |
String |
是 |
返回格式(xml或者json),如果format为空,则默认返回xml |
二、图片为file格式 |
接口地址: |
http://netocr.com/api/recog.do 或 https://netocr.com/api/recog.do |
接口调用方法: |
post |
接口接收参数: |
序号 | 名称 | 类型 | 必填 | 说明 |
1 |
file |
MultipartFile |
是 |
上传的文件(上传文件的字段名必须是“file”) |
2 |
key |
String |
是 |
用户ocrKey |
3 |
secret |
String |
是 |
用户ocrSecret |
4 |
typeId |
Integer |
是 |
识别类型:17 |
5 |
format |
String |
是 |
返回格式(xml或者json),如果format为空,则默认返回xml |
查看详细API介绍 |
开发示例下载 |