tencentcloud-sdk-nodejs-ocr 4.0.541 → 4.0.543
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +299 -0
- package/SERVICE_CHANGELOG.md +321 -166
- package/package.json +1 -1
- package/products.md +30 -30
- package/src/services/ocr/v20181119/ocr_client.ts +67 -25
- package/src/services/ocr/v20181119/ocr_models.ts +287 -72
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +26 -11
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +33 -12
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +253 -69
@@ -227,6 +227,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
227
227
|
async RecognizeContainerOCR(req, cb) {
|
228
228
|
return this.request("RecognizeContainerOCR", req, cb);
|
229
229
|
}
|
230
|
+
/**
|
231
|
+
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
232
|
+
|
233
|
+
默认接口请求频率限制:2次/秒。
|
234
|
+
*/
|
235
|
+
async RecognizeTableAccurateOCR(req, cb) {
|
236
|
+
return this.request("RecognizeTableAccurateOCR", req, cb);
|
237
|
+
}
|
230
238
|
/**
|
231
239
|
* 本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
|
232
240
|
*/
|
@@ -324,11 +332,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
324
332
|
return this.request("InvoiceGeneralOCR", req, cb);
|
325
333
|
}
|
326
334
|
/**
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
return this.request("RecognizeMedicalInvoiceOCR", req, cb);
|
335
|
+
* 支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超连接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
336
|
+
*/
|
337
|
+
async GetTaskState(req, cb) {
|
338
|
+
return this.request("GetTaskState", req, cb);
|
332
339
|
}
|
333
340
|
/**
|
334
341
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
@@ -351,14 +358,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
351
358
|
return this.request("RecognizeTableOCR", req, cb);
|
352
359
|
}
|
353
360
|
/**
|
354
|
-
*
|
355
|
-
|
356
|
-
您可以输入营业执照注册号或营业执照图片(若两者都输入则只用注册号做查询),接口返回查询到的工商照面信息,并比对要校验的字段与查询结果的一致性。
|
361
|
+
* 本接口可创建智能表单录入任务,支持多个识别图片和PDF的URL上传,返回含有识别内容的操作页面URL。
|
357
362
|
|
358
|
-
|
363
|
+
智能表单录入产品提供高准确率的表单识别技术和人工核对工具,支持自定义字段,将识别结果自动填入到自定义条目中,并提供人工操作工具,完成整个表单识别过程。适用性强,可对票据、合同、货单等文件的识别,适用于金融、货代、保险、档案等领域。本产品免费公测中,您可以点击demo(超连接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
359
364
|
*/
|
360
|
-
async
|
361
|
-
return this.request("
|
365
|
+
async CreateAIFormTask(req, cb) {
|
366
|
+
return this.request("CreateAIFormTask", req, cb);
|
362
367
|
}
|
363
368
|
/**
|
364
369
|
* 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
|
@@ -470,6 +475,13 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
470
475
|
async BusInvoiceOCR(req, cb) {
|
471
476
|
return this.request("BusInvoiceOCR", req, cb);
|
472
477
|
}
|
478
|
+
/**
|
479
|
+
* 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
|
480
|
+
|
481
|
+
*/
|
482
|
+
async RecognizeMedicalInvoiceOCR(req, cb) {
|
483
|
+
return this.request("RecognizeMedicalInvoiceOCR", req, cb);
|
484
|
+
}
|
473
485
|
/**
|
474
486
|
* 本接口支持增值税专用发票、增值税普通发票、增值税电子发票全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段。
|
475
487
|
|
@@ -724,6 +736,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
724
736
|
async PassportOCR(req, cb) {
|
725
737
|
return this.request("PassportOCR", req, cb);
|
726
738
|
}
|
739
|
+
/**
|
740
|
+
* 本接口支持营业执照信息的识别与准确性核验,返回的真实工商照面信息比营业执照识别及核验(基础版)接口更详细。
|
741
|
+
|
742
|
+
您可以输入营业执照注册号或营业执照图片(若两者都输入则只用注册号做查询),接口返回查询到的工商照面信息,并比对要校验的字段与查询结果的一致性。
|
743
|
+
|
744
|
+
查询到工商信息包括:统一社会信用代码、组织机构代码、经营期限、法人姓名、经营状态、经营业务范围及方式、注册资金、注册币种、登记机关、开业日期、企业(机构)类型、注销日期、吊销日期、许可经营项目、一般经营项目、核准时间、省、地级市、区/县、住所所在行政区划代码、行业门类代码、行业门类名称、国民经济行业代码、国民经济行业名称、经营(业务)范围等。
|
745
|
+
*/
|
746
|
+
async VerifyBizLicense(req, cb) {
|
747
|
+
return this.request("VerifyBizLicense", req, cb);
|
748
|
+
}
|
727
749
|
/**
|
728
750
|
* 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
|
729
751
|
*/
|
@@ -780,7 +802,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
780
802
|
/**
|
781
803
|
* 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码。
|
782
804
|
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
783
|
-
|
784
805
|
*/
|
785
806
|
async RecognizeThaiIDCardOCR(req, cb) {
|
786
807
|
return this.request("RecognizeThaiIDCardOCR", req, cb);
|
@@ -690,6 +690,23 @@ export interface WaybillOCRResponse {
|
|
690
690
|
*/
|
691
691
|
RequestId?: string;
|
692
692
|
}
|
693
|
+
/**
|
694
|
+
* CreateAIFormTask请求参数结构体
|
695
|
+
*/
|
696
|
+
export interface CreateAIFormTaskRequest {
|
697
|
+
/**
|
698
|
+
* 多个文件的URL列表
|
699
|
+
*/
|
700
|
+
FileList: Array<SmartFormFileUrl>;
|
701
|
+
/**
|
702
|
+
* 备注信息1
|
703
|
+
*/
|
704
|
+
FirstNotes?: string;
|
705
|
+
/**
|
706
|
+
* 备注信息2
|
707
|
+
*/
|
708
|
+
SecondNotes?: string;
|
709
|
+
}
|
693
710
|
/**
|
694
711
|
* 识别出来的单词信息包括单词(包括单词Character和单词置信度confidence)
|
695
712
|
*/
|
@@ -1166,13 +1183,24 @@ export interface InvoiceGeneralInfo {
|
|
1166
1183
|
Rect: Rect;
|
1167
1184
|
}
|
1168
1185
|
/**
|
1169
|
-
*
|
1186
|
+
* 增值税发票识别结果
|
1170
1187
|
*/
|
1171
|
-
export interface
|
1188
|
+
export interface TextVatInvoice {
|
1172
1189
|
/**
|
1173
|
-
|
1190
|
+
* 识别出的字段名称(关键字)。支持以下字段的识别:
|
1191
|
+
发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选、车牌号、类型、通行日期起、通行日期止、发票类型。
|
1192
|
+
*/
|
1193
|
+
Name: string;
|
1194
|
+
/**
|
1195
|
+
* 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
|
1174
1196
|
*/
|
1175
|
-
|
1197
|
+
Value: string;
|
1198
|
+
/**
|
1199
|
+
* 字段在原图中的中的四点坐标。
|
1200
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1201
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1202
|
+
*/
|
1203
|
+
Polygon: Polygon;
|
1176
1204
|
}
|
1177
1205
|
/**
|
1178
1206
|
* InstitutionOCR返回参数结构体
|
@@ -1430,6 +1458,15 @@ export interface WaybillObj {
|
|
1430
1458
|
*/
|
1431
1459
|
Text: string;
|
1432
1460
|
}
|
1461
|
+
/**
|
1462
|
+
* 英文OCR识别出的单词在原图中的四点坐标数组
|
1463
|
+
*/
|
1464
|
+
export interface WordCoordPoint {
|
1465
|
+
/**
|
1466
|
+
* 英文OCR识别出的每个单词在原图中的四点坐标。
|
1467
|
+
*/
|
1468
|
+
WordCoordinate: Array<Coord>;
|
1469
|
+
}
|
1433
1470
|
/**
|
1434
1471
|
* 票据检测结果
|
1435
1472
|
*/
|
@@ -1595,6 +1632,26 @@ export interface OnlineTaxiItineraryInfo {
|
|
1595
1632
|
*/
|
1596
1633
|
Row: number;
|
1597
1634
|
}
|
1635
|
+
/**
|
1636
|
+
* VehicleRegCertOCR请求参数结构体
|
1637
|
+
*/
|
1638
|
+
export interface VehicleRegCertOCRRequest {
|
1639
|
+
/**
|
1640
|
+
* 图片的 Base64 值。
|
1641
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1642
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1643
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1644
|
+
*/
|
1645
|
+
ImageBase64?: string;
|
1646
|
+
/**
|
1647
|
+
* 图片的 Url 地址。
|
1648
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1649
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1650
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1651
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1652
|
+
*/
|
1653
|
+
ImageUrl?: string;
|
1654
|
+
}
|
1598
1655
|
/**
|
1599
1656
|
* PropOwnerCertOCR返回参数结构体
|
1600
1657
|
*/
|
@@ -1863,24 +1920,41 @@ export interface SmartStructuralOCRRequest {
|
|
1863
1920
|
ReturnFullText?: boolean;
|
1864
1921
|
}
|
1865
1922
|
/**
|
1866
|
-
*
|
1923
|
+
* 单元格数据
|
1867
1924
|
*/
|
1868
|
-
export interface
|
1925
|
+
export interface TableCellInfo {
|
1869
1926
|
/**
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
Name: string;
|
1927
|
+
* 单元格左上角的列索引
|
1928
|
+
*/
|
1929
|
+
ColTl: number;
|
1874
1930
|
/**
|
1875
|
-
*
|
1931
|
+
* 单元格左上角的行索引
|
1876
1932
|
*/
|
1877
|
-
|
1933
|
+
RowTl: number;
|
1878
1934
|
/**
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1935
|
+
* 单元格右下角的列索引
|
1936
|
+
*/
|
1937
|
+
ColBr: number;
|
1938
|
+
/**
|
1939
|
+
* 单元格右下角的行索引
|
1940
|
+
*/
|
1941
|
+
RowBr: number;
|
1942
|
+
/**
|
1943
|
+
* 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
|
1944
|
+
*/
|
1945
|
+
Text: string;
|
1946
|
+
/**
|
1947
|
+
* 单元格类型
|
1948
|
+
*/
|
1949
|
+
Type: string;
|
1950
|
+
/**
|
1951
|
+
* 单元格置信度
|
1952
|
+
*/
|
1953
|
+
Confidence: number;
|
1954
|
+
/**
|
1955
|
+
* 单元格在图像中的四点坐标
|
1956
|
+
*/
|
1957
|
+
Polygon: Array<Coord>;
|
1884
1958
|
}
|
1885
1959
|
/**
|
1886
1960
|
* GeneralHandwritingOCR请求参数结构体
|
@@ -2176,6 +2250,10 @@ export interface RecognizeThaiIDCardOCRResponse {
|
|
2176
2250
|
* 英文姓名
|
2177
2251
|
*/
|
2178
2252
|
EnLastName?: string;
|
2253
|
+
/**
|
2254
|
+
* 证件人像照片抠取
|
2255
|
+
*/
|
2256
|
+
PortraitImage?: string;
|
2179
2257
|
/**
|
2180
2258
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2181
2259
|
*/
|
@@ -2639,6 +2717,31 @@ export interface VatInvoiceGoodsInfo {
|
|
2639
2717
|
*/
|
2640
2718
|
TaxAmount: string;
|
2641
2719
|
}
|
2720
|
+
/**
|
2721
|
+
* OrgCodeCertOCR返回参数结构体
|
2722
|
+
*/
|
2723
|
+
export interface OrgCodeCertOCRResponse {
|
2724
|
+
/**
|
2725
|
+
* 代码
|
2726
|
+
*/
|
2727
|
+
OrgCode: string;
|
2728
|
+
/**
|
2729
|
+
* 机构名称
|
2730
|
+
*/
|
2731
|
+
Name: string;
|
2732
|
+
/**
|
2733
|
+
* 地址
|
2734
|
+
*/
|
2735
|
+
Address: string;
|
2736
|
+
/**
|
2737
|
+
* 有效期
|
2738
|
+
*/
|
2739
|
+
ValidDate: string;
|
2740
|
+
/**
|
2741
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2742
|
+
*/
|
2743
|
+
RequestId?: string;
|
2744
|
+
}
|
2642
2745
|
/**
|
2643
2746
|
* PermitOCR请求参数结构体
|
2644
2747
|
*/
|
@@ -2676,6 +2779,10 @@ export interface InvoiceGeneralOCRResponse {
|
|
2676
2779
|
*/
|
2677
2780
|
RequestId?: string;
|
2678
2781
|
}
|
2782
|
+
/**
|
2783
|
+
* 智慧表单上传文件信息
|
2784
|
+
*/
|
2785
|
+
export declare type SmartFormFileUrl = null;
|
2679
2786
|
/**
|
2680
2787
|
* VatInvoiceVerifyNew返回参数结构体
|
2681
2788
|
*/
|
@@ -2770,9 +2877,9 @@ export interface RecognizeContainerOCRRequest {
|
|
2770
2877
|
ImageUrl?: string;
|
2771
2878
|
}
|
2772
2879
|
/**
|
2773
|
-
*
|
2880
|
+
* EduPaperOCR请求参数结构体
|
2774
2881
|
*/
|
2775
|
-
export interface
|
2882
|
+
export interface EduPaperOCRRequest {
|
2776
2883
|
/**
|
2777
2884
|
* 图片的 Base64 值。
|
2778
2885
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
@@ -2788,6 +2895,16 @@ export interface TextDetectRequest {
|
|
2788
2895
|
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
2789
2896
|
*/
|
2790
2897
|
ImageUrl?: string;
|
2898
|
+
/**
|
2899
|
+
* 扩展配置信息。
|
2900
|
+
配置格式:{"option1":value1,"option2":value2}
|
2901
|
+
1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
|
2902
|
+
2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
|
2903
|
+
3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
|
2904
|
+
示例:
|
2905
|
+
{"task_type": 1,"is_structuralization": true,"if_readable_format": true}
|
2906
|
+
*/
|
2907
|
+
Config?: string;
|
2791
2908
|
}
|
2792
2909
|
/**
|
2793
2910
|
* VatRollInvoiceOCR返回参数结构体
|
@@ -2874,6 +2991,11 @@ export interface RecognizeThaiIDCardOCRRequest {
|
|
2874
2991
|
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
2875
2992
|
*/
|
2876
2993
|
ImageUrl?: string;
|
2994
|
+
/**
|
2995
|
+
* 图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
|
2996
|
+
设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码
|
2997
|
+
*/
|
2998
|
+
CropPortrait?: boolean;
|
2877
2999
|
}
|
2878
3000
|
/**
|
2879
3001
|
* 名片识别结果
|
@@ -3225,9 +3347,9 @@ export interface VerifyBasicBizLicenseResponse {
|
|
3225
3347
|
RequestId?: string;
|
3226
3348
|
}
|
3227
3349
|
/**
|
3228
|
-
*
|
3350
|
+
* TextDetect请求参数结构体
|
3229
3351
|
*/
|
3230
|
-
export interface
|
3352
|
+
export interface TextDetectRequest {
|
3231
3353
|
/**
|
3232
3354
|
* 图片的 Base64 值。
|
3233
3355
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
@@ -4291,6 +4413,27 @@ export interface TableTitle {
|
|
4291
4413
|
*/
|
4292
4414
|
Text: string;
|
4293
4415
|
}
|
4416
|
+
/**
|
4417
|
+
* RecognizeTableAccurateOCR请求参数结构体
|
4418
|
+
*/
|
4419
|
+
export interface RecognizeTableAccurateOCRRequest {
|
4420
|
+
/**
|
4421
|
+
* 图片/PDF的 Base64 值。
|
4422
|
+
要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
4423
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4424
|
+
*/
|
4425
|
+
ImageBase64?: string;
|
4426
|
+
/**
|
4427
|
+
* 图片/PDF的 Url 地址。
|
4428
|
+
要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
4429
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4430
|
+
*/
|
4431
|
+
ImageUrl?: string;
|
4432
|
+
/**
|
4433
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
4434
|
+
*/
|
4435
|
+
PdfPageNumber?: number;
|
4436
|
+
}
|
4294
4437
|
/**
|
4295
4438
|
* 坐标
|
4296
4439
|
*/
|
@@ -4469,17 +4612,26 @@ export interface QuestionObj {
|
|
4469
4612
|
QuestionImageCoords: Array<Rect>;
|
4470
4613
|
}
|
4471
4614
|
/**
|
4472
|
-
*
|
4615
|
+
* 表格内容检测
|
4473
4616
|
*/
|
4474
|
-
export interface
|
4617
|
+
export interface TableInfo {
|
4475
4618
|
/**
|
4476
|
-
|
4477
|
-
|
4478
|
-
|
4619
|
+
* 单元格内容
|
4620
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4621
|
+
*/
|
4622
|
+
Cells: Array<TableCellInfo>;
|
4479
4623
|
/**
|
4480
|
-
|
4481
|
-
|
4482
|
-
|
4624
|
+
* 图像中的文本块类型,0 为非表格文本,
|
4625
|
+
1 为有线表格,2 为无线表格
|
4626
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4627
|
+
*/
|
4628
|
+
Type: number;
|
4629
|
+
/**
|
4630
|
+
* 表格主体四个顶点坐标(依次为左上角,
|
4631
|
+
右上角,右下角,左下角)
|
4632
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4633
|
+
*/
|
4634
|
+
TableCoordPoint: Array<Coord>;
|
4483
4635
|
}
|
4484
4636
|
/**
|
4485
4637
|
* VinOCR返回参数结构体
|
@@ -4495,34 +4647,22 @@ export interface VinOCRResponse {
|
|
4495
4647
|
RequestId?: string;
|
4496
4648
|
}
|
4497
4649
|
/**
|
4498
|
-
*
|
4650
|
+
* GetTaskState返回参数结构体
|
4499
4651
|
*/
|
4500
|
-
export interface
|
4652
|
+
export interface GetTaskStateResponse {
|
4501
4653
|
/**
|
4502
|
-
*
|
4503
|
-
|
4504
|
-
|
4505
|
-
|
4654
|
+
* 1:任务识别完成,还未提交
|
4655
|
+
2:任务已手动关闭
|
4656
|
+
3:任务已提交
|
4657
|
+
4:任务识别中
|
4658
|
+
5:超时:任务超过了可操作的24H时限
|
4659
|
+
6:任务识别失败
|
4506
4660
|
*/
|
4507
|
-
|
4661
|
+
TaskState?: number;
|
4508
4662
|
/**
|
4509
|
-
|
4510
|
-
|
4511
|
-
|
4512
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4513
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4514
|
-
*/
|
4515
|
-
ImageUrl?: string;
|
4516
|
-
/**
|
4517
|
-
* 扩展配置信息。
|
4518
|
-
配置格式:{"option1":value1,"option2":value2}
|
4519
|
-
1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
|
4520
|
-
2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
|
4521
|
-
3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
|
4522
|
-
示例:
|
4523
|
-
{"task_type": 1,"is_structuralization": true,"if_readable_format": true}
|
4524
|
-
*/
|
4525
|
-
Config?: string;
|
4663
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4664
|
+
*/
|
4665
|
+
RequestId?: string;
|
4526
4666
|
}
|
4527
4667
|
/**
|
4528
4668
|
* FormulaOCR请求参数结构体
|
@@ -4717,25 +4857,19 @@ export interface ItemCoord {
|
|
4717
4857
|
Height: number;
|
4718
4858
|
}
|
4719
4859
|
/**
|
4720
|
-
*
|
4860
|
+
* CreateAIFormTask返回参数结构体
|
4721
4861
|
*/
|
4722
|
-
export interface
|
4862
|
+
export interface CreateAIFormTaskResponse {
|
4723
4863
|
/**
|
4724
|
-
|
4725
|
-
|
4726
|
-
|
4727
|
-
|
4728
|
-
* 机构名称
|
4729
|
-
*/
|
4730
|
-
Name: string;
|
4731
|
-
/**
|
4732
|
-
* 地址
|
4733
|
-
*/
|
4734
|
-
Address: string;
|
4864
|
+
* 本次识别任务的唯一身份ID
|
4865
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4866
|
+
*/
|
4867
|
+
TaskId?: string;
|
4735
4868
|
/**
|
4736
|
-
|
4737
|
-
|
4738
|
-
|
4869
|
+
* 本次识别任务的操作URL,有效期自生成之时起共24小时
|
4870
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4871
|
+
*/
|
4872
|
+
OperateUrl?: string;
|
4739
4873
|
/**
|
4740
4874
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4741
4875
|
*/
|
@@ -4956,6 +5090,19 @@ export interface CarInvoiceOCRResponse {
|
|
4956
5090
|
*/
|
4957
5091
|
RequestId?: string;
|
4958
5092
|
}
|
5093
|
+
/**
|
5094
|
+
* VehicleRegCertOCR返回参数结构体
|
5095
|
+
*/
|
5096
|
+
export interface VehicleRegCertOCRResponse {
|
5097
|
+
/**
|
5098
|
+
* 机动车登记证书识别结果,具体内容请点击左侧链接。
|
5099
|
+
*/
|
5100
|
+
VehicleRegCertInfos: Array<VehicleRegCertInfo>;
|
5101
|
+
/**
|
5102
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5103
|
+
*/
|
5104
|
+
RequestId?: string;
|
5105
|
+
}
|
4959
5106
|
/**
|
4960
5107
|
* GeneralFastOCR请求参数结构体
|
4961
5108
|
*/
|
@@ -5046,6 +5193,15 @@ export interface InsuranceBillInfo {
|
|
5046
5193
|
*/
|
5047
5194
|
Value: string;
|
5048
5195
|
}
|
5196
|
+
/**
|
5197
|
+
* GetTaskState请求参数结构体
|
5198
|
+
*/
|
5199
|
+
export interface GetTaskStateRequest {
|
5200
|
+
/**
|
5201
|
+
* 智慧表单任务唯一身份ID
|
5202
|
+
*/
|
5203
|
+
TaskId: string;
|
5204
|
+
}
|
5049
5205
|
/**
|
5050
5206
|
* RecognizeMedicalInvoiceOCR请求参数结构体
|
5051
5207
|
*/
|
@@ -5282,6 +5438,34 @@ export interface TextTable {
|
|
5282
5438
|
*/
|
5283
5439
|
AdvancedInfo: string;
|
5284
5440
|
}
|
5441
|
+
/**
|
5442
|
+
* RecognizeTableAccurateOCR返回参数结构体
|
5443
|
+
*/
|
5444
|
+
export interface RecognizeTableAccurateOCRResponse {
|
5445
|
+
/**
|
5446
|
+
* 检测到的文本信息,具体内容请点击左侧链接。
|
5447
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5448
|
+
*/
|
5449
|
+
TableDetections?: Array<TableInfo>;
|
5450
|
+
/**
|
5451
|
+
* Base64 编码后的 Excel 数据。
|
5452
|
+
*/
|
5453
|
+
Data?: string;
|
5454
|
+
/**
|
5455
|
+
* 图片为PDF时,返回PDF的总页数,默认为0
|
5456
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5457
|
+
*/
|
5458
|
+
PdfPageSize?: number;
|
5459
|
+
/**
|
5460
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。
|
5461
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5462
|
+
*/
|
5463
|
+
Angle?: number;
|
5464
|
+
/**
|
5465
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5466
|
+
*/
|
5467
|
+
RequestId?: string;
|
5468
|
+
}
|
5285
5469
|
/**
|
5286
5470
|
* ResidenceBookletOCR请求参数结构体
|
5287
5471
|
*/
|