OCR

taskId

5caeac72582e35c560667d21

taskId参数
参数名称 类型 是否必需 说明
fileList Array 每张图片的识别结果
fileList参数
参数名称 类型 是否必需 说明
name String 如果上传的image参数是url,则该值是图片url;如果是以图片文件上传,则该值为文件名
objects Array 检测出来的所有物体
objects参数
参数名称 类型 是否必需 说明
location Array 物体方框坐标以图片左上角为原点,分别是[左上角坐标,右上角坐标,右下角坐标,左下角坐标], 坐标值是相对于图片大小的百分比形式
degree Number 文字的旋转角度,取值范围是[-180, 180],正表示顺时针,负表示逆时针
text String 识别到的文本信息
category Number 检测到的物体类别,0表示文字
scores Number 检测得分,得分越高结果越准确,取值范围[0,1]
json示例

OCR识别的返回结果示例

{
  "5caeac72582e35c560667d21": {
    "fileList": [
      {
        "name": "test.jpg",
        "objects": [
          {
            "degree": 0,
            "location": [
              [
                0.022727264404296874,
                0.1666666644725926
              ],
              [
                0.15909091186523439,
                0.1666666644725926
              ],
              [
                0.15909091186523439,
                0.3333333355274074
              ],
              [
                0.022727264404296874,
                0.3333333355274074
              ]
            ],
            "scores": 0.9978030323982239,
            "text": "微信号",
            "category": 0
          },
          {
            "degree": 0,
            "location": [
              [
                0.6306818542480469,
                0.6041666208376343
              ],
              [
                0.9147727355957032,
                0.6041666208376343
              ],
              [
                0.9147727355957032,
                0.7500001056674208
              ],
              [
                0.6306818542480469,
                0.7500001056674208
              ]
            ],
            "scores": 0.9997721206058156,
            "text": "15827934231",
            "category": 0
          },
          {
            "degree": -1.457413492101156,
            "location": [
              [
                0.6359872589111328,
                0.1807315155947982
              ],
              [
                0.9660818328857422,
                0.1807315155947982
              ],
              [
                0.9660818328857422,
                0.34521910696379554
              ],
              [
                0.6359872589111328,
                0.34521910696379554
              ]
            ],
            "scores": 0.9996555997775152,
            "text": "15827934231",
            "category": 0
          }
        ]
      }
    ]
  },
  "code": 0,
  "message": "success",
  "nonce": "0.3014124736010655",
  "timestamp": 1506812492943
}

results matching ""

    No results matching ""