tencentcloud-sdk-nodejs-ocr 4.1.326 → 4.1.327

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.326",
3
+ "version": "4.1.327",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -7,7 +7,9 @@ import { TableOCRRequest, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOC
7
7
  export declare class Client extends TencentCloudCommon.AbstractClient {
8
8
  constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
9
  /**
10
- * 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
10
+ * 产品规划
11
+
12
+ 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
11
13
 
12
14
  默认接口请求频率限制:10次/秒。
13
15
  */
@@ -502,7 +504,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
502
504
  /**
503
505
  * 本接口支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),返回解析后的结果文件下载地址(zip压缩包,包含markdown、json和图片)。
504
506
 
505
- 支持的文件大小:PDF/Word/PPT支持150M且300页以内、Excel支持10M以内、TXT支持10M以内、图片文件支持70M以内。
507
+ 支持的文件大小:PDF/Word/PPT支持150M且300页以内、Excel支持10M以内、TXT支持10M以内、图片文件支持30M以内。
506
508
 
507
509
  默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
508
510
  */
@@ -679,7 +681,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
679
681
  /**
680
682
  * 本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
681
683
 
682
- 查询任务接口文档地址:https://cloud.tencent.com/document/product/1024/953219
684
+ 查询任务接口文档地址:https://cloud.tencent.com/document/product/866/139313
683
685
 
684
686
  默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
685
687
  */
@@ -706,7 +708,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
706
708
  /**
707
709
  * 用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
708
710
 
709
- 创建任务接口文档地址:https://cloud.tencent.com/document/product/1024/953218
711
+ 创建任务接口文档地址:https://cloud.tencent.com/document/product/866/139312
710
712
 
711
713
  默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
712
714
  */
@@ -29,7 +29,9 @@ class Client extends TencentCloudCommon.AbstractClient {
29
29
  super("ocr.tencentcloudapi.com", "2018-11-19", clientConfig);
30
30
  }
31
31
  /**
32
- * 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
32
+ * 产品规划
33
+
34
+ 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
33
35
 
34
36
  默认接口请求频率限制:10次/秒。
35
37
  */
@@ -634,7 +636,7 @@ class Client extends TencentCloudCommon.AbstractClient {
634
636
  /**
635
637
  * 本接口支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),返回解析后的结果文件下载地址(zip压缩包,包含markdown、json和图片)。
636
638
 
637
- 支持的文件大小:PDF/Word/PPT支持150M且300页以内、Excel支持10M以内、TXT支持10M以内、图片文件支持70M以内。
639
+ 支持的文件大小:PDF/Word/PPT支持150M且300页以内、Excel支持10M以内、TXT支持10M以内、图片文件支持30M以内。
638
640
 
639
641
  默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
640
642
  */
@@ -849,7 +851,7 @@ class Client extends TencentCloudCommon.AbstractClient {
849
851
  /**
850
852
  * 本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
851
853
 
852
- 查询任务接口文档地址:https://cloud.tencent.com/document/product/1024/953219
854
+ 查询任务接口文档地址:https://cloud.tencent.com/document/product/866/139313
853
855
 
854
856
  默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
855
857
  */
@@ -884,7 +886,7 @@ class Client extends TencentCloudCommon.AbstractClient {
884
886
  /**
885
887
  * 用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
886
888
 
887
- 创建任务接口文档地址:https://cloud.tencent.com/document/product/1024/953218
889
+ 创建任务接口文档地址:https://cloud.tencent.com/document/product/866/139312
888
890
 
889
891
  默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
890
892
  */
@@ -2553,34 +2553,23 @@ export interface ArithmeticOCRResponse {
2553
2553
  */
2554
2554
  export interface RecognizeGeneralCardWarnRequest {
2555
2555
  /**
2556
- * 图片链接
2556
+ * <p>图片链接</p>
2557
2557
  */
2558
2558
  ImageUrl?: string;
2559
2559
  /**
2560
- * 图片base64
2560
+ * <p>图片base64</p>
2561
2561
  */
2562
2562
  ImageBase64?: string;
2563
2563
  /**
2564
- * 卡证类型参数,包含以下范围:
2565
- General:通用卡证
2566
- IDCard:身份证
2567
- Passport:护照
2568
- BankCard:银行卡
2569
- VehicleLicense:行驶证
2570
- DriverLicense:驾驶证
2571
- BizLicense:营业执照
2572
- HmtResidentPermit:港澳台居住证
2573
- ForeignPermanentResident:外国人永居证
2574
- MainlandPermit:港澳台来往内地通行证
2575
- SocialSecurityCard:社保卡
2564
+ * <p>卡证类型参数,选填,不填则默认为General,枚举值:<br>(如输入图片的卡证类型明确,建议填入,可降低请求耗时)</p><p>General:系统自动分类/其他类型<br>IDCard:身份证<br>Passport:护照<br>BankCard:银行卡<br>VehicleLicense:行驶证<br>DriverLicense:驾驶证<br>BizLicense:营业执照<br>HmtResidentPermit:港澳台居住证<br>ForeignPermanentResident:外国人永居证<br>MainlandPermit:港澳台来往内地通行证<br>SocialSecurityCard:社保卡</p>
2576
2565
  */
2577
2566
  CardType?: string;
2578
2567
  /**
2579
- * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
2568
+ * <p>是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。</p>
2580
2569
  */
2581
2570
  IsPdf?: boolean;
2582
2571
  /**
2583
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
2572
+ * <p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。</p>
2584
2573
  */
2585
2574
  PdfPageNumber?: number;
2586
2575
  }
@@ -2768,30 +2757,23 @@ export interface GeneralHandwritingOCRRequest {
2768
2757
  */
2769
2758
  export interface BizLicenseOCRRequest {
2770
2759
  /**
2771
- * 图片的 Base64 值。
2772
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
2773
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
2774
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
2760
+ * <p>图片的 Base64 值。<br>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。<br>支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。<br>图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
2775
2761
  */
2776
2762
  ImageBase64?: string;
2777
2763
  /**
2778
- * 图片的 Url 地址。
2779
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
2780
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
2781
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
2782
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
2764
+ * <p>图片的 Url 地址。<br>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。<br>支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。<br>图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。<br>非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
2783
2765
  */
2784
2766
  ImageUrl?: string;
2785
2767
  /**
2786
- * 是否返回告警码,默认为false
2768
+ * <p>是否返回告警码,默认为false</p>
2787
2769
  */
2788
2770
  EnableCopyWarn?: boolean;
2789
2771
  /**
2790
- * 是否返回自动拼接的有效期,默认为true
2772
+ * <p>是否返回自动拼接的有效期,默认为true</p>
2791
2773
  */
2792
2774
  EnablePeriodComplete?: boolean;
2793
2775
  /**
2794
- * 是否支持营业类证件识别(包括营业执照和非营业执照的其他证件),默认为false
2776
+ * <p>是否支持营业类证件识别(包括营业执照和非营业执照的其他证件),默认为false</p>
2795
2777
  */
2796
2778
  EnableBusinessCertificate?: boolean;
2797
2779
  }
@@ -7200,62 +7182,51 @@ export interface GetOCRTokenRequest {
7200
7182
  */
7201
7183
  export interface RecognizeGeneralCardWarnResponse {
7202
7184
  /**
7203
- * 卡证类型参数,包含以下范围:
7204
- General:通用卡证
7205
- IDCard:身份证
7206
- Passport:护照
7207
- BankCard:银行卡
7208
- VehicleLicense:行驶证
7209
- DriverLicense:驾驶证
7210
- BizLicense:营业执照
7211
- HmtResidentPermit:港澳台居住证
7212
- ForeignPermanentResident:外国人永居证
7213
- MainlandPermit:港澳台来往内地通行证
7214
- SocialSecurityCard:社保卡
7185
+ * <p>卡证类型参数,枚举值:<br>(如入参CardType未填或填入General,返回自动分类的卡证类型,未能分类的其他类型返回General;如入参CardType填入General以外的值,则不进行自动分类、返回相同的值)</p><p>General:其他类型<br>IDCard:身份证<br>Passport:护照<br>BankCard:银行卡<br>VehicleLicense:行驶证<br>DriverLicense:驾驶证<br>BizLicense:营业执照<br>HmtResidentPermit:港澳台居住证<br>ForeignPermanentResident:外国人永居证<br>MainlandPermit:港澳台来往内地通行证<br>SocialSecurityCard:社保卡</p>
7215
7186
  */
7216
7187
  CardType?: string;
7217
7188
  /**
7218
- * 模糊信息
7189
+ * <p>模糊信息</p>
7219
7190
  */
7220
7191
  Blur?: GeneralCardWarnInfo;
7221
7192
  /**
7222
- * 边框不完整信息
7193
+ * <p>边框不完整信息</p>
7223
7194
  */
7224
7195
  BorderIncomplete?: GeneralCardWarnInfo;
7225
7196
  /**
7226
- * 复印件信息
7197
+ * <p>复印件信息</p>
7227
7198
  */
7228
7199
  Copy?: GeneralCardWarnInfo;
7229
7200
  /**
7230
- * ps篡改信息
7201
+ * <p>ps篡改信息</p>
7231
7202
  */
7232
7203
  Ps?: GeneralCardWarnInfo;
7233
7204
  /**
7234
- * 反光信息
7205
+ * <p>反光信息</p>
7235
7206
  */
7236
7207
  Reflection?: GeneralCardWarnInfo;
7237
7208
  /**
7238
- * 翻拍件信息
7209
+ * <p>翻拍件信息</p>
7239
7210
  */
7240
7211
  Reprint?: GeneralCardWarnInfo;
7241
7212
  /**
7242
- * 是否截图
7213
+ * <p>是否截图</p>
7243
7214
  */
7244
7215
  Screenshot?: GeneralCardWarnInfo;
7245
7216
  /**
7246
- * 是否遮挡
7217
+ * <p>是否遮挡</p>
7247
7218
  */
7248
7219
  Cover?: GeneralCardWarnInfo;
7249
7220
  /**
7250
- * 是否重叠
7221
+ * <p>是否重叠</p>
7251
7222
  */
7252
7223
  Overlap?: GeneralCardWarnInfo;
7253
7224
  /**
7254
- * 是否水印
7225
+ * <p>是否水印</p>
7255
7226
  */
7256
7227
  Watermark?: GeneralCardWarnInfo;
7257
7228
  /**
7258
- * 是否电子证照(目前仅支持电子身份证、电子营业执照识别
7229
+ * <p>是否电子证照(目前仅支持电子身份证、电子营业执照识别</p>
7259
7230
  */
7260
7231
  Electron?: GeneralCardWarnInfo;
7261
7232
  /**
@@ -10857,105 +10828,99 @@ export interface DescribeQuestionSplitJobResponse {
10857
10828
  */
10858
10829
  export interface BizLicenseOCRResponse {
10859
10830
  /**
10860
- * 统一社会信用代码(三合一之前为注册号)
10831
+ * <p>统一社会信用代码(三合一之前为注册号)</p>
10861
10832
  */
10862
10833
  RegNum?: string;
10863
10834
  /**
10864
- * 公司名称
10835
+ * <p>公司名称</p>
10865
10836
  */
10866
10837
  Name?: string;
10867
10838
  /**
10868
- * 注册资本
10839
+ * <p>注册资本</p>
10869
10840
  */
10870
10841
  Capital?: string;
10871
10842
  /**
10872
- * 法定代表人
10843
+ * <p>法定代表人</p>
10873
10844
  */
10874
10845
  Person?: string;
10875
10846
  /**
10876
- * 地址
10847
+ * <p>地址</p>
10877
10848
  */
10878
10849
  Address?: string;
10879
10850
  /**
10880
- * 经营范围
10851
+ * <p>经营范围</p>
10881
10852
  */
10882
10853
  Business?: string;
10883
10854
  /**
10884
- * 主体类型
10855
+ * <p>主体类型</p>
10885
10856
  */
10886
10857
  Type?: string;
10887
10858
  /**
10888
- * 营业期限
10859
+ * <p>营业期限</p>
10889
10860
  */
10890
10861
  Period?: string;
10891
10862
  /**
10892
- * 组成形式
10863
+ * <p>组成形式</p>
10893
10864
  */
10894
10865
  ComposingForm?: string;
10895
10866
  /**
10896
- * 成立日期
10867
+ * <p>成立日期</p>
10897
10868
  */
10898
10869
  SetDate?: string;
10899
10870
  /**
10900
- * Code 告警码列表和释义:
10901
- -9102 黑白复印件告警
10902
- -9104 翻拍件告警
10871
+ * <p>Code 告警码列表和释义:<br>-9102 黑白复印件告警<br>-9104 翻拍件告警<br>-9108 经营范围识别异常告警(由于文字过小、模糊、反光、遮挡或明显倾斜等情况导致未能正常识别)</p>
10903
10872
  */
10904
10873
  RecognizeWarnCode?: Array<number | bigint>;
10905
10874
  /**
10906
- * 告警码说明:
10907
- WARN_COPY_CARD 黑白复印件告警
10908
- WARN_RESHOOT_CARD翻拍件告警
10875
+ * <p>告警码说明:<br>WARN_COPY_CARD 黑白复印件告警<br>WARN_RESHOOT_CARD翻拍件告警<br>WARN_EARLY_STOP 经营范围识别异常告警</p>
10909
10876
  */
10910
10877
  RecognizeWarnMsg?: Array<string>;
10911
10878
  /**
10912
- * 是否为副本。1为是,-1为不是。
10879
+ * <p>是否为副本。1为是,-1为不是。</p>
10913
10880
  */
10914
10881
  IsDuplication?: number;
10915
10882
  /**
10916
- * 登记日期
10883
+ * <p>登记日期</p>
10917
10884
  */
10918
10885
  RegistrationDate?: string;
10919
10886
  /**
10920
- * 图片旋转角度(角度制),文本的水平方向为0度;顺时针为正,角度范围是0-360度
10921
-
10922
-
10887
+ * <p>图片旋转角度(角度制),文本的水平方向为0度;顺时针为正,角度范围是0-360度</p>
10923
10888
  */
10924
10889
  Angle?: number;
10925
10890
  /**
10926
- * 是否有国徽。false为没有,true为有。
10891
+ * <p>是否有国徽。false为没有,true为有。</p>
10927
10892
  */
10928
10893
  NationalEmblem?: boolean;
10929
10894
  /**
10930
- * 是否有二维码。false为没有,true为有。
10895
+ * <p>是否有二维码。false为没有,true为有。</p>
10931
10896
  */
10932
10897
  QRCode?: boolean;
10933
10898
  /**
10934
- * 是否有印章。false为没有,true为有。
10899
+ * <p>是否有印章。false为没有,true为有。</p>
10935
10900
  */
10936
10901
  Seal?: boolean;
10937
10902
  /**
10938
- * 标题
10903
+ * <p>标题</p>
10939
10904
  */
10940
10905
  Title?: string;
10941
10906
  /**
10942
- * 编号
10907
+ * <p>编号</p>
10943
10908
  */
10944
10909
  SerialNumber?: string;
10945
10910
  /**
10946
- * 登记机关
10911
+ * <p>登记机关</p>
10947
10912
  */
10948
10913
  RegistrationAuthority?: string;
10949
10914
  /**
10950
- * 是否是电子营业执照。false为没有,true为有。
10915
+ * <p>是否是电子营业执照。false为没有,true为有。</p>
10951
10916
  */
10952
10917
  Electronic?: boolean;
10953
10918
  /**
10954
- * 非营业执照的营业类证件识别结果,将以结构化形式呈现。
10919
+ * <p>非营业执照的营业类证件识别结果,将以结构化形式呈现。</p>
10955
10920
  */
10956
10921
  BusinessCertificate?: Array<BusinessCertificateInfo>;
10957
10922
  /**
10958
- * 重要提示字段
10923
+ * <p>重要提示字段</p>
10959
10924
  */
10960
10925
  Important?: string;
10961
10926
  /**