tencentcloud-sdk-nodejs-ocr 4.1.84 → 4.1.85

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.
@@ -216,6 +216,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
216
216
  async RecognizeMedicalInvoiceOCR(req, cb) {
217
217
  return this.request("RecognizeMedicalInvoiceOCR", req, cb);
218
218
  }
219
+ async RecognizeTableMultiOCR(req, cb) {
220
+ return this.request("RecognizeTableMultiOCR", req, cb);
221
+ }
219
222
  async GeneralFastOCR(req, cb) {
220
223
  return this.request("GeneralFastOCR", req, cb);
221
224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.84",
3
+ "version": "4.1.85",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, RecognizeGeneralTextImageWarnResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, RideHailingTransportLicenseOCRRequest, VatInvoiceVerifyNewResponse, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, RecognizeTableMultiOCRResponse, RecognizeGeneralTextImageWarnResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, RideHailingTransportLicenseOCRRequest, VatInvoiceVerifyNewResponse, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -853,6 +853,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
853
853
  默认接口请求频率限制:5次/秒。
854
854
  */
855
855
  RecognizeMedicalInvoiceOCR(req: RecognizeMedicalInvoiceOCRRequest, cb?: (error: string, rep: RecognizeMedicalInvoiceOCRResponse) => void): Promise<RecognizeMedicalInvoiceOCRResponse>;
856
+ /**
857
+ * 基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。
858
+
859
+ 默认接口请求频率限制:1次/秒。
860
+ */
861
+ RecognizeTableMultiOCR(req: RecognizeTableMultiOCRRequest, cb?: (error: string, rep: RecognizeTableMultiOCRResponse) => void): Promise<RecognizeTableMultiOCRResponse>;
856
862
  /**
857
863
  * 本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快。
858
864
 
@@ -1017,6 +1017,14 @@ class Client extends TencentCloudCommon.AbstractClient {
1017
1017
  async RecognizeMedicalInvoiceOCR(req, cb) {
1018
1018
  return this.request("RecognizeMedicalInvoiceOCR", req, cb);
1019
1019
  }
1020
+ /**
1021
+ * 基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。
1022
+
1023
+ 默认接口请求频率限制:1次/秒。
1024
+ */
1025
+ async RecognizeTableMultiOCR(req, cb) {
1026
+ return this.request("RecognizeTableMultiOCR", req, cb);
1027
+ }
1020
1028
  /**
1021
1029
  * 本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快。
1022
1030
 
@@ -5731,82 +5731,32 @@ export interface GeneralBasicOCRRequest {
5731
5731
  IsWords?: boolean;
5732
5732
  }
5733
5733
  /**
5734
- * 行驶证副页正面的识别结果
5734
+ * RecognizeTableMultiOCR请求参数结构体
5735
5735
  */
5736
- export interface TextVehicleBack {
5737
- /**
5738
- * 号牌号码
5739
- 注意:此字段可能返回 null,表示取不到有效值。
5740
- */
5741
- PlateNo?: string;
5742
- /**
5743
- * 档案编号
5744
- 注意:此字段可能返回 null,表示取不到有效值。
5745
- */
5746
- FileNo?: string;
5747
- /**
5748
- * 核定人数
5749
- 注意:此字段可能返回 null,表示取不到有效值。
5750
- */
5751
- AllowNum?: string;
5736
+ export interface RecognizeTableMultiOCRRequest {
5752
5737
  /**
5753
- * 总质量
5754
- 注意:此字段可能返回 null,表示取不到有效值。
5755
- */
5756
- TotalMass?: string;
5757
- /**
5758
- * 整备质量
5759
- 注意:此字段可能返回 null,表示取不到有效值。
5760
- */
5761
- CurbWeight?: string;
5762
- /**
5763
- * 核定载质量
5764
- 注意:此字段可能返回 null,表示取不到有效值。
5765
- */
5766
- LoadQuality?: string;
5767
- /**
5768
- * 外廓尺寸
5769
- 注意:此字段可能返回 null,表示取不到有效值。
5770
- */
5771
- ExternalSize?: string;
5772
- /**
5773
- * 备注
5774
- 注意:此字段可能返回 null,表示取不到有效值。
5738
+ * 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5775
5739
  */
5776
- Marks?: string;
5740
+ ImageBase64?: string;
5777
5741
  /**
5778
- * 检验记录
5779
- 注意:此字段可能返回 null,表示取不到有效值。
5742
+ * 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5780
5743
  */
5781
- Record?: string;
5744
+ ImageUrl?: string;
5782
5745
  /**
5783
- * 准牵引总质量
5784
- 注意:此字段可能返回 null,表示取不到有效值。
5746
+ * 文档的起始页码。 当传入文件是PDF型时,用来指定识别的起始页码,识别的页码包含当前值。
5785
5747
  */
5786
- TotalQuasiMass?: string;
5748
+ PdfStartPageNumber?: number;
5787
5749
  /**
5788
- * 副页编码
5789
- 注意:此字段可能返回 null,表示取不到有效值。
5750
+ * 文档的结束页码。 当传入文件是PDF类型时,用来指定识别的结束页码,识别的页码包含当前值。单次调用最多支持识别3页内容,即PdfEndPageNumber-PdfStartPageNumber需要不大于3。
5790
5751
  */
5791
- SubPageCode?: string;
5752
+ PdfEndPageNumber?: number;
5792
5753
  /**
5793
- * 燃料种类
5754
+ * 配置选项,支持配置输出数据格式。
5794
5755
 
5795
- 注意:此字段可能返回 null,表示取不到有效值。
5796
- */
5797
- FuelType?: string;
5798
- /**
5799
- * 住址
5800
- */
5801
- AddressElectronic?: string;
5802
- /**
5803
- * 发证机关
5804
- */
5805
- IssueAuthorityElectronic?: string;
5806
- /**
5807
- * 车身颜色
5756
+ * **Mdbase64** 返回 base64 编码的 markdown 格式文本。
5757
+ * **Excelbase64** 返回 base64 编码的 excel 文件。
5808
5758
  */
5809
- CarBodyColor?: string;
5759
+ DataFormat?: string;
5810
5760
  }
5811
5761
  /**
5812
5762
  * GeneralEfficientOCR请求参数结构体
@@ -5972,6 +5922,84 @@ export interface RideHailingDriverLicenseOCRResponse {
5972
5922
  */
5973
5923
  RequestId?: string;
5974
5924
  }
5925
+ /**
5926
+ * 行驶证副页正面的识别结果
5927
+ */
5928
+ export interface TextVehicleBack {
5929
+ /**
5930
+ * 号牌号码
5931
+ 注意:此字段可能返回 null,表示取不到有效值。
5932
+ */
5933
+ PlateNo?: string;
5934
+ /**
5935
+ * 档案编号
5936
+ 注意:此字段可能返回 null,表示取不到有效值。
5937
+ */
5938
+ FileNo?: string;
5939
+ /**
5940
+ * 核定人数
5941
+ 注意:此字段可能返回 null,表示取不到有效值。
5942
+ */
5943
+ AllowNum?: string;
5944
+ /**
5945
+ * 总质量
5946
+ 注意:此字段可能返回 null,表示取不到有效值。
5947
+ */
5948
+ TotalMass?: string;
5949
+ /**
5950
+ * 整备质量
5951
+ 注意:此字段可能返回 null,表示取不到有效值。
5952
+ */
5953
+ CurbWeight?: string;
5954
+ /**
5955
+ * 核定载质量
5956
+ 注意:此字段可能返回 null,表示取不到有效值。
5957
+ */
5958
+ LoadQuality?: string;
5959
+ /**
5960
+ * 外廓尺寸
5961
+ 注意:此字段可能返回 null,表示取不到有效值。
5962
+ */
5963
+ ExternalSize?: string;
5964
+ /**
5965
+ * 备注
5966
+ 注意:此字段可能返回 null,表示取不到有效值。
5967
+ */
5968
+ Marks?: string;
5969
+ /**
5970
+ * 检验记录
5971
+ 注意:此字段可能返回 null,表示取不到有效值。
5972
+ */
5973
+ Record?: string;
5974
+ /**
5975
+ * 准牵引总质量
5976
+ 注意:此字段可能返回 null,表示取不到有效值。
5977
+ */
5978
+ TotalQuasiMass?: string;
5979
+ /**
5980
+ * 副页编码
5981
+ 注意:此字段可能返回 null,表示取不到有效值。
5982
+ */
5983
+ SubPageCode?: string;
5984
+ /**
5985
+ * 燃料种类
5986
+
5987
+ 注意:此字段可能返回 null,表示取不到有效值。
5988
+ */
5989
+ FuelType?: string;
5990
+ /**
5991
+ * 住址
5992
+ */
5993
+ AddressElectronic?: string;
5994
+ /**
5995
+ * 发证机关
5996
+ */
5997
+ IssueAuthorityElectronic?: string;
5998
+ /**
5999
+ * 车身颜色
6000
+ */
6001
+ CarBodyColor?: string;
6002
+ }
5975
6003
  /**
5976
6004
  * ImageEnhancement请求参数结构体
5977
6005
  */
@@ -6642,6 +6670,20 @@ export interface CarInvoiceInfo {
6642
6670
  */
6643
6671
  Polygon?: Polygon;
6644
6672
  }
6673
+ /**
6674
+ * RecognizeTableMultiOCR返回参数结构体
6675
+ */
6676
+ export interface RecognizeTableMultiOCRResponse {
6677
+ /**
6678
+ * Base64 编码后的 Excel 数据或 Markdown 数据。 注意:此字段可能返回空,表示取不到有效值。
6679
+ 注意:此字段可能返回 null,表示取不到有效值。
6680
+ */
6681
+ DataBase64?: string;
6682
+ /**
6683
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6684
+ */
6685
+ RequestId?: string;
6686
+ }
6645
6687
  /**
6646
6688
  * 机票行程单识别结果
6647
6689
  */