1、通用表格识别 - 接口说明

接口说明(非必传项功能开启后,返回结果的速度会相应的变慢)

接口地址
图片为base64流 https://netocr.com/api/recog_table_base64
图片为file格式 https://netocr.com/recog_table_file
接口调用方法 post

(注:调用图片为base64流接口时传参数img,调用图片为file格式接口传参数file)

2、接口接收参数

序号 名称 类型 必填 说明
1 img String 上传的文件(图片的base64流)
2 file Multipart 上传的文件(上传文件的字段名必须是“file”)
3 key String 用户ocrKey
4 secret String 用户ocrSecrert
5 typeId Integer 识别类型:3050
6 format String 固定值:json
7 nLanguage Integer 识别语言:2 英文、3 中文(默认)
8 filterColor Integer 滤色:0 关闭、1 弱滤红(默认)、2 强滤红、3 弱滤蓝、4 强滤蓝
9 backgroundFilter Integer 背景色过滤:0 关闭(默认)、1 开启
10 autoRotation Integer 0 - 不开启自动旋转、1 – 开启自动旋转
11 inclineCorrect Integer 0 - 不开启倾斜矫正、1 – 开启倾斜校正

3、结果示例

{
    "message": {
        "status": 0,
        "value": "识别完成"
    },
    "info": {
        "result": [
            {
                "path": "",
                "table": "",
                "ocr": {}
            }
        ],
        "num": "1-1",
        "consumeId": "1747805597028327",
        "typeId": 3060
    }
}

results matching ""

    No results matching ""