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.
@@ -835,6 +835,26 @@ export interface WaybillOCRResponse {
835
835
  RequestId?: string
836
836
  }
837
837
 
838
+ /**
839
+ * CreateAIFormTask请求参数结构体
840
+ */
841
+ export interface CreateAIFormTaskRequest {
842
+ /**
843
+ * 多个文件的URL列表
844
+ */
845
+ FileList: Array<SmartFormFileUrl>
846
+
847
+ /**
848
+ * 备注信息1
849
+ */
850
+ FirstNotes?: string
851
+
852
+ /**
853
+ * 备注信息2
854
+ */
855
+ SecondNotes?: string
856
+ }
857
+
838
858
  /**
839
859
  * 识别出来的单词信息包括单词(包括单词Character和单词置信度confidence)
840
860
  */
@@ -1391,13 +1411,26 @@ export interface InvoiceGeneralInfo {
1391
1411
  }
1392
1412
 
1393
1413
  /**
1394
- * 英文OCR识别出的单词在原图中的四点坐标数组
1414
+ * 增值税发票识别结果
1395
1415
  */
1396
- export interface WordCoordPoint {
1416
+ export interface TextVatInvoice {
1397
1417
  /**
1398
- * 英文OCR识别出的每个单词在原图中的四点坐标。
1418
+ * 识别出的字段名称(关键字)。支持以下字段的识别:
1419
+ 发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选、车牌号、类型、通行日期起、通行日期止、发票类型。
1420
+ */
1421
+ Name: string
1422
+
1423
+ /**
1424
+ * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
1399
1425
  */
1400
- WordCoordinate: Array<Coord>
1426
+ Value: string
1427
+
1428
+ /**
1429
+ * 字段在原图中的中的四点坐标。
1430
+ 注意:此字段可能返回 null,表示取不到有效值。
1431
+ 注意:此字段可能返回 null,表示取不到有效值。
1432
+ */
1433
+ Polygon: Polygon
1401
1434
  }
1402
1435
 
1403
1436
  /**
@@ -1706,6 +1739,16 @@ export interface WaybillObj {
1706
1739
  Text: string
1707
1740
  }
1708
1741
 
1742
+ /**
1743
+ * 英文OCR识别出的单词在原图中的四点坐标数组
1744
+ */
1745
+ export interface WordCoordPoint {
1746
+ /**
1747
+ * 英文OCR识别出的每个单词在原图中的四点坐标。
1748
+ */
1749
+ WordCoordinate: Array<Coord>
1750
+ }
1751
+
1709
1752
  /**
1710
1753
  * 票据检测结果
1711
1754
  */
@@ -1896,6 +1939,28 @@ export interface OnlineTaxiItineraryInfo {
1896
1939
  Row: number
1897
1940
  }
1898
1941
 
1942
+ /**
1943
+ * VehicleRegCertOCR请求参数结构体
1944
+ */
1945
+ export interface VehicleRegCertOCRRequest {
1946
+ /**
1947
+ * 图片的 Base64 值。
1948
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1949
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
1950
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1951
+ */
1952
+ ImageBase64?: string
1953
+
1954
+ /**
1955
+ * 图片的 Url 地址。
1956
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1957
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
1958
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
1959
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1960
+ */
1961
+ ImageUrl?: string
1962
+ }
1963
+
1899
1964
  /**
1900
1965
  * PropOwnerCertOCR返回参数结构体
1901
1966
  */
@@ -2215,26 +2280,48 @@ ItemNames=["姓名","性别"]
2215
2280
  }
2216
2281
 
2217
2282
  /**
2218
- * 增值税发票识别结果
2283
+ * 单元格数据
2219
2284
  */
2220
- export interface TextVatInvoice {
2285
+ export interface TableCellInfo {
2221
2286
  /**
2222
- * 识别出的字段名称(关键字)。支持以下字段的识别:
2223
- 发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选、车牌号、类型、通行日期起、通行日期止、发票类型。
2224
- */
2225
- Name: string
2287
+ * 单元格左上角的列索引
2288
+ */
2289
+ ColTl: number
2226
2290
 
2227
2291
  /**
2228
- * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2292
+ * 单元格左上角的行索引
2229
2293
  */
2230
- Value: string
2294
+ RowTl: number
2231
2295
 
2232
2296
  /**
2233
- * 字段在原图中的中的四点坐标。
2234
- 注意:此字段可能返回 null,表示取不到有效值。
2235
- 注意:此字段可能返回 null,表示取不到有效值。
2236
- */
2237
- Polygon: Polygon
2297
+ * 单元格右下角的列索引
2298
+ */
2299
+ ColBr: number
2300
+
2301
+ /**
2302
+ * 单元格右下角的行索引
2303
+ */
2304
+ RowBr: number
2305
+
2306
+ /**
2307
+ * 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
2308
+ */
2309
+ Text: string
2310
+
2311
+ /**
2312
+ * 单元格类型
2313
+ */
2314
+ Type: string
2315
+
2316
+ /**
2317
+ * 单元格置信度
2318
+ */
2319
+ Confidence: number
2320
+
2321
+ /**
2322
+ * 单元格在图像中的四点坐标
2323
+ */
2324
+ Polygon: Array<Coord>
2238
2325
  }
2239
2326
 
2240
2327
  /**
@@ -2582,6 +2669,11 @@ export interface RecognizeThaiIDCardOCRResponse {
2582
2669
  */
2583
2670
  EnLastName?: string
2584
2671
 
2672
+ /**
2673
+ * 证件人像照片抠取
2674
+ */
2675
+ PortraitImage?: string
2676
+
2585
2677
  /**
2586
2678
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2587
2679
  */
@@ -3122,6 +3214,36 @@ export interface VatInvoiceGoodsInfo {
3122
3214
  TaxAmount: string
3123
3215
  }
3124
3216
 
3217
+ /**
3218
+ * OrgCodeCertOCR返回参数结构体
3219
+ */
3220
+ export interface OrgCodeCertOCRResponse {
3221
+ /**
3222
+ * 代码
3223
+ */
3224
+ OrgCode: string
3225
+
3226
+ /**
3227
+ * 机构名称
3228
+ */
3229
+ Name: string
3230
+
3231
+ /**
3232
+ * 地址
3233
+ */
3234
+ Address: string
3235
+
3236
+ /**
3237
+ * 有效期
3238
+ */
3239
+ ValidDate: string
3240
+
3241
+ /**
3242
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3243
+ */
3244
+ RequestId?: string
3245
+ }
3246
+
3125
3247
  /**
3126
3248
  * PermitOCR请求参数结构体
3127
3249
  */
@@ -3164,6 +3286,11 @@ export interface InvoiceGeneralOCRResponse {
3164
3286
  RequestId?: string
3165
3287
  }
3166
3288
 
3289
+ /**
3290
+ * 智慧表单上传文件信息
3291
+ */
3292
+ export type SmartFormFileUrl = null
3293
+
3167
3294
  /**
3168
3295
  * VatInvoiceVerifyNew返回参数结构体
3169
3296
  */
@@ -3271,9 +3398,9 @@ export interface RecognizeContainerOCRRequest {
3271
3398
  }
3272
3399
 
3273
3400
  /**
3274
- * TextDetect请求参数结构体
3401
+ * EduPaperOCR请求参数结构体
3275
3402
  */
3276
- export interface TextDetectRequest {
3403
+ export interface EduPaperOCRRequest {
3277
3404
  /**
3278
3405
  * 图片的 Base64 值。
3279
3406
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
@@ -3290,6 +3417,17 @@ export interface TextDetectRequest {
3290
3417
  非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3291
3418
  */
3292
3419
  ImageUrl?: string
3420
+
3421
+ /**
3422
+ * 扩展配置信息。
3423
+ 配置格式:{"option1":value1,"option2":value2}
3424
+ 1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
3425
+ 2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
3426
+ 3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
3427
+ 示例:
3428
+ {"task_type": 1,"is_structuralization": true,"if_readable_format": true}
3429
+ */
3430
+ Config?: string
3293
3431
  }
3294
3432
 
3295
3433
  /**
@@ -3389,6 +3527,12 @@ export interface RecognizeThaiIDCardOCRRequest {
3389
3527
  建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
3390
3528
  */
3391
3529
  ImageUrl?: string
3530
+
3531
+ /**
3532
+ * 图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
3533
+ 设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码
3534
+ */
3535
+ CropPortrait?: boolean
3392
3536
  }
3393
3537
 
3394
3538
  /**
@@ -3815,9 +3959,9 @@ export interface VerifyBasicBizLicenseResponse {
3815
3959
  }
3816
3960
 
3817
3961
  /**
3818
- * VehicleRegCertOCR请求参数结构体
3962
+ * TextDetect请求参数结构体
3819
3963
  */
3820
- export interface VehicleRegCertOCRRequest {
3964
+ export interface TextDetectRequest {
3821
3965
  /**
3822
3966
  * 图片的 Base64 值。
3823
3967
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
@@ -5057,6 +5201,30 @@ export interface TableTitle {
5057
5201
  Text: string
5058
5202
  }
5059
5203
 
5204
+ /**
5205
+ * RecognizeTableAccurateOCR请求参数结构体
5206
+ */
5207
+ export interface RecognizeTableAccurateOCRRequest {
5208
+ /**
5209
+ * 图片/PDF的 Base64 值。
5210
+ 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
5211
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5212
+ */
5213
+ ImageBase64?: string
5214
+
5215
+ /**
5216
+ * 图片/PDF的 Url 地址。
5217
+ 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
5218
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5219
+ */
5220
+ ImageUrl?: string
5221
+
5222
+ /**
5223
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
5224
+ */
5225
+ PdfPageNumber?: number
5226
+ }
5227
+
5060
5228
  /**
5061
5229
  * 坐标
5062
5230
  */
@@ -5265,18 +5433,28 @@ export interface QuestionObj {
5265
5433
  }
5266
5434
 
5267
5435
  /**
5268
- * VehicleRegCertOCR返回参数结构体
5436
+ * 表格内容检测
5269
5437
  */
5270
- export interface VehicleRegCertOCRResponse {
5438
+ export interface TableInfo {
5271
5439
  /**
5272
- * 机动车登记证书识别结果,具体内容请点击左侧链接。
5273
- */
5274
- VehicleRegCertInfos: Array<VehicleRegCertInfo>
5440
+ * 单元格内容
5441
+ 注意:此字段可能返回 null,表示取不到有效值。
5442
+ */
5443
+ Cells: Array<TableCellInfo>
5275
5444
 
5276
5445
  /**
5277
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5278
- */
5279
- RequestId?: string
5446
+ * 图像中的文本块类型,0 为非表格文本,
5447
+ 1 为有线表格,2 为无线表格
5448
+ 注意:此字段可能返回 null,表示取不到有效值。
5449
+ */
5450
+ Type: number
5451
+
5452
+ /**
5453
+ * 表格主体四个顶点坐标(依次为左上角,
5454
+ 右上角,右下角,左下角)
5455
+ 注意:此字段可能返回 null,表示取不到有效值。
5456
+ */
5457
+ TableCoordPoint: Array<Coord>
5280
5458
  }
5281
5459
 
5282
5460
  /**
@@ -5295,36 +5473,23 @@ export interface VinOCRResponse {
5295
5473
  }
5296
5474
 
5297
5475
  /**
5298
- * EduPaperOCR请求参数结构体
5476
+ * GetTaskState返回参数结构体
5299
5477
  */
5300
- export interface EduPaperOCRRequest {
5478
+ export interface GetTaskStateResponse {
5301
5479
  /**
5302
- * 图片的 Base64 值。
5303
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5304
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
5305
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5480
+ * 1:任务识别完成,还未提交
5481
+ 2:任务已手动关闭
5482
+ 3:任务已提交
5483
+ 4:任务识别中
5484
+ 5:超时:任务超过了可操作的24H时限
5485
+ 6:任务识别失败
5306
5486
  */
5307
- ImageBase64?: string
5487
+ TaskState?: number
5308
5488
 
5309
5489
  /**
5310
- * 图片的 Url 地址。
5311
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5312
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
5313
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
5314
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5315
- */
5316
- ImageUrl?: string
5317
-
5318
- /**
5319
- * 扩展配置信息。
5320
- 配置格式:{"option1":value1,"option2":value2}
5321
- 1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
5322
- 2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
5323
- 3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
5324
- 示例:
5325
- {"task_type": 1,"is_structuralization": true,"if_readable_format": true}
5326
- */
5327
- Config?: string
5490
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5491
+ */
5492
+ RequestId?: string
5328
5493
  }
5329
5494
 
5330
5495
  /**
@@ -5555,28 +5720,20 @@ export interface ItemCoord {
5555
5720
  }
5556
5721
 
5557
5722
  /**
5558
- * OrgCodeCertOCR返回参数结构体
5723
+ * CreateAIFormTask返回参数结构体
5559
5724
  */
5560
- export interface OrgCodeCertOCRResponse {
5561
- /**
5562
- * 代码
5563
- */
5564
- OrgCode: string
5565
-
5725
+ export interface CreateAIFormTaskResponse {
5566
5726
  /**
5567
- * 机构名称
5568
- */
5569
- Name: string
5570
-
5571
- /**
5572
- * 地址
5573
- */
5574
- Address: string
5727
+ * 本次识别任务的唯一身份ID
5728
+ 注意:此字段可能返回 null,表示取不到有效值。
5729
+ */
5730
+ TaskId?: string
5575
5731
 
5576
5732
  /**
5577
- * 有效期
5578
- */
5579
- ValidDate: string
5733
+ * 本次识别任务的操作URL,有效期自生成之时起共24小时
5734
+ 注意:此字段可能返回 null,表示取不到有效值。
5735
+ */
5736
+ OperateUrl?: string
5580
5737
 
5581
5738
  /**
5582
5739
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -5840,6 +5997,21 @@ export interface CarInvoiceOCRResponse {
5840
5997
  RequestId?: string
5841
5998
  }
5842
5999
 
6000
+ /**
6001
+ * VehicleRegCertOCR返回参数结构体
6002
+ */
6003
+ export interface VehicleRegCertOCRResponse {
6004
+ /**
6005
+ * 机动车登记证书识别结果,具体内容请点击左侧链接。
6006
+ */
6007
+ VehicleRegCertInfos: Array<VehicleRegCertInfo>
6008
+
6009
+ /**
6010
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6011
+ */
6012
+ RequestId?: string
6013
+ }
6014
+
5843
6015
  /**
5844
6016
  * GeneralFastOCR请求参数结构体
5845
6017
  */
@@ -5943,6 +6115,16 @@ export interface InsuranceBillInfo {
5943
6115
  Value: string
5944
6116
  }
5945
6117
 
6118
+ /**
6119
+ * GetTaskState请求参数结构体
6120
+ */
6121
+ export interface GetTaskStateRequest {
6122
+ /**
6123
+ * 智慧表单任务唯一身份ID
6124
+ */
6125
+ TaskId: string
6126
+ }
6127
+
5946
6128
  /**
5947
6129
  * RecognizeMedicalInvoiceOCR请求参数结构体
5948
6130
  */
@@ -6224,6 +6406,39 @@ export interface TextTable {
6224
6406
  AdvancedInfo: string
6225
6407
  }
6226
6408
 
6409
+ /**
6410
+ * RecognizeTableAccurateOCR返回参数结构体
6411
+ */
6412
+ export interface RecognizeTableAccurateOCRResponse {
6413
+ /**
6414
+ * 检测到的文本信息,具体内容请点击左侧链接。
6415
+ 注意:此字段可能返回 null,表示取不到有效值。
6416
+ */
6417
+ TableDetections?: Array<TableInfo>
6418
+
6419
+ /**
6420
+ * Base64 编码后的 Excel 数据。
6421
+ */
6422
+ Data?: string
6423
+
6424
+ /**
6425
+ * 图片为PDF时,返回PDF的总页数,默认为0
6426
+ 注意:此字段可能返回 null,表示取不到有效值。
6427
+ */
6428
+ PdfPageSize?: number
6429
+
6430
+ /**
6431
+ * 图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。
6432
+ 注意:此字段可能返回 null,表示取不到有效值。
6433
+ */
6434
+ Angle?: number
6435
+
6436
+ /**
6437
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6438
+ */
6439
+ RequestId?: string
6440
+ }
6441
+
6227
6442
  /**
6228
6443
  * ResidenceBookletOCR请求参数结构体
6229
6444
  */
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, VehicleLicenseOCRRequest, ImageEnhancementRequest, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VerifyBasicBizLicenseResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, MixedInvoiceDetectRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VehicleRegCertOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizePhilippinesVoteIDOCRResponse, QueryBarCodeRequest, OrgCodeCertOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeMedicalInvoiceOCRRequest, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, EnterpriseLicenseOCRResponse, WaybillOCRRequest, VinOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, VehicleLicenseOCRRequest, ImageEnhancementRequest, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VerifyBasicBizLicenseResponse, TextDetectRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, MixedInvoiceDetectRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, GetTaskStateResponse, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizePhilippinesVoteIDOCRResponse, QueryBarCodeRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, EnterpriseLicenseOCRResponse, WaybillOCRRequest, VinOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -178,6 +178,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
178
178
 
179
179
  */
180
180
  RecognizeContainerOCR(req: RecognizeContainerOCRRequest, cb?: (error: string, rep: RecognizeContainerOCRResponse) => void): Promise<RecognizeContainerOCRResponse>;
181
+ /**
182
+ * 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
183
+
184
+ 默认接口请求频率限制:2次/秒。
185
+ */
186
+ RecognizeTableAccurateOCR(req: RecognizeTableAccurateOCRRequest, cb?: (error: string, rep: RecognizeTableAccurateOCRResponse) => void): Promise<RecognizeTableAccurateOCRResponse>;
181
187
  /**
182
188
  * 本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
183
189
  */
@@ -247,10 +253,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
247
253
  */
248
254
  InvoiceGeneralOCR(req: InvoiceGeneralOCRRequest, cb?: (error: string, rep: InvoiceGeneralOCRResponse) => void): Promise<InvoiceGeneralOCRResponse>;
249
255
  /**
250
- * 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
251
-
252
- */
253
- RecognizeMedicalInvoiceOCR(req: RecognizeMedicalInvoiceOCRRequest, cb?: (error: string, rep: RecognizeMedicalInvoiceOCRResponse) => void): Promise<RecognizeMedicalInvoiceOCRResponse>;
256
+ * 支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超连接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
257
+ */
258
+ GetTaskState(req: GetTaskStateRequest, cb?: (error: string, rep: GetTaskStateResponse) => void): Promise<GetTaskStateResponse>;
254
259
  /**
255
260
  * 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
256
261
  */
@@ -266,13 +271,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
266
271
  */
267
272
  RecognizeTableOCR(req: RecognizeTableOCRRequest, cb?: (error: string, rep: RecognizeTableOCRResponse) => void): Promise<RecognizeTableOCRResponse>;
268
273
  /**
269
- * 本接口支持营业执照信息的识别与准确性核验,返回的真实工商照面信息比营业执照识别及核验(基础版)接口更详细。
270
-
271
- 您可以输入营业执照注册号或营业执照图片(若两者都输入则只用注册号做查询),接口返回查询到的工商照面信息,并比对要校验的字段与查询结果的一致性。
274
+ * 本接口可创建智能表单录入任务,支持多个识别图片和PDF的URL上传,返回含有识别内容的操作页面URL。
272
275
 
273
- 查询到工商信息包括:统一社会信用代码、组织机构代码、经营期限、法人姓名、经营状态、经营业务范围及方式、注册资金、注册币种、登记机关、开业日期、企业(机构)类型、注销日期、吊销日期、许可经营项目、一般经营项目、核准时间、省、地级市、区/县、住所所在行政区划代码、行业门类代码、行业门类名称、国民经济行业代码、国民经济行业名称、经营(业务)范围等。
276
+ 智能表单录入产品提供高准确率的表单识别技术和人工核对工具,支持自定义字段,将识别结果自动填入到自定义条目中,并提供人工操作工具,完成整个表单识别过程。适用性强,可对票据、合同、货单等文件的识别,适用于金融、货代、保险、档案等领域。本产品免费公测中,您可以点击demo(超连接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
274
277
  */
275
- VerifyBizLicense(req: VerifyBizLicenseRequest, cb?: (error: string, rep: VerifyBizLicenseResponse) => void): Promise<VerifyBizLicenseResponse>;
278
+ CreateAIFormTask(req: CreateAIFormTaskRequest, cb?: (error: string, rep: CreateAIFormTaskResponse) => void): Promise<CreateAIFormTaskResponse>;
276
279
  /**
277
280
  * 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
278
281
  */
@@ -367,6 +370,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
367
370
  * 本接口支持识别公路汽车客票的发票代码、发票号码、日期、姓名、票价等字段。
368
371
  */
369
372
  BusInvoiceOCR(req: BusInvoiceOCRRequest, cb?: (error: string, rep: BusInvoiceOCRResponse) => void): Promise<BusInvoiceOCRResponse>;
373
+ /**
374
+ * 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
375
+
376
+ */
377
+ RecognizeMedicalInvoiceOCR(req: RecognizeMedicalInvoiceOCRRequest, cb?: (error: string, rep: RecognizeMedicalInvoiceOCRResponse) => void): Promise<RecognizeMedicalInvoiceOCRResponse>;
370
378
  /**
371
379
  * 本接口支持增值税专用发票、增值税普通发票、增值税电子发票全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段。
372
380
 
@@ -569,6 +577,14 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
569
577
  * 本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
570
578
  */
571
579
  PassportOCR(req: PassportOCRRequest, cb?: (error: string, rep: PassportOCRResponse) => void): Promise<PassportOCRResponse>;
580
+ /**
581
+ * 本接口支持营业执照信息的识别与准确性核验,返回的真实工商照面信息比营业执照识别及核验(基础版)接口更详细。
582
+
583
+ 您可以输入营业执照注册号或营业执照图片(若两者都输入则只用注册号做查询),接口返回查询到的工商照面信息,并比对要校验的字段与查询结果的一致性。
584
+
585
+ 查询到工商信息包括:统一社会信用代码、组织机构代码、经营期限、法人姓名、经营状态、经营业务范围及方式、注册资金、注册币种、登记机关、开业日期、企业(机构)类型、注销日期、吊销日期、许可经营项目、一般经营项目、核准时间、省、地级市、区/县、住所所在行政区划代码、行业门类代码、行业门类名称、国民经济行业代码、国民经济行业名称、经营(业务)范围等。
586
+ */
587
+ VerifyBizLicense(req: VerifyBizLicenseRequest, cb?: (error: string, rep: VerifyBizLicenseResponse) => void): Promise<VerifyBizLicenseResponse>;
572
588
  /**
573
589
  * 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
574
590
  */
@@ -609,7 +625,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
609
625
  /**
610
626
  * 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码。
611
627
  本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
612
-
613
628
  */
614
629
  RecognizeThaiIDCardOCR(req: RecognizeThaiIDCardOCRRequest, cb?: (error: string, rep: RecognizeThaiIDCardOCRResponse) => void): Promise<RecognizeThaiIDCardOCRResponse>;
615
630
  /**