1. 接口描述
接口请求域名: ocr.tencentcloudapi.com 。
本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。
默认接口请求频率限制:10次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:RecognizeTableOCR。 |
Version | 是 | String | 公共参数,本接口取值:2018-11-19。 |
Region | 是 | String | 公共参数,详见产品支持的 地域列表,本接口仅支持其中的: ap-beijing, ap-guangzhou, ap-hongkong, ap-shanghai 。 |
ImageBase64 | 否 | String | 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 |
ImageUrl | 否 | String | 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:xxx |
IsPdf | 否 | Boolean | 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。 示例值:false |
PdfPageNumber | 否 | Integer | 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。 示例值:0 |
TableLanguage | 否 | String | 语言,zh:中英文(默认)jap:日文 示例值:zh |
3. 输出参数
参数名称 | 类型 | 描述 |
---|---|---|
TableDetections | Array of TableDetectInfo | 检测到的文本信息,具体内容请点击左侧链接。 |
Data | String | Base64 编码后的 Excel 数据。 示例值:8HAABnHAAAFAAAAAAAAAAAAAAAAADMJAAAeGwvc2hhcmVkU3RyaW5ncy54bWxQSwECFAAUAAAACAAAAAAAcxSJldcBAAD9BQAADQAAAAAAAAAAAAAAAACtLAAAeGwvc3R5bGVzLnhtbFBLAQIUABQAAAAIAAAAAAC8TIYcSAYAAP4kAAATAAAAAAAAAAAAAAAAAK8uAAB4bC90aGVtZS90aGVtZTEueG1sUEsBAhQAFAAAAAgAAAAAANG5P9oECwAAUU0AABgAAAAAAAAAAAAAAAAAKDUAAHhsL3dvcmtzaGVldHMvc2hlZXQyLnhtbFBLAQIUABQAAAAIAAAAAADjsY7PqAMAAE8PAAAYAAAAAAAAAAAAAAAAAGJAAAB4bC93b3Jrc2hlZXRzL3NoZWV0MS54bWxQSwUGAAAAAAwADAALAwAAQEQAAAAA |
PdfPageSize | Integer | 图片为PDF时,返回PDF的总页数,默认为0 示例值:0 |
Angle | Float | 图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。 示例值:0 |
RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 表格识别示例代码
表格识别示例代码
输入示例
POST / HTTP/1.1
Host: ocr.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: RecognizeTableOCR
<公共请求参数>
{
"ImageUrl": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/document/TableOCR/TableOCR2.jpg",
"IsPdf": "false"
}
输出示例
{
"Response": {
"TableDetections": [
{
"Titles": null,
"Cells": [
{
"ColTl": 0,
"RowTl": 0,
"ColBr": 9,
"RowBr": 1,
"Text": "五(1) 班卫生值日表",
"Type": "body",
"Confidence": 99.982088804245,
"Contents": [
{
"ParagNo": 0,
"WordSize": 25
}
],
"Polygon": [
{
"X": 26,
"Y": 193
},
{
"X": 774,
"Y": 193
},
{
"X": 774,
"Y": 282
},
{
"X": 26,
"Y": 282
}
],
"AdvancedInfo": ""
},
{
"ColTl": 0,
"RowTl": 1,
"ColBr": 1,
"RowBr": 2,
"Text": "星期一",
"Type": "body",
"Confidence": 99.96871948242188,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 26,
"Y": 282
},
{
"X": 107,
"Y": 282
},
{
"X": 107,
"Y": 326
},
{
"X": 26,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 1,
"RowTl": 1,
"ColBr": 2,
"RowBr": 2,
"Text": "梅亚婷",
"Type": "body",
"Confidence": 99.99997615814209,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 107,
"Y": 282
},
{
"X": 191,
"Y": 282
},
{
"X": 191,
"Y": 326
},
{
"X": 107,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 2,
"RowTl": 1,
"ColBr": 3,
"RowBr": 2,
"Text": "潘林峰",
"Type": "body",
"Confidence": 99.99949336051941,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 191,
"Y": 282
},
{
"X": 275,
"Y": 282
},
{
"X": 275,
"Y": 326
},
{
"X": 191,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 3,
"RowTl": 1,
"ColBr": 4,
"RowBr": 2,
"Text": "余校凯",
"Type": "body",
"Confidence": 99.98820424079895,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 275,
"Y": 282
},
{
"X": 359,
"Y": 282
},
{
"X": 359,
"Y": 326
},
{
"X": 275,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 4,
"RowTl": 1,
"ColBr": 5,
"RowBr": 2,
"Text": "郑江豪",
"Type": "body",
"Confidence": 99.99780654907227,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 359,
"Y": 282
},
{
"X": 442,
"Y": 282
},
{
"X": 442,
"Y": 326
},
{
"X": 359,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 5,
"RowTl": 1,
"ColBr": 6,
"RowBr": 2,
"Text": "范立新",
"Type": "body",
"Confidence": 100,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 442,
"Y": 282
},
{
"X": 526,
"Y": 282
},
{
"X": 526,
"Y": 326
},
{
"X": 442,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 6,
"RowTl": 1,
"ColBr": 7,
"RowBr": 2,
"Text": "柯志生",
"Type": "body",
"Confidence": 99.99997019767761,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 526,
"Y": 282
},
{
"X": 610,
"Y": 282
},
{
"X": 610,
"Y": 326
},
{
"X": 526,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 7,
"RowTl": 1,
"ColBr": 8,
"RowBr": 2,
"Text": "周于",
"Type": "body",
"Confidence": 99.9976396560669,
"Contents": [
{
"ParagNo": 0,
"WordSize": 14
}
],
"Polygon": [
{
"X": 610,
"Y": 282
},
{
"X": 694,
"Y": 282
},
{
"X": 694,
"Y": 326
},
{
"X": 610,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 8,
"RowTl": 1,
"ColBr": 9,
"RowBr": 2,
"Text": "李慧得",
"Type": "body",
"Confidence": 99.99997019767761,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 694,
"Y": 282
},
{
"X": 774,
"Y": 282
},
{
"X": 774,
"Y": 326
},
{
"X": 694,
"Y": 326
}
],
"AdvancedInfo": ""
},
{
"ColTl": 0,
"RowTl": 2,
"ColBr": 1,
"RowBr": 3,
"Text": "星期二",
"Type": "body",
"Confidence": 99.99971389770508,
"Contents": [
{
"ParagNo": 0,
"WordSize": 14
}
],
"Polygon": [
{
"X": 26,
"Y": 326
},
{
"X": 107,
"Y": 326
},
{
"X": 107,
"Y": 373
},
{
"X": 26,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 1,
"RowTl": 2,
"ColBr": 2,
"RowBr": 3,
"Text": "郑江尧",
"Type": "body",
"Confidence": 99.99954104423523,
"Contents": [
{
"ParagNo": 0,
"WordSize": 14
}
],
"Polygon": [
{
"X": 107,
"Y": 326
},
{
"X": 191,
"Y": 326
},
{
"X": 191,
"Y": 373
},
{
"X": 107,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 2,
"RowTl": 2,
"ColBr": 3,
"RowBr": 3,
"Text": "郑锦证",
"Type": "body",
"Confidence": 99.99963641166687,
"Contents": [
{
"ParagNo": 0,
"WordSize": 14
}
],
"Polygon": [
{
"X": 191,
"Y": 326
},
{
"X": 275,
"Y": 326
},
{
"X": 275,
"Y": 373
},
{
"X": 191,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 3,
"RowTl": 2,
"ColBr": 4,
"RowBr": 3,
"Text": "虞志峰",
"Type": "body",
"Confidence": 99.98536109924316,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 275,
"Y": 326
},
{
"X": 359,
"Y": 326
},
{
"X": 359,
"Y": 373
},
{
"X": 275,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 4,
"RowTl": 2,
"ColBr": 5,
"RowBr": 3,
"Text": "虞雨清",
"Type": "body",
"Confidence": 98.66757988929749,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 359,
"Y": 326
},
{
"X": 442,
"Y": 326
},
{
"X": 442,
"Y": 373
},
{
"X": 359,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 5,
"RowTl": 2,
"ColBr": 6,
"RowBr": 3,
"Text": "郑小伟",
"Type": "body",
"Confidence": 100,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 442,
"Y": 326
},
{
"X": 526,
"Y": 326
},
{
"X": 526,
"Y": 373
},
{
"X": 442,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 6,
"RowTl": 2,
"ColBr": 7,
"RowBr": 3,
"Text": "桂堂豪",
"Type": "body",
"Confidence": 99.99939799308777,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 526,
"Y": 326
},
{
"X": 610,
"Y": 326
},
{
"X": 610,
"Y": 373
},
{
"X": 526,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 7,
"RowTl": 2,
"ColBr": 8,
"RowBr": 3,
"Text": "何志勇",
"Type": "body",
"Confidence": 99.99999403953552,
"Contents": [
{
"ParagNo": 0,
"WordSize": 14
}
],
"Polygon": [
{
"X": 610,
"Y": 326
},
{
"X": 694,
"Y": 326
},
{
"X": 694,
"Y": 373
},
{
"X": 610,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 8,
"RowTl": 2,
"ColBr": 9,
"RowBr": 3,
"Text": "张志霞",
"Type": "body",
"Confidence": 99.99999403953552,
"Contents": [
{
"ParagNo": 0,
"WordSize": 14
}
],
"Polygon": [
{
"X": 694,
"Y": 326
},
{
"X": 774,
"Y": 326
},
{
"X": 774,
"Y": 373
},
{
"X": 694,
"Y": 373
}
],
"AdvancedInfo": ""
},
{
"ColTl": 0,
"RowTl": 3,
"ColBr": 1,
"RowBr": 4,
"Text": "星期三",
"Type": "body",
"Confidence": 99.99997019767761,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 26,
"Y": 373
},
{
"X": 107,
"Y": 373
},
{
"X": 107,
"Y": 418
},
{
"X": 26,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 1,
"RowTl": 3,
"ColBr": 2,
"RowBr": 4,
"Text": "桂小敏",
"Type": "body",
"Confidence": 99.99976754188538,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 107,
"Y": 373
},
{
"X": 191,
"Y": 373
},
{
"X": 191,
"Y": 418
},
{
"X": 107,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 2,
"RowTl": 3,
"ColBr": 3,
"RowBr": 4,
"Text": "雷玉婷",
"Type": "body",
"Confidence": 99.99997019767761,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 191,
"Y": 373
},
{
"X": 275,
"Y": 373
},
{
"X": 275,
"Y": 418
},
{
"X": 191,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 3,
"RowTl": 3,
"ColBr": 4,
"RowBr": 4,
"Text": "李洁",
"Type": "body",
"Confidence": 99.9998688697815,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 275,
"Y": 373
},
{
"X": 359,
"Y": 373
},
{
"X": 359,
"Y": 418
},
{
"X": 275,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 4,
"RowTl": 3,
"ColBr": 5,
"RowBr": 4,
"Text": "雷可丽",
"Type": "body",
"Confidence": 99.99987483024597,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 359,
"Y": 373
},
{
"X": 442,
"Y": 373
},
{
"X": 442,
"Y": 418
},
{
"X": 359,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 5,
"RowTl": 3,
"ColBr": 6,
"RowBr": 4,
"Text": "李爱兰",
"Type": "body",
"Confidence": 99.99998211860657,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 442,
"Y": 373
},
{
"X": 526,
"Y": 373
},
{
"X": 526,
"Y": 418
},
{
"X": 442,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 6,
"RowTl": 3,
"ColBr": 7,
"RowBr": 4,
"Text": "桂喻霞",
"Type": "body",
"Confidence": 99.99707341194153,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 526,
"Y": 373
},
{
"X": 610,
"Y": 373
},
{
"X": 610,
"Y": 418
},
{
"X": 526,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 7,
"RowTl": 3,
"ColBr": 8,
"RowBr": 4,
"Text": "郭培润",
"Type": "body",
"Confidence": 99.99442100524902,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 610,
"Y": 373
},
{
"X": 694,
"Y": 373
},
{
"X": 694,
"Y": 418
},
{
"X": 610,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 8,
"RowTl": 3,
"ColBr": 9,
"RowBr": 4,
"Text": "范亚妮",
"Type": "body",
"Confidence": 99.99880194664001,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 694,
"Y": 373
},
{
"X": 774,
"Y": 373
},
{
"X": 774,
"Y": 418
},
{
"X": 694,
"Y": 418
}
],
"AdvancedInfo": ""
},
{
"ColTl": 0,
"RowTl": 4,
"ColBr": 1,
"RowBr": 5,
"Text": "星期四",
"Type": "body",
"Confidence": 99.99974370002747,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 26,
"Y": 418
},
{
"X": 107,
"Y": 418
},
{
"X": 107,
"Y": 464
},
{
"X": 26,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 1,
"RowTl": 4,
"ColBr": 2,
"RowBr": 5,
"Text": "桂宗宙",
"Type": "body",
"Confidence": 99.99898076057434,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 107,
"Y": 418
},
{
"X": 191,
"Y": 418
},
{
"X": 191,
"Y": 464
},
{
"X": 107,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 2,
"RowTl": 4,
"ColBr": 3,
"RowBr": 5,
"Text": "李谓志",
"Type": "body",
"Confidence": 99.9998390674591,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 191,
"Y": 418
},
{
"X": 275,
"Y": 418
},
{
"X": 275,
"Y": 464
},
{
"X": 191,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 3,
"RowTl": 4,
"ColBr": 4,
"RowBr": 5,
"Text": "雷彩霞",
"Type": "body",
"Confidence": 99.99995231628418,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 275,
"Y": 418
},
{
"X": 359,
"Y": 418
},
{
"X": 359,
"Y": 464
},
{
"X": 275,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 4,
"RowTl": 4,
"ColBr": 5,
"RowBr": 5,
"Text": "郑佳勇",
"Type": "body",
"Confidence": 99.99539256095886,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 359,
"Y": 418
},
{
"X": 442,
"Y": 418
},
{
"X": 442,
"Y": 464
},
{
"X": 359,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 5,
"RowTl": 4,
"ColBr": 6,
"RowBr": 5,
"Text": "马佳辉",
"Type": "body",
"Confidence": 99.99973773956299,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 442,
"Y": 418
},
{
"X": 526,
"Y": 418
},
{
"X": 526,
"Y": 464
},
{
"X": 442,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 6,
"RowTl": 4,
"ColBr": 7,
"RowBr": 5,
"Text": "郭培建",
"Type": "body",
"Confidence": 99.99993443489075,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 526,
"Y": 418
},
{
"X": 610,
"Y": 418
},
{
"X": 610,
"Y": 464
},
{
"X": 526,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 7,
"RowTl": 4,
"ColBr": 8,
"RowBr": 5,
"Text": "李智政",
"Type": "body",
"Confidence": 99.99950528144836,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 610,
"Y": 418
},
{
"X": 694,
"Y": 418
},
{
"X": 694,
"Y": 464
},
{
"X": 610,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 8,
"RowTl": 4,
"ColBr": 9,
"RowBr": 5,
"Text": "范成龙",
"Type": "body",
"Confidence": 100,
"Contents": [
{
"ParagNo": 0,
"WordSize": 14
}
],
"Polygon": [
{
"X": 694,
"Y": 418
},
{
"X": 774,
"Y": 418
},
{
"X": 774,
"Y": 464
},
{
"X": 694,
"Y": 464
}
],
"AdvancedInfo": ""
},
{
"ColTl": 0,
"RowTl": 5,
"ColBr": 1,
"RowBr": 6,
"Text": "星期五",
"Type": "body",
"Confidence": 99.99926090240479,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 26,
"Y": 464
},
{
"X": 107,
"Y": 464
},
{
"X": 107,
"Y": 510
},
{
"X": 26,
"Y": 510
}
],
"AdvancedInfo": ""
},
{
"ColTl": 1,
"RowTl": 5,
"ColBr": 2,
"RowBr": 6,
"Text": "朱凯鹏",
"Type": "body",
"Confidence": 99.99980926513672,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 107,
"Y": 464
},
{
"X": 191,
"Y": 464
},
{
"X": 191,
"Y": 510
},
{
"X": 107,
"Y": 510
}
],
"AdvancedInfo": ""
},
{
"ColTl": 2,
"RowTl": 5,
"ColBr": 3,
"RowBr": 6,
"Text": "虞校水",
"Type": "body",
"Confidence": 99.98979568481445,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 191,
"Y": 464
},
{
"X": 275,
"Y": 464
},
{
"X": 275,
"Y": 510
},
{
"X": 191,
"Y": 510
}
],
"AdvancedInfo": ""
},
{
"ColTl": 3,
"RowTl": 5,
"ColBr": 4,
"RowBr": 6,
"Text": "郑雯丽",
"Type": "body",
"Confidence": 99.99974370002747,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 275,
"Y": 464
},
{
"X": 359,
"Y": 464
},
{
"X": 359,
"Y": 510
},
{
"X": 275,
"Y": 510
}
],
"AdvancedInfo": ""
},
{
"ColTl": 4,
"RowTl": 5,
"ColBr": 5,
"RowBr": 6,
"Text": "郑琳",
"Type": "body",
"Confidence": 100,
"Contents": [
{
"ParagNo": 0,
"WordSize": 14
}
],
"Polygon": [
{
"X": 359,
"Y": 464
},
{
"X": 442,
"Y": 464
},
{
"X": 442,
"Y": 510
},
{
"X": 359,
"Y": 510
}
],
"AdvancedInfo": ""
},
{
"ColTl": 5,
"RowTl": 5,
"ColBr": 6,
"RowBr": 6,
"Text": "范越",
"Type": "body",
"Confidence": 99.99940991401672,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 442,
"Y": 464
},
{
"X": 526,
"Y": 464
},
{
"X": 526,
"Y": 510
},
{
"X": 442,
"Y": 510
}
],
"AdvancedInfo": ""
},
{
"ColTl": 6,
"RowTl": 5,
"ColBr": 7,
"RowBr": 6,
"Text": "张鑫涛",
"Type": "body",
"Confidence": 99.99998211860657,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 526,
"Y": 464
},
{
"X": 610,
"Y": 464
},
{
"X": 610,
"Y": 510
},
{
"X": 526,
"Y": 510
}
],
"AdvancedInfo": ""
},
{
"ColTl": 7,
"RowTl": 5,
"ColBr": 8,
"RowBr": 6,
"Text": "雷万林",
"Type": "body",
"Confidence": 99.99470114707947,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 610,
"Y": 464
},
{
"X": 694,
"Y": 464
},
{
"X": 694,
"Y": 511
},
{
"X": 610,
"Y": 510
}
],
"AdvancedInfo": ""
},
{
"ColTl": 8,
"RowTl": 5,
"ColBr": 9,
"RowBr": 6,
"Text": "雷建国",
"Type": "body",
"Confidence": 100,
"Contents": [
{
"ParagNo": 0,
"WordSize": 15
}
],
"Polygon": [
{
"X": 694,
"Y": 464
},
{
"X": 774,
"Y": 464
},
{
"X": 774,
"Y": 510
},
{
"X": 694,
"Y": 511
}
],
"AdvancedInfo": ""
},
{
"ColTl": 0,
"RowTl": 6,
"ColBr": 9,
"RowBr": 7,
"Text": "备注:李林涛、梅美雪、江瑶洁、郑佳杰、李建华负责黑板及窗台等区域卫生。",
"Type": "body",
"Confidence": 99.58259463310242,
"Contents": [
{
"ParagNo": 0,
"WordSize": 17
}
],
"Polygon": [
{
"X": 26,
"Y": 510
},
{
"X": 774,
"Y": 510
},
{
"X": 774,
"Y": 557
},
{
"X": 26,
"Y": 557
}
],
"AdvancedInfo": ""
},
{
"ColTl": 0,
"RowTl": 7,
"ColBr": 9,
"RowBr": 8,
"Text": "我们在一起一直在努力!",
"Type": "body",
"Confidence": 98.30002188682556,
"Contents": [
{
"ParagNo": 0,
"WordSize": 22
}
],
"Polygon": [
{
"X": 26,
"Y": 557
},
{
"X": 774,
"Y": 557
},
{
"X": 774,
"Y": 604
},
{
"X": 26,
"Y": 604
}
],
"AdvancedInfo": ""
}
],
"Type": 1,
"TableCoordPoint": [
{
"X": 26,
"Y": 193
},
{
"X": 774,
"Y": 193
},
{
"X": 774,
"Y": 604
},
{
"X": 26,
"Y": 604
}
]
}
],
"PdfPageSize": 0,
"Data": "UEsDBBQAAAAIAAAAAADO8yasOQEAAKsEAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbK2Uy27CMBBF93xFlG1FTLvoogI2bbctUvsDrj1JXPySZ6Dw952ERwUqBBQ2saLxveeOPfL4cx0Bs5WzHid5TRSfhEBVg5NYhAieK2VIThL/pkpEqeayAvEwGj0KFTyBpyE1Hvl0kGXjFyjlwlL2uuIKmuAn+XeEKs+eN3sb3CQ3rvFoC+KUjMFHKhmjNUoSl0VTPSlNYPGMdun1UWvDbVsFK9s9WJuId3+Q9yWkZDRkM5noTTp2FCsrsJYJ9Acl4ysszif+hxrK0ijQQS0cSwqMCaTGGoCcLQ68L4hCaws3z9CadsOJ5wU23/veE==",
"Angle": 0,
"RequestId": "aab831e6-7ae6-49bd-b599-af3e39052364"
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: GitHub Gitee
- Tencent Cloud SDK 3.0 for Java: GitHub Gitee
- Tencent Cloud SDK 3.0 for PHP: GitHub Gitee
- Tencent Cloud SDK 3.0 for Go: GitHub Gitee
- Tencent Cloud SDK 3.0 for Node.js: GitHub Gitee
- Tencent Cloud SDK 3.0 for .NET: GitHub Gitee
- Tencent Cloud SDK 3.0 for C++: GitHub Gitee
- Tencent Cloud SDK 3.0 for Ruby: GitHub Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
错误码 | 描述 |
---|---|
FailedOperation.DownLoadError | 文件下载失败。 |
FailedOperation.EmptyImageError | 图片内容为空。 |
FailedOperation.ImageDecodeFailed | 图片解码失败。 |
FailedOperation.ImageSizeTooLarge | 图片尺寸过大,请参考输入参数中关于图片大小限制的说明。 |
FailedOperation.OcrFailed | OCR识别失败。 |
FailedOperation.UnKnowError | 未知错误。 |
FailedOperation.UnOpenError | 服务未开通。 |
InvalidParameterValue.InvalidParameterValueLimit | 参数值错误。 |
LimitExceeded.TooLargeFileError | 文件内容太大。 |
ResourceUnavailable.InArrears | 账号已欠费。 |
ResourceUnavailable.ResourcePackageRunOut | 账号资源包耗尽。 |
ResourcesSoldOut.ChargeStatusException | 计费状态异常。 |