tencentcloud-sdk-nodejs-ocr 4.0.971 → 4.0.973

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.
@@ -409,11 +409,11 @@ export interface TextDetectionResult {
409
409
  /**
410
410
  * 识别出的文本行内容
411
411
  */
412
- Value: string;
412
+ Value?: string;
413
413
  /**
414
414
  * 坐标,以四个顶点坐标表示
415
415
  */
416
- Polygon: Array<Coord>;
416
+ Polygon?: Array<Coord>;
417
417
  }
418
418
  /**
419
419
  * 混贴票据单张发票识别信息
@@ -1503,30 +1503,57 @@ export interface EnterpriseLicenseOCRResponse {
1503
1503
  RequestId?: string;
1504
1504
  }
1505
1505
  /**
1506
- * 印章信息
1506
+ * RecognizeKoreanDrivingLicenseOCR返回参数结构体
1507
1507
  */
1508
- export interface SealInfo {
1508
+ export interface RecognizeKoreanDrivingLicenseOCRResponse {
1509
1509
  /**
1510
- * 印章主体内容
1510
+ * 身份证号码
1511
1511
  */
1512
- SealBody: string;
1512
+ ID?: string;
1513
1513
  /**
1514
- * 印章坐标
1514
+ * 驾照号码
1515
1515
  */
1516
- Location: Rect;
1516
+ LicenseNumber?: string;
1517
1517
  /**
1518
- * 印章其它文本内容
1518
+ * 居民登记号码
1519
1519
  */
1520
- OtherTexts: Array<string>;
1520
+ Number?: string;
1521
1521
  /**
1522
- * 印章类型,表示为:
1523
- 圆形印章:0
1524
- 椭圆形印章:1
1525
- 方形印章:2
1526
- 菱形印章:3
1527
- 三角形印章:4
1522
+ * 驾照类型
1528
1523
  */
1529
- SealShape: string;
1524
+ Type?: string;
1525
+ /**
1526
+ * 地址
1527
+ */
1528
+ Address?: string;
1529
+ /**
1530
+ * 姓名
1531
+ */
1532
+ Name?: string;
1533
+ /**
1534
+ * 换证时间
1535
+ */
1536
+ AptitudeTesDate?: string;
1537
+ /**
1538
+ * 发证日期
1539
+ */
1540
+ DateOfIssue?: string;
1541
+ /**
1542
+ * 人像截图Base64后的结果
1543
+ */
1544
+ Photo?: string;
1545
+ /**
1546
+ * 性别
1547
+ */
1548
+ Sex?: string;
1549
+ /**
1550
+ * 生日,格式为dd/mm/yyyy
1551
+ */
1552
+ Birthday?: string;
1553
+ /**
1554
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1555
+ */
1556
+ RequestId?: string;
1530
1557
  }
1531
1558
  /**
1532
1559
  * RecognizeIndonesiaIDCardOCR请求参数结构体
@@ -1559,6 +1586,30 @@ export interface RecognizeIndonesiaIDCardOCRRequest {
1559
1586
  */
1560
1587
  Scene?: string;
1561
1588
  }
1589
+ /**
1590
+ * RecognizeKoreanDrivingLicenseOCR请求参数结构体
1591
+ */
1592
+ export interface RecognizeKoreanDrivingLicenseOCRRequest {
1593
+ /**
1594
+ * 图片的 Base64 值。
1595
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1596
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
1597
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1598
+ */
1599
+ ImageBase64?: string;
1600
+ /**
1601
+ * 图片的 Url 地址。
1602
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1603
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
1604
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
1605
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1606
+ */
1607
+ ImageUrl?: string;
1608
+ /**
1609
+ * 是否返回人像照片。
1610
+ */
1611
+ ReturnHeadImage?: boolean;
1612
+ }
1562
1613
  /**
1563
1614
  * 通用机打发票信息
1564
1615
  */
@@ -2410,27 +2461,27 @@ export interface RecognizePhilippinesTinIDOCRResponse {
2410
2461
  /**
2411
2462
  * 人像照片Base64后的结果
2412
2463
  */
2413
- HeadPortrait: TextDetectionResult;
2464
+ HeadPortrait?: TextDetectionResult;
2414
2465
  /**
2415
2466
  * 编码
2416
2467
  */
2417
- LicenseNumber: TextDetectionResult;
2468
+ LicenseNumber?: TextDetectionResult;
2418
2469
  /**
2419
2470
  * 姓名
2420
2471
  */
2421
- FullName: TextDetectionResult;
2472
+ FullName?: TextDetectionResult;
2422
2473
  /**
2423
2474
  * 地址
2424
2475
  */
2425
- Address: TextDetectionResult;
2476
+ Address?: TextDetectionResult;
2426
2477
  /**
2427
2478
  * 生日
2428
2479
  */
2429
- Birthday: TextDetectionResult;
2480
+ Birthday?: TextDetectionResult;
2430
2481
  /**
2431
2482
  * 发证日期
2432
2483
  */
2433
- IssueDate: TextDetectionResult;
2484
+ IssueDate?: TextDetectionResult;
2434
2485
  /**
2435
2486
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2436
2487
  */
@@ -5503,24 +5554,41 @@ export interface CardWarnInfo {
5503
5554
  PSCheck?: number;
5504
5555
  }
5505
5556
  /**
5506
- * VehicleRegCertOCR请求参数结构体
5557
+ * RecognizeKoreanIDCardOCR返回参数结构体
5507
5558
  */
5508
- export interface VehicleRegCertOCRRequest {
5559
+ export interface RecognizeKoreanIDCardOCRResponse {
5509
5560
  /**
5510
- * 图片的 Base64 值。
5511
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5512
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
5513
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5561
+ * 身份证号码
5514
5562
  */
5515
- ImageBase64?: string;
5563
+ ID?: string;
5516
5564
  /**
5517
- * 图片的 Url 地址。
5518
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5519
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
5520
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
5521
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5565
+ * 地址
5522
5566
  */
5523
- ImageUrl?: string;
5567
+ Address?: string;
5568
+ /**
5569
+ * 姓名
5570
+ */
5571
+ Name?: string;
5572
+ /**
5573
+ * 发证日期
5574
+ */
5575
+ DateOfIssue?: string;
5576
+ /**
5577
+ * 人像截图Base64后的结果
5578
+ */
5579
+ Photo?: string;
5580
+ /**
5581
+ * 性别
5582
+ */
5583
+ Sex?: string;
5584
+ /**
5585
+ * 生日,格式为dd/mm/yyyy
5586
+ */
5587
+ Birthday?: string;
5588
+ /**
5589
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5590
+ */
5591
+ RequestId?: string;
5524
5592
  }
5525
5593
  /**
5526
5594
  * RecognizeTravelCardOCR返回参数结构体
@@ -6695,7 +6763,7 @@ export interface ReconstructDocumentRequest {
6695
6763
  */
6696
6764
  FileType: string;
6697
6765
  /**
6698
- * 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 ImageUrlImageBase64 必须提供一个,如果都提供,只使用 ImageUrl
6766
+ * 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrlFileBase64 必须提供一个,如果都提供,只使用 FileUrl
6699
6767
  */
6700
6768
  FileBase64?: string;
6701
6769
  /**
@@ -6988,12 +7056,12 @@ export interface RideHailingDriverLicenseOCRRequest {
6988
7056
  */
6989
7057
  export interface Encryption {
6990
7058
  /**
6991
- * 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅[敏感数据加密指引](https://cloud.tencent.com/document/product/866/106048)文档。
7059
+ * 有加密需求的用户,接入传入kms的CiphertextBlob(Base64编码),关于数据加密可查阅[敏感数据加密指引](https://cloud.tencent.com/document/product/866/106048)文档。
6992
7060
  注意:此字段可能返回 null,表示取不到有效值。
6993
7061
  */
6994
7062
  CiphertextBlob: string;
6995
7063
  /**
6996
- * 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
7064
+ * 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符,Base64编码)。
6997
7065
  注意:此字段可能返回 null,表示取不到有效值。
6998
7066
  */
6999
7067
  Iv: string;
@@ -7383,11 +7451,11 @@ export interface Coord {
7383
7451
  /**
7384
7452
  * 横坐标
7385
7453
  */
7386
- X: number;
7454
+ X?: number;
7387
7455
  /**
7388
7456
  * 纵坐标
7389
7457
  */
7390
- Y: number;
7458
+ Y?: number;
7391
7459
  }
7392
7460
  /**
7393
7461
  * SealOCR返回参数结构体
@@ -7559,7 +7627,7 @@ export interface RecognizeEncryptedIDCardOCRResponse {
7559
7627
  */
7560
7628
  ReflectDetailInfos?: Array<ReflectDetailInfo>;
7561
7629
  /**
7562
- * 加密后的数据
7630
+ * 加密后的数据(Base64编码)
7563
7631
  */
7564
7632
  EncryptedBody?: string;
7565
7633
  /**
@@ -7880,7 +7948,7 @@ export interface LineInfo {
7880
7948
  */
7881
7949
  export interface RecognizeEncryptedIDCardOCRRequest {
7882
7950
  /**
7883
- * 请求体被加密后的密文,本接口只支持加密传输
7951
+ * 请求体被加密后的密文(Base64编码),本接口只支持加密传输
7884
7952
  */
7885
7953
  EncryptedBody: string;
7886
7954
  /**
@@ -9921,11 +9989,16 @@ export interface GeneralHandwritingOCRResponse {
9921
9989
  /**
9922
9990
  * 检测到的文本信息,具体内容请点击左侧链接。
9923
9991
  */
9924
- TextDetections: Array<TextGeneralHandwriting>;
9992
+ TextDetections?: Array<TextGeneralHandwriting>;
9925
9993
  /**
9926
9994
  * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
9995
+ * @deprecated
9927
9996
  */
9928
- Angel: number;
9997
+ Angel?: number;
9998
+ /**
9999
+ * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
10000
+ */
10001
+ Angle?: number;
9929
10002
  /**
9930
10003
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9931
10004
  */
@@ -10019,6 +10092,26 @@ export interface TableOCRResponse {
10019
10092
  */
10020
10093
  RequestId?: string;
10021
10094
  }
10095
+ /**
10096
+ * VehicleRegCertOCR请求参数结构体
10097
+ */
10098
+ export interface VehicleRegCertOCRRequest {
10099
+ /**
10100
+ * 图片的 Base64 值。
10101
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10102
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10103
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10104
+ */
10105
+ ImageBase64?: string;
10106
+ /**
10107
+ * 图片的 Url 地址。
10108
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10109
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10110
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10111
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10112
+ */
10113
+ ImageUrl?: string;
10114
+ }
10022
10115
  /**
10023
10116
  * 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
10024
10117
  */
@@ -10041,6 +10134,30 @@ export interface QuestionBlockObj {
10041
10134
  */
10042
10135
  QuestionBboxCoord: Rect;
10043
10136
  }
10137
+ /**
10138
+ * RecognizeKoreanIDCardOCR请求参数结构体
10139
+ */
10140
+ export interface RecognizeKoreanIDCardOCRRequest {
10141
+ /**
10142
+ * 图片的 Base64 值。
10143
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10144
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10145
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10146
+ */
10147
+ ImageBase64?: string;
10148
+ /**
10149
+ * 图片的 Url 地址。
10150
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10151
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10152
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10153
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10154
+ */
10155
+ ImageUrl?: string;
10156
+ /**
10157
+ * 是否返回人像照片。
10158
+ */
10159
+ ReturnHeadImage?: boolean;
10160
+ }
10044
10161
  /**
10045
10162
  * AdvertiseOCR返回参数结构体
10046
10163
  */
@@ -10704,33 +10821,33 @@ export interface BankCardOCRResponse {
10704
10821
  /**
10705
10822
  * 卡号
10706
10823
  */
10707
- CardNo: string;
10824
+ CardNo?: string;
10708
10825
  /**
10709
10826
  * 银行信息
10710
10827
  */
10711
- BankInfo: string;
10828
+ BankInfo?: string;
10712
10829
  /**
10713
10830
  * 有效期,格式如:07/2023
10714
10831
  */
10715
- ValidDate: string;
10832
+ ValidDate?: string;
10716
10833
  /**
10717
10834
  * 卡类型
10718
10835
  */
10719
- CardType: string;
10836
+ CardType?: string;
10720
10837
  /**
10721
10838
  * 卡名字
10722
10839
  */
10723
- CardName: string;
10840
+ CardName?: string;
10724
10841
  /**
10725
10842
  * 切片图片数据
10726
10843
  注意:此字段可能返回 null,表示取不到有效值。
10727
10844
  */
10728
- BorderCutImage: string;
10845
+ BorderCutImage?: string;
10729
10846
  /**
10730
10847
  * 卡号图片数据
10731
10848
  注意:此字段可能返回 null,表示取不到有效值。
10732
10849
  */
10733
- CardNoImage: string;
10850
+ CardNoImage?: string;
10734
10851
  /**
10735
10852
  * WarningCode 告警码列表和释义:
10736
10853
  -9110:银行卡日期无效;
@@ -10741,17 +10858,43 @@ export interface BankCardOCRResponse {
10741
10858
  (告警码可以同时存在多个)
10742
10859
  注意:此字段可能返回 null,表示取不到有效值。
10743
10860
  */
10744
- WarningCode: Array<number | bigint>;
10861
+ WarningCode?: Array<number | bigint>;
10745
10862
  /**
10746
10863
  * 图片质量分数,请求EnableQualityValue时返回(取值范围:0-100,分数越低越模糊,建议阈值≥50)。
10747
10864
  注意:此字段可能返回 null,表示取不到有效值。
10748
10865
  */
10749
- QualityValue: number;
10866
+ QualityValue?: number;
10750
10867
  /**
10751
10868
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10752
10869
  */
10753
10870
  RequestId?: string;
10754
10871
  }
10872
+ /**
10873
+ * 印章信息
10874
+ */
10875
+ export interface SealInfo {
10876
+ /**
10877
+ * 印章主体内容
10878
+ */
10879
+ SealBody: string;
10880
+ /**
10881
+ * 印章坐标
10882
+ */
10883
+ Location: Rect;
10884
+ /**
10885
+ * 印章其它文本内容
10886
+ */
10887
+ OtherTexts: Array<string>;
10888
+ /**
10889
+ * 印章类型,表示为:
10890
+ 圆形印章:0
10891
+ 椭圆形印章:1
10892
+ 方形印章:2
10893
+ 菱形印章:3
10894
+ 三角形印章:4
10895
+ */
10896
+ SealShape: string;
10897
+ }
10755
10898
  /**
10756
10899
  * BusinessCardOCR请求参数结构体
10757
10900
  */
@@ -10791,51 +10934,51 @@ export interface RecognizePhilippinesDrivingLicenseOCRResponse {
10791
10934
  /**
10792
10935
  * 人像照片Base64后的结果
10793
10936
  */
10794
- HeadPortrait: TextDetectionResult;
10937
+ HeadPortrait?: TextDetectionResult;
10795
10938
  /**
10796
10939
  * 姓名
10797
10940
  */
10798
- Name: TextDetectionResult;
10941
+ Name?: TextDetectionResult;
10799
10942
  /**
10800
10943
  * 姓氏
10801
10944
  */
10802
- LastName: TextDetectionResult;
10945
+ LastName?: TextDetectionResult;
10803
10946
  /**
10804
10947
  * 首姓名
10805
10948
  */
10806
- FirstName: TextDetectionResult;
10949
+ FirstName?: TextDetectionResult;
10807
10950
  /**
10808
10951
  * 中间姓名
10809
10952
  */
10810
- MiddleName: TextDetectionResult;
10953
+ MiddleName?: TextDetectionResult;
10811
10954
  /**
10812
10955
  * 国籍
10813
10956
  */
10814
- Nationality: TextDetectionResult;
10957
+ Nationality?: TextDetectionResult;
10815
10958
  /**
10816
10959
  * 性别
10817
10960
  */
10818
- Sex: TextDetectionResult;
10961
+ Sex?: TextDetectionResult;
10819
10962
  /**
10820
10963
  * 地址
10821
10964
  */
10822
- Address: TextDetectionResult;
10965
+ Address?: TextDetectionResult;
10823
10966
  /**
10824
10967
  * 证号
10825
10968
  */
10826
- LicenseNo: TextDetectionResult;
10969
+ LicenseNo?: TextDetectionResult;
10827
10970
  /**
10828
10971
  * 有效期
10829
10972
  */
10830
- ExpiresDate: TextDetectionResult;
10973
+ ExpiresDate?: TextDetectionResult;
10831
10974
  /**
10832
10975
  * 机构代码
10833
10976
  */
10834
- AgencyCode: TextDetectionResult;
10977
+ AgencyCode?: TextDetectionResult;
10835
10978
  /**
10836
10979
  * 出生日期
10837
10980
  */
10838
- Birthday: TextDetectionResult;
10981
+ Birthday?: TextDetectionResult;
10839
10982
  /**
10840
10983
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10841
10984
  */