tencentcloud-sdk-nodejs-ocr 4.0.971 → 4.0.974

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.
@@ -70,31 +70,31 @@ export interface TextWaybill {
70
70
  /**
71
71
  * 收件人姓名
72
72
  */
73
- RecName: WaybillObj
73
+ RecName?: WaybillObj
74
74
  /**
75
75
  * 收件人手机号
76
76
  */
77
- RecNum: WaybillObj
77
+ RecNum?: WaybillObj
78
78
  /**
79
79
  * 收件人地址
80
80
  */
81
- RecAddr: WaybillObj
81
+ RecAddr?: WaybillObj
82
82
  /**
83
83
  * 寄件人姓名
84
84
  */
85
- SenderName: WaybillObj
85
+ SenderName?: WaybillObj
86
86
  /**
87
87
  * 寄件人手机号
88
88
  */
89
- SenderNum: WaybillObj
89
+ SenderNum?: WaybillObj
90
90
  /**
91
91
  * 寄件人地址
92
92
  */
93
- SenderAddr: WaybillObj
93
+ SenderAddr?: WaybillObj
94
94
  /**
95
95
  * 运单号
96
96
  */
97
- WaybillNum: WaybillObj
97
+ WaybillNum?: WaybillObj
98
98
  }
99
99
 
100
100
  /**
@@ -438,11 +438,11 @@ export interface TextDetectionResult {
438
438
  /**
439
439
  * 识别出的文本行内容
440
440
  */
441
- Value: string
441
+ Value?: string
442
442
  /**
443
443
  * 坐标,以四个顶点坐标表示
444
444
  */
445
- Polygon: Array<Coord>
445
+ Polygon?: Array<Coord>
446
446
  }
447
447
 
448
448
  /**
@@ -455,7 +455,7 @@ OK:表示识别成功;FailedOperation.UnsupportedInvioce:表示不支持
455
455
  FailedOperation.UnKnowError:表示识别失败;
456
456
  其它错误码见各个票据接口的定义。
457
457
  */
458
- Code: string
458
+ Code?: string
459
459
  /**
460
460
  * 识别出的图片所属的票据类型。
461
461
  -1:未知类型
@@ -473,19 +473,19 @@ FailedOperation.UnKnowError:表示识别失败;
473
473
  15:非税发票
474
474
  16:全电发票
475
475
  */
476
- Type: number
476
+ Type?: number
477
477
  /**
478
478
  * 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。
479
479
  */
480
- Rect: Rect
480
+ Rect?: Rect
481
481
  /**
482
482
  * 识别出的图片在混贴票据图片中的旋转角度。
483
483
  */
484
- Angle: number
484
+ Angle?: number
485
485
  /**
486
486
  * 识别到的内容。
487
487
  */
488
- SingleInvoiceInfos: Array<SingleInvoiceInfo>
488
+ SingleInvoiceInfos?: Array<SingleInvoiceInfo>
489
489
  /**
490
490
  * 发票处于识别图片或PDF文件中的页教,默认从1开始。
491
491
  */
@@ -549,51 +549,51 @@ export interface EstateCertOCRResponse {
549
549
  /**
550
550
  * 权利人
551
551
  */
552
- Obligee: string
552
+ Obligee?: string
553
553
  /**
554
554
  * 共有情况
555
555
  */
556
- Ownership: string
556
+ Ownership?: string
557
557
  /**
558
558
  * 坐落
559
559
  */
560
- Location: string
560
+ Location?: string
561
561
  /**
562
562
  * 不动产单元号
563
563
  */
564
- Unit: string
564
+ Unit?: string
565
565
  /**
566
566
  * 权利类型
567
567
  */
568
- Type: string
568
+ Type?: string
569
569
  /**
570
570
  * 权利性质
571
571
  */
572
- Property: string
572
+ Property?: string
573
573
  /**
574
574
  * 用途
575
575
  */
576
- Usage: string
576
+ Usage?: string
577
577
  /**
578
578
  * 面积
579
579
  */
580
- Area: string
580
+ Area?: string
581
581
  /**
582
582
  * 使用期限
583
583
  */
584
- Term: string
584
+ Term?: string
585
585
  /**
586
586
  * 权利其他状况,多行会用换行符\n连接。
587
587
  */
588
- Other: string
588
+ Other?: string
589
589
  /**
590
590
  * 图片旋转角度
591
591
  */
592
- Angle: number
592
+ Angle?: number
593
593
  /**
594
594
  * 不动产权号
595
595
  */
596
- Number: string
596
+ Number?: string
597
597
  /**
598
598
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
599
599
  */
@@ -1289,19 +1289,19 @@ export interface Rect {
1289
1289
  /**
1290
1290
  * 左上角x
1291
1291
  */
1292
- X: number
1292
+ X?: number
1293
1293
  /**
1294
1294
  * 左上角y
1295
1295
  */
1296
- Y: number
1296
+ Y?: number
1297
1297
  /**
1298
1298
  * 宽度
1299
1299
  */
1300
- Width: number
1300
+ Width?: number
1301
1301
  /**
1302
1302
  * 高度
1303
1303
  */
1304
- Height: number
1304
+ Height?: number
1305
1305
  }
1306
1306
 
1307
1307
  /**
@@ -1568,30 +1568,57 @@ export interface EnterpriseLicenseOCRResponse {
1568
1568
  }
1569
1569
 
1570
1570
  /**
1571
- * 印章信息
1571
+ * RecognizeKoreanDrivingLicenseOCR返回参数结构体
1572
1572
  */
1573
- export interface SealInfo {
1573
+ export interface RecognizeKoreanDrivingLicenseOCRResponse {
1574
1574
  /**
1575
- * 印章主体内容
1575
+ * 身份证号码
1576
1576
  */
1577
- SealBody: string
1577
+ ID?: string
1578
1578
  /**
1579
- * 印章坐标
1579
+ * 驾照号码
1580
1580
  */
1581
- Location: Rect
1581
+ LicenseNumber?: string
1582
1582
  /**
1583
- * 印章其它文本内容
1583
+ * 居民登记号码
1584
1584
  */
1585
- OtherTexts: Array<string>
1585
+ Number?: string
1586
1586
  /**
1587
- * 印章类型,表示为:
1588
- 圆形印章:0
1589
- 椭圆形印章:1
1590
- 方形印章:2
1591
- 菱形印章:3
1592
- 三角形印章:4
1587
+ * 驾照类型
1593
1588
  */
1594
- SealShape: string
1589
+ Type?: string
1590
+ /**
1591
+ * 地址
1592
+ */
1593
+ Address?: string
1594
+ /**
1595
+ * 姓名
1596
+ */
1597
+ Name?: string
1598
+ /**
1599
+ * 换证时间
1600
+ */
1601
+ AptitudeTesDate?: string
1602
+ /**
1603
+ * 发证日期
1604
+ */
1605
+ DateOfIssue?: string
1606
+ /**
1607
+ * 人像截图Base64后的结果
1608
+ */
1609
+ Photo?: string
1610
+ /**
1611
+ * 性别
1612
+ */
1613
+ Sex?: string
1614
+ /**
1615
+ * 生日,格式为dd/mm/yyyy
1616
+ */
1617
+ Birthday?: string
1618
+ /**
1619
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1620
+ */
1621
+ RequestId?: string
1595
1622
  }
1596
1623
 
1597
1624
  /**
@@ -1626,6 +1653,31 @@ V2
1626
1653
  Scene?: string
1627
1654
  }
1628
1655
 
1656
+ /**
1657
+ * RecognizeKoreanDrivingLicenseOCR请求参数结构体
1658
+ */
1659
+ export interface RecognizeKoreanDrivingLicenseOCRRequest {
1660
+ /**
1661
+ * 图片的 Base64 值。
1662
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1663
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
1664
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1665
+ */
1666
+ ImageBase64?: string
1667
+ /**
1668
+ * 图片的 Url 地址。
1669
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1670
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
1671
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
1672
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1673
+ */
1674
+ ImageUrl?: string
1675
+ /**
1676
+ * 是否返回人像照片。
1677
+ */
1678
+ ReturnHeadImage?: boolean
1679
+ }
1680
+
1629
1681
  /**
1630
1682
  * 通用机打发票信息
1631
1683
  */
@@ -1634,15 +1686,15 @@ export interface InvoiceGeneralInfo {
1634
1686
  * 识别出的字段名称(关键字),支持以下字段识别(注:下划线表示一个字段):
1635
1687
  发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章、发票名称、<span style="text-decoration:underline">购买方地址、电话</span>、<span style="text-decoration:underline">销售方地址、电话</span>、购买方开户行及账号、销售方开户行及账号、经办人取票用户、经办人支付信息、经办人商户号、经办人订单号、<span style="text-decoration:underline">货物或应税劳务、服务名称</span>、数量、单价、税率、税额、金额、单位、规格型号、合计税额、合计金额、备注、收款人、复核、开票人、密码区、行业分类
1636
1688
  */
1637
- Name: string
1689
+ Name?: string
1638
1690
  /**
1639
1691
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
1640
1692
  */
1641
- Value: string
1693
+ Value?: string
1642
1694
  /**
1643
1695
  * 文本行在旋转纠正之后的图像中的像素坐标。
1644
1696
  */
1645
- Rect: Rect
1697
+ Rect?: Rect
1646
1698
  }
1647
1699
 
1648
1700
  /**
@@ -1653,17 +1705,17 @@ export interface TextVatInvoice {
1653
1705
  * 识别出的字段名称(关键字)。支持以下字段的识别:
1654
1706
  发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选、车牌号、类型、通行日期起、通行日期止、发票类型。
1655
1707
  */
1656
- Name: string
1708
+ Name?: string
1657
1709
  /**
1658
1710
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
1659
1711
  */
1660
- Value: string
1712
+ Value?: string
1661
1713
  /**
1662
1714
  * 字段在原图中的中的四点坐标。
1663
1715
  注意:此字段可能返回 null,表示取不到有效值。
1664
1716
  注意:此字段可能返回 null,表示取不到有效值。
1665
1717
  */
1666
- Polygon: Polygon
1718
+ Polygon?: Polygon
1667
1719
  }
1668
1720
 
1669
1721
  /**
@@ -1992,7 +2044,7 @@ export interface InvoiceDetectInfo {
1992
2044
  /**
1993
2045
  * 识别出的图片在混贴票据图片中的旋转角度。
1994
2046
  */
1995
- Angle: number
2047
+ Angle?: number
1996
2048
  /**
1997
2049
  * 识别出的图片所属的票据类型。
1998
2050
  -1:未知类型
@@ -2012,16 +2064,16 @@ export interface InvoiceDetectInfo {
2012
2064
  13:过路过桥费发票
2013
2065
  14:购物小票
2014
2066
  */
2015
- Type: number
2067
+ Type?: number
2016
2068
  /**
2017
2069
  * 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。
2018
2070
  */
2019
- Rect: Rect
2071
+ Rect?: Rect
2020
2072
  /**
2021
2073
  * 入参 ReturnImage 为 True 时返回 Base64 编码后的图片。
2022
2074
  注意:此字段可能返回 null,表示取不到有效值。
2023
2075
  */
2024
- Image: string
2076
+ Image?: string
2025
2077
  }
2026
2078
 
2027
2079
  /**
@@ -2264,15 +2316,15 @@ export interface OnlineTaxiItineraryInfo {
2264
2316
  * 识别出的字段名称(关键字),支持以下字段:
2265
2317
  发票代码、 机打代码、 发票号码、 发动机号码、 合格证号、 机打号码、 价税合计(小写)、 销货单位名称、 身份证号码/组织机构代码、 购买方名称、 销售方纳税人识别号、 购买方纳税人识别号、主管税务机关、 主管税务机关代码、 开票日期、 不含税价(小写)、 吨位、增值税税率或征收率、 车辆识别代号/车架号码、 增值税税额、 厂牌型号、 省、 市、 发票消费类型、 销售方电话、 销售方账号、 产地、 进口证明书号、 车辆类型、 机器编号、备注、开票人、限乘人数、商检单号、销售方地址、销售方开户银行、价税合计、发票类型。
2266
2318
  */
2267
- Name: string
2319
+ Name?: string
2268
2320
  /**
2269
2321
  * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
2270
2322
  */
2271
- Value: string
2323
+ Value?: string
2272
2324
  /**
2273
2325
  * 字段所在行,下标从0开始,非行字段或未能识别行号的返回-1
2274
2326
  */
2275
- Row: number
2327
+ Row?: number
2276
2328
  }
2277
2329
 
2278
2330
  /**
@@ -2400,11 +2452,11 @@ export interface FinanBillInfo {
2400
2452
  【银行承兑汇票】或【商业承兑汇票】
2401
2453
  出票日期、行号1、行号2、出票人全称、出票人账号、付款行全称、收款人全称、收款人账号、收款人开户行、出票金额大写、出票金额小写、汇票到期日、付款行行号、付款行地址。
2402
2454
  */
2403
- Name: string
2455
+ Name?: string
2404
2456
  /**
2405
2457
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2406
2458
  */
2407
- Value: string
2459
+ Value?: string
2408
2460
  }
2409
2461
 
2410
2462
  /**
@@ -2504,27 +2556,27 @@ export interface RecognizePhilippinesTinIDOCRResponse {
2504
2556
  /**
2505
2557
  * 人像照片Base64后的结果
2506
2558
  */
2507
- HeadPortrait: TextDetectionResult
2559
+ HeadPortrait?: TextDetectionResult
2508
2560
  /**
2509
2561
  * 编码
2510
2562
  */
2511
- LicenseNumber: TextDetectionResult
2563
+ LicenseNumber?: TextDetectionResult
2512
2564
  /**
2513
2565
  * 姓名
2514
2566
  */
2515
- FullName: TextDetectionResult
2567
+ FullName?: TextDetectionResult
2516
2568
  /**
2517
2569
  * 地址
2518
2570
  */
2519
- Address: TextDetectionResult
2571
+ Address?: TextDetectionResult
2520
2572
  /**
2521
2573
  * 生日
2522
2574
  */
2523
- Birthday: TextDetectionResult
2575
+ Birthday?: TextDetectionResult
2524
2576
  /**
2525
2577
  * 发证日期
2526
2578
  */
2527
- IssueDate: TextDetectionResult
2579
+ IssueDate?: TextDetectionResult
2528
2580
  /**
2529
2581
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2530
2582
  */
@@ -2539,15 +2591,15 @@ export interface TollInvoiceInfo {
2539
2591
  * 识别出的字段名称(关键字)。支持以下字段的识别:
2540
2592
  发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志。
2541
2593
  */
2542
- Name: string
2594
+ Name?: string
2543
2595
  /**
2544
2596
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2545
2597
  */
2546
- Value: string
2598
+ Value?: string
2547
2599
  /**
2548
2600
  * 文本行在旋转纠正之后的图像中的像素坐标。
2549
2601
  */
2550
- Rect: Rect
2602
+ Rect?: Rect
2551
2603
  }
2552
2604
 
2553
2605
  /**
@@ -2558,15 +2610,15 @@ export interface BankSlipInfo {
2558
2610
  * 识别出的字段名称(关键字),支持以下字段:
2559
2611
  付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
2560
2612
  */
2561
- Name: string
2613
+ Name?: string
2562
2614
  /**
2563
2615
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2564
2616
  */
2565
- Value: string
2617
+ Value?: string
2566
2618
  /**
2567
2619
  * 文本行在旋转纠正之后的图像中的像素坐标。
2568
2620
  */
2569
- Rect: Rect
2621
+ Rect?: Rect
2570
2622
  }
2571
2623
 
2572
2624
  /**
@@ -2577,11 +2629,11 @@ export interface SmartStructuralOCRResponse {
2577
2629
  * 图片旋转角度(角度制),文本的水平方向
2578
2630
  为 0;顺时针为正,逆时针为负
2579
2631
  */
2580
- Angle: number
2632
+ Angle?: number
2581
2633
  /**
2582
2634
  * 识别信息
2583
2635
  */
2584
- StructuralItems: Array<StructuralItem>
2636
+ StructuralItems?: Array<StructuralItem>
2585
2637
  /**
2586
2638
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2587
2639
  */
@@ -2632,15 +2684,15 @@ export interface BusInvoiceInfo {
2632
2684
  * 识别出的字段名称(关键字),支持以下字段:
2633
2685
  发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次。
2634
2686
  */
2635
- Name: string
2687
+ Name?: string
2636
2688
  /**
2637
2689
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2638
2690
  */
2639
- Value: string
2691
+ Value?: string
2640
2692
  /**
2641
2693
  * 文本行在旋转纠正之后的图像中的像素坐标。
2642
2694
  */
2643
- Rect: Rect
2695
+ Rect?: Rect
2644
2696
  }
2645
2697
 
2646
2698
  /**
@@ -4688,15 +4740,15 @@ export interface SingleInvoiceInfo {
4688
4740
  /**
4689
4741
  * 识别出的字段名称
4690
4742
  */
4691
- Name: string
4743
+ Name?: string
4692
4744
  /**
4693
4745
  * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
4694
4746
  */
4695
- Value: string
4747
+ Value?: string
4696
4748
  /**
4697
4749
  * 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。
4698
4750
  */
4699
- Row: number
4751
+ Row?: number
4700
4752
  }
4701
4753
 
4702
4754
  /**
@@ -4910,15 +4962,15 @@ export interface EduPaperOCRResponse {
4910
4962
  /**
4911
4963
  * 检测到的文本信息,具体内容请点击左侧链接。
4912
4964
  */
4913
- EduPaperInfos: Array<TextEduPaper>
4965
+ EduPaperInfos?: Array<TextEduPaper>
4914
4966
  /**
4915
4967
  * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。
4916
4968
  */
4917
- Angle: number
4969
+ Angle?: number
4918
4970
  /**
4919
4971
  * 结构化方式输出,具体内容请点击左侧链接。
4920
4972
  */
4921
- QuestionBlockInfos: Array<QuestionBlockObj>
4973
+ QuestionBlockInfos?: Array<QuestionBlockObj>
4922
4974
  /**
4923
4975
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4924
4976
  */
@@ -5671,24 +5723,41 @@ export interface CardWarnInfo {
5671
5723
  }
5672
5724
 
5673
5725
  /**
5674
- * VehicleRegCertOCR请求参数结构体
5726
+ * RecognizeKoreanIDCardOCR返回参数结构体
5675
5727
  */
5676
- export interface VehicleRegCertOCRRequest {
5728
+ export interface RecognizeKoreanIDCardOCRResponse {
5677
5729
  /**
5678
- * 图片的 Base64 值。
5679
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5680
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
5681
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5730
+ * 身份证号码
5682
5731
  */
5683
- ImageBase64?: string
5732
+ ID?: string
5684
5733
  /**
5685
- * 图片的 Url 地址。
5686
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5687
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
5688
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
5689
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5734
+ * 地址
5690
5735
  */
5691
- ImageUrl?: string
5736
+ Address?: string
5737
+ /**
5738
+ * 姓名
5739
+ */
5740
+ Name?: string
5741
+ /**
5742
+ * 发证日期
5743
+ */
5744
+ DateOfIssue?: string
5745
+ /**
5746
+ * 人像截图Base64后的结果
5747
+ */
5748
+ Photo?: string
5749
+ /**
5750
+ * 性别
5751
+ */
5752
+ Sex?: string
5753
+ /**
5754
+ * 生日,格式为dd/mm/yyyy
5755
+ */
5756
+ Birthday?: string
5757
+ /**
5758
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5759
+ */
5760
+ RequestId?: string
5692
5761
  }
5693
5762
 
5694
5763
  /**
@@ -5947,7 +6016,7 @@ export interface GeneralBasicOCRRequest {
5947
6016
  */
5948
6017
  ImageBase64?: string
5949
6018
  /**
5950
- * 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6019
+ * 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5951
6020
  */
5952
6021
  ImageUrl?: string
5953
6022
  /**
@@ -6756,15 +6825,15 @@ export interface ShipInvoiceInfo {
6756
6825
  * 识别出的字段名称(关键字),支持以下字段:
6757
6826
  发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
6758
6827
  */
6759
- Name: string
6828
+ Name?: string
6760
6829
  /**
6761
6830
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
6762
6831
  */
6763
- Value: string
6832
+ Value?: string
6764
6833
  /**
6765
6834
  * 文本行在旋转纠正之后的图像中的像素坐标。
6766
6835
  */
6767
- Rect: Rect
6836
+ Rect?: Rect
6768
6837
  }
6769
6838
 
6770
6839
  /**
@@ -6804,7 +6873,7 @@ export interface GeneralAccurateOCRRequest {
6804
6873
  ImageBase64?: string
6805
6874
  /**
6806
6875
  * 图片的 Url 地址。
6807
- 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
6876
+ 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。图片下载时间不超过 3 秒。
6808
6877
  图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6809
6878
  */
6810
6879
  ImageUrl?: string
@@ -6892,7 +6961,7 @@ export interface ReconstructDocumentRequest {
6892
6961
  */
6893
6962
  FileType: string
6894
6963
  /**
6895
- * 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 ImageUrlImageBase64 必须提供一个,如果都提供,只使用 ImageUrl
6964
+ * 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrlFileBase64 必须提供一个,如果都提供,只使用 FileUrl
6896
6965
  */
6897
6966
  FileBase64?: string
6898
6967
  /**
@@ -7167,11 +7236,11 @@ export interface FinanBillSliceInfo {
7167
7236
  * 识别出的字段名称(关键字),支持以下字段:
7168
7237
  大写金额、小写金额、账号、票号1、票号2、收款人、大写日期、同城交换号、地址-省份、地址-城市、付款行全称、支票密码、支票用途。
7169
7238
  */
7170
- Name: string
7239
+ Name?: string
7171
7240
  /**
7172
7241
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
7173
7242
  */
7174
- Value: string
7243
+ Value?: string
7175
7244
  }
7176
7245
 
7177
7246
  /**
@@ -7195,12 +7264,12 @@ export interface RideHailingDriverLicenseOCRRequest {
7195
7264
  */
7196
7265
  export interface Encryption {
7197
7266
  /**
7198
- * 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅[敏感数据加密指引](https://cloud.tencent.com/document/product/866/106048)文档。
7267
+ * 有加密需求的用户,接入传入kms的CiphertextBlob(Base64编码),关于数据加密可查阅[敏感数据加密指引](https://cloud.tencent.com/document/product/866/106048)文档。
7199
7268
  注意:此字段可能返回 null,表示取不到有效值。
7200
7269
  */
7201
7270
  CiphertextBlob: string
7202
7271
  /**
7203
- * 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
7272
+ * 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符,Base64编码)。
7204
7273
  注意:此字段可能返回 null,表示取不到有效值。
7205
7274
  */
7206
7275
  Iv: string
@@ -7600,11 +7669,11 @@ export interface Coord {
7600
7669
  /**
7601
7670
  * 横坐标
7602
7671
  */
7603
- X: number
7672
+ X?: number
7604
7673
  /**
7605
7674
  * 纵坐标
7606
7675
  */
7607
- Y: number
7676
+ Y?: number
7608
7677
  }
7609
7678
 
7610
7679
  /**
@@ -7650,15 +7719,15 @@ export interface DutyPaidProofInfo {
7650
7719
  * 识别出的字段名称(关键字),支持以下字段:
7651
7720
  税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
7652
7721
  */
7653
- Name: string
7722
+ Name?: string
7654
7723
  /**
7655
7724
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
7656
7725
  */
7657
- Value: string
7726
+ Value?: string
7658
7727
  /**
7659
7728
  * 文本行在旋转纠正之后的图像中的像素坐标。
7660
7729
  */
7661
- Rect: Rect
7730
+ Rect?: Rect
7662
7731
  }
7663
7732
 
7664
7733
  /**
@@ -7782,7 +7851,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
7782
7851
  */
7783
7852
  ReflectDetailInfos?: Array<ReflectDetailInfo>
7784
7853
  /**
7785
- * 加密后的数据
7854
+ * 加密后的数据(Base64编码)
7786
7855
  */
7787
7856
  EncryptedBody?: string
7788
7857
  /**
@@ -8116,7 +8185,7 @@ export interface LineInfo {
8116
8185
  */
8117
8186
  export interface RecognizeEncryptedIDCardOCRRequest {
8118
8187
  /**
8119
- * 请求体被加密后的密文,本接口只支持加密传输
8188
+ * 请求体被加密后的密文(Base64编码),本接口只支持加密传输
8120
8189
  */
8121
8190
  EncryptedBody: string
8122
8191
  /**
@@ -8771,19 +8840,19 @@ export interface Polygon {
8771
8840
  /**
8772
8841
  * 左上顶点坐标
8773
8842
  */
8774
- LeftTop: Coord
8843
+ LeftTop?: Coord
8775
8844
  /**
8776
8845
  * 右上顶点坐标
8777
8846
  */
8778
- RightTop: Coord
8847
+ RightTop?: Coord
8779
8848
  /**
8780
8849
  * 右下顶点坐标
8781
8850
  */
8782
- RightBottom: Coord
8851
+ RightBottom?: Coord
8783
8852
  /**
8784
8853
  * 左下顶点坐标
8785
8854
  */
8786
- LeftBottom: Coord
8855
+ LeftBottom?: Coord
8787
8856
  }
8788
8857
 
8789
8858
  /**
@@ -8907,7 +8976,7 @@ export interface InsuranceBillOCRResponse {
8907
8976
  /**
8908
8977
  * 保险单据识别结果,具体内容请点击左侧链接。
8909
8978
  */
8910
- InsuranceBillInfos: Array<InsuranceBillInfo>
8979
+ InsuranceBillInfos?: Array<InsuranceBillInfo>
8911
8980
  /**
8912
8981
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8913
8982
  */
@@ -10210,11 +10279,16 @@ export interface GeneralHandwritingOCRResponse {
10210
10279
  /**
10211
10280
  * 检测到的文本信息,具体内容请点击左侧链接。
10212
10281
  */
10213
- TextDetections: Array<TextGeneralHandwriting>
10282
+ TextDetections?: Array<TextGeneralHandwriting>
10214
10283
  /**
10215
10284
  * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
10285
+ * @deprecated
10216
10286
  */
10217
- Angel: number
10287
+ Angel?: number
10288
+ /**
10289
+ * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
10290
+ */
10291
+ Angle?: number
10218
10292
  /**
10219
10293
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10220
10294
  */
@@ -10312,6 +10386,27 @@ export interface TableOCRResponse {
10312
10386
  RequestId?: string
10313
10387
  }
10314
10388
 
10389
+ /**
10390
+ * VehicleRegCertOCR请求参数结构体
10391
+ */
10392
+ export interface VehicleRegCertOCRRequest {
10393
+ /**
10394
+ * 图片的 Base64 值。
10395
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10396
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10397
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10398
+ */
10399
+ ImageBase64?: string
10400
+ /**
10401
+ * 图片的 Url 地址。
10402
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10403
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10404
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10405
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10406
+ */
10407
+ ImageUrl?: string
10408
+ }
10409
+
10315
10410
  /**
10316
10411
  * 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
10317
10412
  */
@@ -10336,6 +10431,31 @@ export interface QuestionBlockObj {
10336
10431
  QuestionBboxCoord: Rect
10337
10432
  }
10338
10433
 
10434
+ /**
10435
+ * RecognizeKoreanIDCardOCR请求参数结构体
10436
+ */
10437
+ export interface RecognizeKoreanIDCardOCRRequest {
10438
+ /**
10439
+ * 图片的 Base64 值。
10440
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10441
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10442
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10443
+ */
10444
+ ImageBase64?: string
10445
+ /**
10446
+ * 图片的 Url 地址。
10447
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10448
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10449
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10450
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10451
+ */
10452
+ ImageUrl?: string
10453
+ /**
10454
+ * 是否返回人像照片。
10455
+ */
10456
+ ReturnHeadImage?: boolean
10457
+ }
10458
+
10339
10459
  /**
10340
10460
  * AdvertiseOCR返回参数结构体
10341
10461
  */
@@ -10385,15 +10505,15 @@ export interface VatRollInvoiceInfo {
10385
10505
  * 识别出的字段名称(关键字),支持以下字段:
10386
10506
  发票代码、合计金额(小写)、合计金额(大写)、开票日期、发票号码、购买方识别号、销售方识别号、校验码、销售方名称、购买方名称、发票消费类型、省、市、是否有公司印章、单价、金额、数量、服务类型、品名、种类。
10387
10507
  */
10388
- Name: string
10508
+ Name?: string
10389
10509
  /**
10390
10510
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
10391
10511
  */
10392
- Value: string
10512
+ Value?: string
10393
10513
  /**
10394
10514
  * 文本行在旋转纠正之后的图像中的像素坐标。
10395
10515
  */
10396
- Rect: Rect
10516
+ Rect?: Rect
10397
10517
  }
10398
10518
 
10399
10519
  /**
@@ -11019,33 +11139,33 @@ export interface BankCardOCRResponse {
11019
11139
  /**
11020
11140
  * 卡号
11021
11141
  */
11022
- CardNo: string
11142
+ CardNo?: string
11023
11143
  /**
11024
11144
  * 银行信息
11025
11145
  */
11026
- BankInfo: string
11146
+ BankInfo?: string
11027
11147
  /**
11028
11148
  * 有效期,格式如:07/2023
11029
11149
  */
11030
- ValidDate: string
11150
+ ValidDate?: string
11031
11151
  /**
11032
11152
  * 卡类型
11033
11153
  */
11034
- CardType: string
11154
+ CardType?: string
11035
11155
  /**
11036
11156
  * 卡名字
11037
11157
  */
11038
- CardName: string
11158
+ CardName?: string
11039
11159
  /**
11040
11160
  * 切片图片数据
11041
11161
  注意:此字段可能返回 null,表示取不到有效值。
11042
11162
  */
11043
- BorderCutImage: string
11163
+ BorderCutImage?: string
11044
11164
  /**
11045
11165
  * 卡号图片数据
11046
11166
  注意:此字段可能返回 null,表示取不到有效值。
11047
11167
  */
11048
- CardNoImage: string
11168
+ CardNoImage?: string
11049
11169
  /**
11050
11170
  * WarningCode 告警码列表和释义:
11051
11171
  -9110:银行卡日期无效;
@@ -11056,18 +11176,45 @@ export interface BankCardOCRResponse {
11056
11176
  (告警码可以同时存在多个)
11057
11177
  注意:此字段可能返回 null,表示取不到有效值。
11058
11178
  */
11059
- WarningCode: Array<number | bigint>
11179
+ WarningCode?: Array<number | bigint>
11060
11180
  /**
11061
11181
  * 图片质量分数,请求EnableQualityValue时返回(取值范围:0-100,分数越低越模糊,建议阈值≥50)。
11062
11182
  注意:此字段可能返回 null,表示取不到有效值。
11063
11183
  */
11064
- QualityValue: number
11184
+ QualityValue?: number
11065
11185
  /**
11066
11186
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11067
11187
  */
11068
11188
  RequestId?: string
11069
11189
  }
11070
11190
 
11191
+ /**
11192
+ * 印章信息
11193
+ */
11194
+ export interface SealInfo {
11195
+ /**
11196
+ * 印章主体内容
11197
+ */
11198
+ SealBody: string
11199
+ /**
11200
+ * 印章坐标
11201
+ */
11202
+ Location: Rect
11203
+ /**
11204
+ * 印章其它文本内容
11205
+ */
11206
+ OtherTexts: Array<string>
11207
+ /**
11208
+ * 印章类型,表示为:
11209
+ 圆形印章:0
11210
+ 椭圆形印章:1
11211
+ 方形印章:2
11212
+ 菱形印章:3
11213
+ 三角形印章:4
11214
+ */
11215
+ SealShape: string
11216
+ }
11217
+
11071
11218
  /**
11072
11219
  * BusinessCardOCR请求参数结构体
11073
11220
  */
@@ -11108,51 +11255,51 @@ export interface RecognizePhilippinesDrivingLicenseOCRResponse {
11108
11255
  /**
11109
11256
  * 人像照片Base64后的结果
11110
11257
  */
11111
- HeadPortrait: TextDetectionResult
11258
+ HeadPortrait?: TextDetectionResult
11112
11259
  /**
11113
11260
  * 姓名
11114
11261
  */
11115
- Name: TextDetectionResult
11262
+ Name?: TextDetectionResult
11116
11263
  /**
11117
11264
  * 姓氏
11118
11265
  */
11119
- LastName: TextDetectionResult
11266
+ LastName?: TextDetectionResult
11120
11267
  /**
11121
11268
  * 首姓名
11122
11269
  */
11123
- FirstName: TextDetectionResult
11270
+ FirstName?: TextDetectionResult
11124
11271
  /**
11125
11272
  * 中间姓名
11126
11273
  */
11127
- MiddleName: TextDetectionResult
11274
+ MiddleName?: TextDetectionResult
11128
11275
  /**
11129
11276
  * 国籍
11130
11277
  */
11131
- Nationality: TextDetectionResult
11278
+ Nationality?: TextDetectionResult
11132
11279
  /**
11133
11280
  * 性别
11134
11281
  */
11135
- Sex: TextDetectionResult
11282
+ Sex?: TextDetectionResult
11136
11283
  /**
11137
11284
  * 地址
11138
11285
  */
11139
- Address: TextDetectionResult
11286
+ Address?: TextDetectionResult
11140
11287
  /**
11141
11288
  * 证号
11142
11289
  */
11143
- LicenseNo: TextDetectionResult
11290
+ LicenseNo?: TextDetectionResult
11144
11291
  /**
11145
11292
  * 有效期
11146
11293
  */
11147
- ExpiresDate: TextDetectionResult
11294
+ ExpiresDate?: TextDetectionResult
11148
11295
  /**
11149
11296
  * 机构代码
11150
11297
  */
11151
- AgencyCode: TextDetectionResult
11298
+ AgencyCode?: TextDetectionResult
11152
11299
  /**
11153
11300
  * 出生日期
11154
11301
  */
11155
- Birthday: TextDetectionResult
11302
+ Birthday?: TextDetectionResult
11156
11303
  /**
11157
11304
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11158
11305
  */