智能结构化OCR识别

  • 接口地址:https://api.itink.com.cn/api/cdp-rest/recognizeIntelligentStructured.json
  • 返回格式:json
  • 请求方式:POST
  • 请求示例:https://api.itink.com.cn/api/cdp-rest/recognizeBankCardOCR.json?key=key值&imageId=图片ID
  • 接口描述:智能结构化OCR识别

  • 请求参数说明

名称 是否必填 数据类型 说明
token string 访问凭据;由数据开放平台提供
file string 图片(支持jpg, jpeg, png,"gif, bmp格式)
  • 返回参数说明
名称 数据类型 说明
code string 返回值:1: 成功,-1:失败
msg string 接口请求后的返回的中文描述
data Map
Angle string 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
StructuralList string 配置结构化文本信息
Groups string 每一行的元素
Lines string 每行的一个元素
Key string key信息组
AutoName string 自动识别的字段名称
Value string Value信息组
AutoContent string 自动识别的字段内容
Coord string 四点坐标
LeftBottom string 左下顶点坐标
LeftTop string 左上顶点坐标
RightBottom string 右下顶点坐标
RightTop string 右上顶点坐标
WordList string 还原文本信息
X string 横坐标
Y string 纵坐标
  • 返回内容示例
    正常返回示例:
    {
      "data" : {
        "Angle": 90.442055,
        "StructuralList": [
        {
            "Groups": [
            {
                "Lines": [
                {
                    "Value": {
                        "Coord": {
                            "LeftTop": {
                                "X": 681,
                                "Y": 290
                            },
                            "RightTop": {
                                "X": 681,
                                "Y": 671
                            },
                            "LeftBottom": {
                                "X": 639,
                                "Y": 290
                            },
                            "RightBottom": {
                                "X": 639,
                                "Y": 671
                            }
                        },
                        "AutoContent": "中华人民共和国道路运输证"
                    },
                    "Key": {
                        "AutoName": "标题"
                    }
                }
                ]
            }
            ]
        },
        "WordList": []
      },
      "code" : 1,
      "msg" : "查询成功",
      "source" : "FOTON"
    }