tencentcloud-sdk-nodejs-ocr 4.1.293 → 4.1.294

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.
@@ -102,6 +102,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
102
102
  async RecognizeGeneralCardWarn(req, cb) {
103
103
  return this.request("RecognizeGeneralCardWarn", req, cb);
104
104
  }
105
+ async VerifyOfdVatInvoiceOCR(req, cb) {
106
+ return this.request("VerifyOfdVatInvoiceOCR", req, cb);
107
+ }
105
108
  async WaybillOCR(req, cb) {
106
109
  return this.request("WaybillOCR", req, cb);
107
110
  }
@@ -210,8 +213,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
210
213
  async GetOCRToken(req, cb) {
211
214
  return this.request("GetOCRToken", req, cb);
212
215
  }
213
- async VerifyOfdVatInvoiceOCR(req, cb) {
214
- return this.request("VerifyOfdVatInvoiceOCR", req, cb);
216
+ async VerifyGeneralCardWarn(req, cb) {
217
+ return this.request("VerifyGeneralCardWarn", req, cb);
215
218
  }
216
219
  async VerifyBizLicenseEnterprise3(req, cb) {
217
220
  return this.request("VerifyBizLicenseEnterprise3", req, cb);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.293",
3
+ "version": "4.1.294",
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, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, VinOCRResponse, BankCardOCRRequest, VatInvoiceVerifyNewResponse, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, GeneralHandwritingOCRResponse, MLIDPassportOCRRequest, TextDetectResponse, GetOCRTokenResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, MLIDCardOCRRequest, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, VerifyBizLicenseEnterprise3Response, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnglishOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, VerifyScenePhotoResponse, RecognizeAgentResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, RecognizeGeneralCardWarnRequest, VinOCRRequest, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, CropEnhanceImageOCRResponse, GeneralAccurateOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, MultimodalDocParseResponse, ExtractDocAgentResponse, RecognizeStoreNameResponse, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, MultimodalDocParseRequest, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, ExtractDocMultiResponse, TextDetectRequest, RecognizeThaiIDCardOCRRequest, RecognizeEncryptedIDCardOCRRequest, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, SubmitMarkEssayAgentJobRequest, LicensePlateOCRRequest, GeneralBasicOCRRequest, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, SubmitQuestionMarkAgentJobResponse, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnterpriseLicenseOCRRequest, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, VatInvoiceVerifyNewRequest, EraseHandwrittenImageOCRResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, VerifyBizLicenseEnterprise4Response, HandwritingEssayOCRRequest, BankSlipOCRResponse, QuestionSplitOCRRequest, PermitOCRResponse, PassportOCRRequest, VerifyScenePhotoRequest, DescribeQuestionMarkAgentJobRequest, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, VerifyBizLicenseEnterprise4Request, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, TrainTicketOCRRequest, GeneralEfficientOCRResponse, MLIDPassportOCRResponse, CropEnhanceImageOCRRequest, VerifyOfdVatInvoiceOCRResponse, SealOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, EraseHandwrittenImageOCRRequest, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, EnglishOCRResponse, VerifyBizLicenseEnterprise3Request, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, QrcodeOCRRequest, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, AdvertiseOCRResponse, RecognizeAgentRequest, SmartStructuralOCRResponse, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, SubmitQuestionMarkAgentJobRequest, BusinessCardOCRRequest, RecognizeValidIDCardOCRResponse, DescribeMarkEssayAgentJobRequest, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { TableOCRRequest, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, VinOCRResponse, BankCardOCRRequest, VatInvoiceVerifyNewResponse, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, GeneralHandwritingOCRResponse, VerifyGeneralCardWarnRequest, MLIDPassportOCRRequest, TextDetectResponse, GetOCRTokenResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, MLIDCardOCRRequest, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, VerifyBizLicenseEnterprise3Response, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnglishOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, VerifyScenePhotoResponse, RecognizeAgentResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, RecognizeGeneralCardWarnRequest, VinOCRRequest, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, CropEnhanceImageOCRResponse, GeneralAccurateOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, MultimodalDocParseResponse, ExtractDocAgentResponse, RecognizeStoreNameResponse, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, MultimodalDocParseRequest, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, ExtractDocMultiResponse, VerifyGeneralCardWarnResponse, TextDetectRequest, RecognizeThaiIDCardOCRRequest, RecognizeEncryptedIDCardOCRRequest, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, SubmitMarkEssayAgentJobRequest, LicensePlateOCRRequest, GeneralBasicOCRRequest, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, SubmitQuestionMarkAgentJobResponse, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnterpriseLicenseOCRRequest, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, VatInvoiceVerifyNewRequest, EraseHandwrittenImageOCRResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, VerifyBizLicenseEnterprise4Response, HandwritingEssayOCRRequest, BankSlipOCRResponse, QuestionSplitOCRRequest, PermitOCRResponse, PassportOCRRequest, VerifyScenePhotoRequest, DescribeQuestionMarkAgentJobRequest, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, VerifyBizLicenseEnterprise4Request, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, TrainTicketOCRRequest, GeneralEfficientOCRResponse, MLIDPassportOCRResponse, CropEnhanceImageOCRRequest, VerifyOfdVatInvoiceOCRResponse, SealOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, EraseHandwrittenImageOCRRequest, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, EnglishOCRResponse, VerifyBizLicenseEnterprise3Request, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, QrcodeOCRRequest, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, AdvertiseOCRResponse, RecognizeAgentRequest, SmartStructuralOCRResponse, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, SubmitQuestionMarkAgentJobRequest, BusinessCardOCRRequest, RecognizeValidIDCardOCRResponse, DescribeMarkEssayAgentJobRequest, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -356,6 +356,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
356
356
  默认接口请求频率限制:5次/秒。
357
357
  */
358
358
  RecognizeGeneralCardWarn(req: RecognizeGeneralCardWarnRequest, cb?: (error: string, rep: RecognizeGeneralCardWarnResponse) => void): Promise<RecognizeGeneralCardWarnResponse>;
359
+ /**
360
+ * 本接口支持OFD格式的增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
361
+ */
362
+ VerifyOfdVatInvoiceOCR(req: VerifyOfdVatInvoiceOCRRequest, cb?: (error: string, rep: VerifyOfdVatInvoiceOCRResponse) => void): Promise<VerifyOfdVatInvoiceOCRResponse>;
359
363
  /**
360
364
  * 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
361
365
 
@@ -703,9 +707,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
703
707
  */
704
708
  GetOCRToken(req: GetOCRTokenRequest, cb?: (error: string, rep: GetOCRTokenResponse) => void): Promise<GetOCRTokenResponse>;
705
709
  /**
706
- * 本接口支持OFD格式的增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
710
+ * 提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
707
711
  */
708
- VerifyOfdVatInvoiceOCR(req: VerifyOfdVatInvoiceOCRRequest, cb?: (error: string, rep: VerifyOfdVatInvoiceOCRResponse) => void): Promise<VerifyOfdVatInvoiceOCRResponse>;
712
+ VerifyGeneralCardWarn(req: VerifyGeneralCardWarnRequest, cb?: (error: string, rep: VerifyGeneralCardWarnResponse) => void): Promise<VerifyGeneralCardWarnResponse>;
709
713
  /**
710
714
  * 提供比对核验企业名称、统一社会信用代码、法人姓名(可选)一致性的服务,助力快速核验企业资质。
711
715
  注意:
@@ -444,6 +444,12 @@ class Client extends TencentCloudCommon.AbstractClient {
444
444
  async RecognizeGeneralCardWarn(req, cb) {
445
445
  return this.request("RecognizeGeneralCardWarn", req, cb);
446
446
  }
447
+ /**
448
+ * 本接口支持OFD格式的增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
449
+ */
450
+ async VerifyOfdVatInvoiceOCR(req, cb) {
451
+ return this.request("VerifyOfdVatInvoiceOCR", req, cb);
452
+ }
447
453
  /**
448
454
  * 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
449
455
 
@@ -863,10 +869,10 @@ class Client extends TencentCloudCommon.AbstractClient {
863
869
  return this.request("GetOCRToken", req, cb);
864
870
  }
865
871
  /**
866
- * 本接口支持OFD格式的增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
872
+ * 提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
867
873
  */
868
- async VerifyOfdVatInvoiceOCR(req, cb) {
869
- return this.request("VerifyOfdVatInvoiceOCR", req, cb);
874
+ async VerifyGeneralCardWarn(req, cb) {
875
+ return this.request("VerifyGeneralCardWarn", req, cb);
870
876
  }
871
877
  /**
872
878
  * 提供比对核验企业名称、统一社会信用代码、法人姓名(可选)一致性的服务,助力快速核验企业资质。
@@ -713,6 +713,23 @@ export interface WordItem {
713
713
  */
714
714
  WordCoord?: Array<WordPolygon>;
715
715
  }
716
+ /**
717
+ * VerifyGeneralCardWarn请求参数结构体
718
+ */
719
+ export interface VerifyGeneralCardWarnRequest {
720
+ /**
721
+ * <p>卡证类型参数,仅支持传入下列指定值,请按实际情况选择对应卡证类型,目前支持以下类型:<br><strong>身份证件</strong><br>0101 身份证<br>0102 护照<br><strong>经营证照</strong><br>0201 营业执照<br><strong>权属登记</strong><br>0301 行驶证<br><strong>资格许可</strong><br>0401 驾驶证</p>
722
+ */
723
+ CardType: string;
724
+ /**
725
+ * <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
726
+ */
727
+ ImageUrl?: string;
728
+ /**
729
+ * <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
730
+ */
731
+ ImageBase64?: string;
732
+ }
716
733
  /**
717
734
  * MLIDPassportOCR请求参数结构体
718
735
  */
@@ -4332,6 +4349,71 @@ export interface ExtractDocMultiResponse {
4332
4349
  */
4333
4350
  RequestId?: string;
4334
4351
  }
4352
+ /**
4353
+ * VerifyGeneralCardWarn返回参数结构体
4354
+ */
4355
+ export interface VerifyGeneralCardWarnResponse {
4356
+ /**
4357
+ * <p>区域篡改提示</p>
4358
+ */
4359
+ Tamper?: GeneralCardWarnInfo;
4360
+ /**
4361
+ * <p>AIGC合成提示</p>
4362
+ */
4363
+ Synthesis?: GeneralCardWarnInfo;
4364
+ /**
4365
+ * <p>模板图片提示</p>
4366
+ */
4367
+ Template?: GeneralCardWarnInfo;
4368
+ /**
4369
+ * <p>屏幕翻拍提示</p>
4370
+ */
4371
+ RemakeScreen?: GeneralCardWarnInfo;
4372
+ /**
4373
+ * <p>截图提示</p>
4374
+ */
4375
+ Screenshot?: GeneralCardWarnInfo;
4376
+ /**
4377
+ * <p>模糊提示</p>
4378
+ */
4379
+ Blur?: GeneralCardWarnInfo;
4380
+ /**
4381
+ * <p>边框不完整提示</p>
4382
+ */
4383
+ BorderIncomplete?: GeneralCardWarnInfo;
4384
+ /**
4385
+ * <p>复印件提示</p>
4386
+ */
4387
+ Copy?: GeneralCardWarnInfo;
4388
+ /**
4389
+ * <p>反光提示</p>
4390
+ */
4391
+ Reflection?: GeneralCardWarnInfo;
4392
+ /**
4393
+ * <p>遮挡提示</p>
4394
+ */
4395
+ Cover?: GeneralCardWarnInfo;
4396
+ /**
4397
+ * <p>重叠提示</p>
4398
+ */
4399
+ Overlap?: GeneralCardWarnInfo;
4400
+ /**
4401
+ * <p>电子证照提示(目前仅支持电子身份证、电子营业执照识别)</p>
4402
+ */
4403
+ Electron?: GeneralCardWarnInfo;
4404
+ /**
4405
+ * <p>文字水印提示</p>
4406
+ */
4407
+ TextWatermark?: GeneralCardWarnInfo;
4408
+ /**
4409
+ * <p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
4410
+ */
4411
+ WatermarkContent?: string;
4412
+ /**
4413
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4414
+ */
4415
+ RequestId?: string;
4416
+ }
4335
4417
  /**
4336
4418
  * 通用机打发票
4337
4419
  */