tencentcloud-sdk-nodejs-ocr 4.1.324 → 4.1.325

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.
@@ -120,15 +120,21 @@ export class Client extends TencentCloudCommon.AbstractClient {
120
120
  async RecognizeTableOCR(req, cb) {
121
121
  return this.request("RecognizeTableOCR", req, cb);
122
122
  }
123
+ async TextDetect(req, cb) {
124
+ return this.request("TextDetect", req, cb);
125
+ }
123
126
  async HandwritingEssayOCR(req, cb) {
124
127
  return this.request("HandwritingEssayOCR", req, cb);
125
128
  }
126
- async TextDetect(req, cb) {
127
- return this.request("TextDetect", req, cb);
129
+ async RunRerank(req, cb) {
130
+ return this.request("RunRerank", req, cb);
128
131
  }
129
132
  async SmartStructuralOCR(req, cb) {
130
133
  return this.request("SmartStructuralOCR", req, cb);
131
134
  }
135
+ async CropEnhanceImageOCR(req, cb) {
136
+ return this.request("CropEnhanceImageOCR", req, cb);
137
+ }
132
138
  async SubmitQuestionMarkAgentJob(req, cb) {
133
139
  return this.request("SubmitQuestionMarkAgentJob", req, cb);
134
140
  }
@@ -213,11 +219,14 @@ export class Client extends TencentCloudCommon.AbstractClient {
213
219
  async LicensePlateOCR(req, cb) {
214
220
  return this.request("LicensePlateOCR", req, cb);
215
221
  }
222
+ async VerifyGeneralCardWarn(req, cb) {
223
+ return this.request("VerifyGeneralCardWarn", req, cb);
224
+ }
216
225
  async GetOCRToken(req, cb) {
217
226
  return this.request("GetOCRToken", req, cb);
218
227
  }
219
- async VerifyGeneralCardWarn(req, cb) {
220
- return this.request("VerifyGeneralCardWarn", req, cb);
228
+ async SubmitMultimodalDocParseJob(req, cb) {
229
+ return this.request("SubmitMultimodalDocParseJob", req, cb);
221
230
  }
222
231
  async VerifyBizLicenseEnterprise3(req, cb) {
223
232
  return this.request("VerifyBizLicenseEnterprise3", req, cb);
@@ -228,8 +237,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
228
237
  async MixedInvoiceOCR(req, cb) {
229
238
  return this.request("MixedInvoiceOCR", req, cb);
230
239
  }
231
- async CropEnhanceImageOCR(req, cb) {
232
- return this.request("CropEnhanceImageOCR", req, cb);
240
+ async DescribeMultimodalDocParseJob(req, cb) {
241
+ return this.request("DescribeMultimodalDocParseJob", req, cb);
233
242
  }
234
243
  async RideHailingTransportLicenseOCR(req, cb) {
235
244
  return this.request("RideHailingTransportLicenseOCR", req, cb);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.324",
3
+ "version": "4.1.325",
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, 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, SubmitQuestionSplitJobResponse, EnglishOCRResponse, VerifyBizLicenseEnterprise3Request, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, SubmitQuestionSplitJobRequest, QrcodeOCRRequest, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, AdvertiseOCRResponse, RecognizeAgentRequest, SmartStructuralOCRResponse, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, DescribeQuestionSplitJobResponse, BizLicenseOCRResponse, DescribeQuestionSplitJobRequest, BankCardOCRResponse, SubmitQuestionMarkAgentJobRequest, BusinessCardOCRRequest, VatInvoiceOCRResponse, RecognizeValidIDCardOCRResponse, DescribeMarkEssayAgentJobRequest, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { TableOCRRequest, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, VinOCRResponse, BankCardOCRRequest, VatInvoiceVerifyNewResponse, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, GeneralHandwritingOCRResponse, VerifyGeneralCardWarnRequest, MLIDPassportOCRRequest, RunRerankRequest, GetOCRTokenResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, RideHailingDriverLicenseOCRResponse, MLIDCardOCRRequest, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, VerifyBizLicenseEnterprise3Response, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnglishOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, 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, DescribeMultimodalDocParseJobRequest, ExtractDocMultiResponse, VerifyGeneralCardWarnResponse, SubmitExtractDocAgentJobResponse, TextDetectRequest, RecognizeThaiIDCardOCRRequest, RecognizeEncryptedIDCardOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, SubmitMarkEssayAgentJobRequest, LicensePlateOCRRequest, GeneralBasicOCRRequest, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, SubmitMultimodalDocParseJobResponse, SubmitQuestionMarkAgentJobResponse, DescribeMultimodalDocParseJobResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnterpriseLicenseOCRRequest, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, VatInvoiceVerifyNewRequest, VehicleRegCertOCRResponse, EraseHandwrittenImageOCRResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, VerifyBizLicenseEnterprise4Response, HandwritingEssayOCRRequest, BankSlipOCRResponse, QuestionSplitOCRRequest, PermitOCRResponse, PassportOCRRequest, VerifyScenePhotoRequest, DescribeQuestionMarkAgentJobRequest, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, VerifyScenePhotoResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, VerifyBizLicenseEnterprise4Request, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, TrainTicketOCRRequest, GeneralEfficientOCRResponse, MLIDPassportOCRResponse, CropEnhanceImageOCRRequest, VerifyOfdVatInvoiceOCRResponse, SealOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, EraseHandwrittenImageOCRRequest, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, SubmitQuestionSplitJobResponse, EnglishOCRResponse, SubmitMultimodalDocParseJobRequest, VerifyBizLicenseEnterprise3Request, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, TextDetectResponse, SubmitQuestionSplitJobRequest, QrcodeOCRRequest, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, AdvertiseOCRResponse, RecognizeAgentRequest, SmartStructuralOCRResponse, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, RunRerankResponse, DescribeQuestionSplitJobResponse, BizLicenseOCRResponse, DescribeQuestionSplitJobRequest, BankCardOCRResponse, SubmitQuestionMarkAgentJobRequest, BusinessCardOCRRequest, VatInvoiceOCRResponse, RecognizeValidIDCardOCRResponse, DescribeMarkEssayAgentJobRequest, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -398,23 +398,33 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
398
398
  */
399
399
  RecognizeTableOCR(req: RecognizeTableOCRRequest, cb?: (error: string, rep: RecognizeTableOCRResponse) => void): Promise<RecognizeTableOCRResponse>;
400
400
  /**
401
- * 本接口专为教育场景设计,可高精度识别中英文手写字符,智能分栏并按阅读顺序分割内容,自动过滤手写与印刷体混排干扰,精准返回词、行、段落及标题的文本与坐标信息。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
401
+ * 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
402
402
 
403
403
  默认接口请求频率限制:5次/秒。
404
404
  */
405
- HandwritingEssayOCR(req: HandwritingEssayOCRRequest, cb?: (error: string, rep: HandwritingEssayOCRResponse) => void): Promise<HandwritingEssayOCRResponse>;
405
+ TextDetect(req: TextDetectRequest, cb?: (error: string, rep: TextDetectResponse) => void): Promise<TextDetectResponse>;
406
406
  /**
407
- * 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
407
+ * 本接口专为教育场景设计,可高精度识别中英文手写字符,智能分栏并按阅读顺序分割内容,自动过滤手写与印刷体混排干扰,精准返回词、行、段落及标题的文本与坐标信息。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
408
408
 
409
409
  默认接口请求频率限制:5次/秒。
410
410
  */
411
- TextDetect(req: TextDetectRequest, cb?: (error: string, rep: TextDetectResponse) => void): Promise<TextDetectResponse>;
411
+ HandwritingEssayOCR(req: HandwritingEssayOCRRequest, cb?: (error: string, rep: HandwritingEssayOCRResponse) => void): Promise<HandwritingEssayOCRResponse>;
412
+ /**
413
+ * 基于知识引擎精调模型技术的 Rerank 模型,支持对多路召回的结果进行重排序,根据查询内容与文档切片内容的相关性,按顺序返回每一条文档内容与查询内容的相关性分数。
414
+ */
415
+ RunRerank(req: RunRerankRequest, cb?: (error: string, rep: RunRerankResponse) => void): Promise<RunRerankResponse>;
412
416
  /**
413
417
  * 本接口支持识别并提取各类证照、票据、表单、合同等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。
414
418
 
415
419
  默认接口请求频率限制:5次/秒。
416
420
  */
417
421
  SmartStructuralOCR(req: SmartStructuralOCRRequest, cb?: (error: string, rep: SmartStructuralOCRResponse) => void): Promise<SmartStructuralOCRResponse>;
422
+ /**
423
+ * 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
424
+
425
+ 默认接口请求频率限制:5次/秒。
426
+ */
427
+ CropEnhanceImageOCR(req: CropEnhanceImageOCRRequest, cb?: (error: string, rep: CropEnhanceImageOCRResponse) => void): Promise<CropEnhanceImageOCRResponse>;
418
428
  /**
419
429
  * 用于试题批改Agent提交任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
420
430
 
@@ -658,14 +668,22 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
658
668
  默认接口请求频率限制:10次/秒。
659
669
  */
660
670
  LicensePlateOCR(req: LicensePlateOCRRequest, cb?: (error: string, rep: LicensePlateOCRResponse) => void): Promise<LicensePlateOCRResponse>;
671
+ /**
672
+ * 提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
673
+ */
674
+ VerifyGeneralCardWarn(req: VerifyGeneralCardWarnRequest, cb?: (error: string, rep: VerifyGeneralCardWarnResponse) => void): Promise<VerifyGeneralCardWarnResponse>;
661
675
  /**
662
676
  * 获取ocr的token值
663
677
  */
664
678
  GetOCRToken(req: GetOCRTokenRequest, cb?: (error: string, rep: GetOCRTokenResponse) => void): Promise<GetOCRTokenResponse>;
665
679
  /**
666
- * 提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
667
- */
668
- VerifyGeneralCardWarn(req: VerifyGeneralCardWarnRequest, cb?: (error: string, rep: VerifyGeneralCardWarnResponse) => void): Promise<VerifyGeneralCardWarnResponse>;
680
+ * 本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
681
+
682
+ 查询任务接口文档地址:https://cloud.tencent.com/document/product/1024/953219
683
+
684
+ 默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
685
+ */
686
+ SubmitMultimodalDocParseJob(req: SubmitMultimodalDocParseJobRequest, cb?: (error: string, rep: SubmitMultimodalDocParseJobResponse) => void): Promise<SubmitMultimodalDocParseJobResponse>;
669
687
  /**
670
688
  * 提供比对核验企业名称、统一社会信用代码、法人姓名(可选)一致性的服务,助力快速核验企业资质。
671
689
  注意:
@@ -674,8 +692,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
674
692
  */
675
693
  VerifyBizLicenseEnterprise3(req: VerifyBizLicenseEnterprise3Request, cb?: (error: string, rep: VerifyBizLicenseEnterprise3Response) => void): Promise<VerifyBizLicenseEnterprise3Response>;
676
694
  /**
677
- * 异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
678
- */
695
+ * 异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
696
+
697
+ 默认接口请求频率限制:5次/秒。
698
+ */
679
699
  SubmitQuestionSplitJob(req: SubmitQuestionSplitJobRequest, cb?: (error: string, rep: SubmitQuestionSplitJobResponse) => void): Promise<SubmitQuestionSplitJobResponse>;
680
700
  /**
681
701
  * 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
@@ -684,11 +704,13 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
684
704
  */
685
705
  MixedInvoiceOCR(req: MixedInvoiceOCRRequest, cb?: (error: string, rep: MixedInvoiceOCRResponse) => void): Promise<MixedInvoiceOCRResponse>;
686
706
  /**
687
- * 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
707
+ * 用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
688
708
 
689
- 默认接口请求频率限制:5次/秒。
709
+ 创建任务接口文档地址:https://cloud.tencent.com/document/product/1024/953218
710
+
711
+ 默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
690
712
  */
691
- CropEnhanceImageOCR(req: CropEnhanceImageOCRRequest, cb?: (error: string, rep: CropEnhanceImageOCRResponse) => void): Promise<CropEnhanceImageOCRResponse>;
713
+ DescribeMultimodalDocParseJob(req: DescribeMultimodalDocParseJobRequest, cb?: (error: string, rep: DescribeMultimodalDocParseJobResponse) => void): Promise<DescribeMultimodalDocParseJobResponse>;
692
714
  /**
693
715
  * 本接口支持网约车运输证关键字段的识别,包括交运管许可字号、车辆所有人、车辆号牌、起始日期、截止日期、发证日期。
694
716
 
@@ -498,20 +498,26 @@ class Client extends TencentCloudCommon.AbstractClient {
498
498
  return this.request("RecognizeTableOCR", req, cb);
499
499
  }
500
500
  /**
501
- * 本接口专为教育场景设计,可高精度识别中英文手写字符,智能分栏并按阅读顺序分割内容,自动过滤手写与印刷体混排干扰,精准返回词、行、段落及标题的文本与坐标信息。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
501
+ * 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
502
502
 
503
503
  默认接口请求频率限制:5次/秒。
504
504
  */
505
- async HandwritingEssayOCR(req, cb) {
506
- return this.request("HandwritingEssayOCR", req, cb);
505
+ async TextDetect(req, cb) {
506
+ return this.request("TextDetect", req, cb);
507
507
  }
508
508
  /**
509
- * 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
509
+ * 本接口专为教育场景设计,可高精度识别中英文手写字符,智能分栏并按阅读顺序分割内容,自动过滤手写与印刷体混排干扰,精准返回词、行、段落及标题的文本与坐标信息。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
510
510
 
511
511
  默认接口请求频率限制:5次/秒。
512
512
  */
513
- async TextDetect(req, cb) {
514
- return this.request("TextDetect", req, cb);
513
+ async HandwritingEssayOCR(req, cb) {
514
+ return this.request("HandwritingEssayOCR", req, cb);
515
+ }
516
+ /**
517
+ * 基于知识引擎精调模型技术的 Rerank 模型,支持对多路召回的结果进行重排序,根据查询内容与文档切片内容的相关性,按顺序返回每一条文档内容与查询内容的相关性分数。
518
+ */
519
+ async RunRerank(req, cb) {
520
+ return this.request("RunRerank", req, cb);
515
521
  }
516
522
  /**
517
523
  * 本接口支持识别并提取各类证照、票据、表单、合同等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。
@@ -521,6 +527,14 @@ class Client extends TencentCloudCommon.AbstractClient {
521
527
  async SmartStructuralOCR(req, cb) {
522
528
  return this.request("SmartStructuralOCR", req, cb);
523
529
  }
530
+ /**
531
+ * 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
532
+
533
+ 默认接口请求频率限制:5次/秒。
534
+ */
535
+ async CropEnhanceImageOCR(req, cb) {
536
+ return this.request("CropEnhanceImageOCR", req, cb);
537
+ }
524
538
  /**
525
539
  * 用于试题批改Agent提交任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
526
540
 
@@ -820,6 +834,12 @@ class Client extends TencentCloudCommon.AbstractClient {
820
834
  async LicensePlateOCR(req, cb) {
821
835
  return this.request("LicensePlateOCR", req, cb);
822
836
  }
837
+ /**
838
+ * 提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
839
+ */
840
+ async VerifyGeneralCardWarn(req, cb) {
841
+ return this.request("VerifyGeneralCardWarn", req, cb);
842
+ }
823
843
  /**
824
844
  * 获取ocr的token值
825
845
  */
@@ -827,10 +847,14 @@ class Client extends TencentCloudCommon.AbstractClient {
827
847
  return this.request("GetOCRToken", req, cb);
828
848
  }
829
849
  /**
830
- * 提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
831
- */
832
- async VerifyGeneralCardWarn(req, cb) {
833
- return this.request("VerifyGeneralCardWarn", req, cb);
850
+ * 本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
851
+
852
+ 查询任务接口文档地址:https://cloud.tencent.com/document/product/1024/953219
853
+
854
+ 默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
855
+ */
856
+ async SubmitMultimodalDocParseJob(req, cb) {
857
+ return this.request("SubmitMultimodalDocParseJob", req, cb);
834
858
  }
835
859
  /**
836
860
  * 提供比对核验企业名称、统一社会信用代码、法人姓名(可选)一致性的服务,助力快速核验企业资质。
@@ -842,8 +866,10 @@ class Client extends TencentCloudCommon.AbstractClient {
842
866
  return this.request("VerifyBizLicenseEnterprise3", req, cb);
843
867
  }
844
868
  /**
845
- * 异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
846
- */
869
+ * 异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
870
+
871
+ 默认接口请求频率限制:5次/秒。
872
+ */
847
873
  async SubmitQuestionSplitJob(req, cb) {
848
874
  return this.request("SubmitQuestionSplitJob", req, cb);
849
875
  }
@@ -856,12 +882,14 @@ class Client extends TencentCloudCommon.AbstractClient {
856
882
  return this.request("MixedInvoiceOCR", req, cb);
857
883
  }
858
884
  /**
859
- * 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
885
+ * 用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
860
886
 
861
- 默认接口请求频率限制:5次/秒。
887
+ 创建任务接口文档地址:https://cloud.tencent.com/document/product/1024/953218
888
+
889
+ 默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
862
890
  */
863
- async CropEnhanceImageOCR(req, cb) {
864
- return this.request("CropEnhanceImageOCR", req, cb);
891
+ async DescribeMultimodalDocParseJob(req, cb) {
892
+ return this.request("DescribeMultimodalDocParseJob", req, cb);
865
893
  }
866
894
  /**
867
895
  * 本接口支持网约车运输证关键字段的识别,包括交运管许可字号、车辆所有人、车辆号牌、起始日期、截止日期、发证日期。
@@ -19,21 +19,17 @@ export interface TableOCRRequest {
19
19
  ImageUrl?: string;
20
20
  }
21
21
  /**
22
- * 门头照识别结果
22
+ * 重排序结果
23
23
  */
24
- export interface StoreInfo {
25
- /**
26
- * 识别出的字段名称(关键字),如商店名称
27
- */
28
- Name?: string;
24
+ export interface RerankResult {
29
25
  /**
30
- * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
26
+ * 文档在输入 Docs 列表中的索引,从 0 开始,用于回溯原文档。
31
27
  */
32
- Value?: string;
28
+ Index?: number;
33
29
  /**
34
- * 文本行在旋转纠正之后的图像中的像素坐标
30
+ * 文档与查询内容的相关性得分,数值越大越相关。
35
31
  */
36
- Rect?: Rect;
32
+ Score?: number;
37
33
  }
38
34
  /**
39
35
  * 非税收入条目
@@ -780,17 +776,21 @@ export interface ItemInfo {
780
776
  AuditResult?: boolean;
781
777
  }
782
778
  /**
783
- * TextDetect返回参数结构体
779
+ * RunRerank请求参数结构体
784
780
  */
785
- export interface TextDetectResponse {
781
+ export interface RunRerankRequest {
786
782
  /**
787
- * 图片中是否包含文字。
783
+ * <p>选择模型。<br>0:Rerank-2b<br>1:Rerank-0.6b</p>
788
784
  */
789
- HasText?: boolean;
785
+ Model: string;
790
786
  /**
791
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
787
+ * <p>查询内容。用于匹配的query,即用户检索意图。</p>
792
788
  */
793
- RequestId?: string;
789
+ Query: string;
790
+ /**
791
+ * <p>文档内容列表。</p>
792
+ */
793
+ Docs: Array<string>;
794
794
  }
795
795
  /**
796
796
  * 完税凭证
@@ -1244,6 +1244,35 @@ export interface SingleInvoiceInfo {
1244
1244
  */
1245
1245
  Row?: number;
1246
1246
  }
1247
+ /**
1248
+ * RideHailingDriverLicenseOCR返回参数结构体
1249
+ */
1250
+ export interface RideHailingDriverLicenseOCRResponse {
1251
+ /**
1252
+ * 姓名
1253
+ */
1254
+ Name?: string;
1255
+ /**
1256
+ * 证号,对应网约车驾驶证字段:证号/从业资格证号/驾驶员证号/身份证号
1257
+ */
1258
+ LicenseNumber?: string;
1259
+ /**
1260
+ * 有效起始日期
1261
+ */
1262
+ StartDate?: string;
1263
+ /**
1264
+ * 有效期截止时间,对应网约车驾驶证字段:有效期至/营运期限止
1265
+ */
1266
+ EndDate?: string;
1267
+ /**
1268
+ * 初始发证日期,对应网约车驾驶证字段:初始领证日期/发证日期
1269
+ */
1270
+ ReleaseDate?: string;
1271
+ /**
1272
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1273
+ */
1274
+ RequestId?: string;
1275
+ }
1247
1276
  /**
1248
1277
  * key信息组
1249
1278
  */
@@ -2275,45 +2304,29 @@ export interface InvoiceDetectInfo {
2275
2304
  Image?: string;
2276
2305
  }
2277
2306
  /**
2278
- * VerifyScenePhoto返回参数结构体
2307
+ * 港澳台来往内地通行证背面字段信息
2279
2308
  */
2280
- export interface VerifyScenePhotoResponse {
2281
- /**
2282
- * <p>区域篡改提示</p>
2283
- */
2284
- Tamper?: SceneWarnInfo;
2285
- /**
2286
- * <p>AIGC合成提示</p>
2287
- */
2288
- Synthesis?: SceneWarnInfo;
2289
- /**
2290
- * <p>屏幕翻拍提示</p>
2291
- */
2292
- RemakeScreen?: SceneWarnInfo;
2293
- /**
2294
- * <p>截图提示</p>
2295
- */
2296
- Screenshot?: SceneWarnInfo;
2297
- /**
2298
- * <p>文字水印提示</p>
2299
- */
2300
- TextWatermark?: SceneWarnInfo;
2309
+ export interface MainlandTravelPermitBackInfos {
2301
2310
  /**
2302
- * <p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
2311
+ * String 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
2312
+ 注意:此字段可能返回 null,表示取不到有效值。
2303
2313
  */
2304
- WatermarkContent?: string;
2314
+ Type?: string;
2305
2315
  /**
2306
- * <p>模板图片提示</p>
2316
+ * 卡证背面的中文姓名
2317
+ 注意:此字段可能返回 null,表示取不到有效值。
2307
2318
  */
2308
- Template?: SceneWarnInfo;
2319
+ Name?: string;
2309
2320
  /**
2310
- * <p>VLM 推理结果。仅当请求中传入 ReasoningPrompt 时返回,否则不返回此字段。</p>
2321
+ * 卡证背面的身份证号码
2322
+ 注意:此字段可能返回 null,表示取不到有效值。
2311
2323
  */
2312
- ReasoningResult?: ReasoningResult;
2324
+ IDNumber?: string;
2313
2325
  /**
2314
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2326
+ * 历史通行证号码
2327
+ 注意:此字段可能返回 null,表示取不到有效值。
2315
2328
  */
2316
- RequestId?: string;
2329
+ HistoryNumber?: string;
2317
2330
  }
2318
2331
  /**
2319
2332
  * 机票详细信息元组
@@ -2707,19 +2720,19 @@ export interface ReasoningResult {
2707
2720
  */
2708
2721
  OutputMode?: string;
2709
2722
  /**
2710
- * <p>枚举模式下的推理结果值。当 OutputMode=enum 时返回,必定命中请求中 EnumValues 的某个值。 若 VLM 输出无法匹配任何枚举值,则返回 <strong>UNCERTAIN</strong>。</p>
2723
+ * <p>枚举模式下的推理结果值。当 OutputMode=enum 时返回,取值对应请求中配置的 EnumValues。</p>
2711
2724
  */
2712
2725
  EnumValue?: string;
2713
2726
  /**
2714
- * <p>文本模式下的推理结果值。当 OutputMode=string 时返回。 若 VLM 无法得出结论,则返回 <strong>UNCERTAIN</strong>。</p>
2727
+ * <p>文本模式下的推理结果值。当 OutputMode=string 时返回,以文本形式描述推理结论。</p>
2715
2728
  */
2716
2729
  TextValue?: string;
2717
2730
  /**
2718
- * <p>VLM 原始输出文本(未经过结构化校验)。</p>
2731
+ * <p>VLM 原始输出文本(未经过结构化校验)。该字段仅用于调试,生产环境可忽略。</p>
2719
2732
  */
2720
2733
  RawOutput?: string;
2721
2734
  /**
2722
- * <p>变量替换后的实际 Prompt(脱敏后)。</p>
2735
+ * <p>变量替换后的用户 Prompt 文本。该字段仅用于调试,生产环境可忽略。</p>
2723
2736
  */
2724
2737
  RenderedPrompt?: string;
2725
2738
  }
@@ -3167,29 +3180,29 @@ export interface GeneralBasicOCRResponse {
3167
3180
  RequestId?: string;
3168
3181
  }
3169
3182
  /**
3170
- * 港澳台来往内地通行证背面字段信息
3183
+ * 自定义抽取需要的字段名称、字段类型、字段提示词。
3171
3184
  */
3172
- export interface MainlandTravelPermitBackInfos {
3185
+ export interface ItemNames {
3173
3186
  /**
3174
- * String 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
3175
- 注意:此字段可能返回 null,表示取不到有效值。
3187
+ * <p>自定义抽取功能需返回的字段名称。</p>
3176
3188
  */
3177
- Type?: string;
3189
+ KeyName?: string;
3178
3190
  /**
3179
- * 卡证背面的中文姓名
3180
- 注意:此字段可能返回 null,表示取不到有效值。
3191
+ * <p>默认 0;0表示kv对 1表示 表格字段。</p>
3181
3192
  */
3182
- Name?: string;
3193
+ KeyType?: number;
3183
3194
  /**
3184
- * 卡证背面的身份证号码
3185
- 注意:此字段可能返回 null,表示取不到有效值。
3195
+ * <p>抽取字段的描述内容。</p>
3186
3196
  */
3187
- IDNumber?: string;
3197
+ KeyPrompt?: string;
3188
3198
  /**
3189
- * 历史通行证号码
3190
- 注意:此字段可能返回 null,表示取不到有效值。
3199
+ * <p>自定义字段对应期望的值内容(这个一般需要对字段审核比对才需要输入)。</p>
3191
3200
  */
3192
- HistoryNumber?: string;
3201
+ KeyExpectedValue?: string;
3202
+ /**
3203
+ * <p>自定义字段审核比对的规则prompt。</p><p>比如keyname是姓名,KeyExpectedValue 张三,KeyAuditPrompt设置为“字符需要完全匹配则审核返回正确”/“字符匹配90%就审核返回正确”</p>
3204
+ */
3205
+ KeyAuditPrompt?: string;
3193
3206
  }
3194
3207
  /**
3195
3208
  * 其他发票
@@ -3919,48 +3932,32 @@ export interface QuotaInvoice {
3919
3932
  CompanySealMark?: number;
3920
3933
  }
3921
3934
  /**
3922
- * 自定义抽取需要的字段名称、字段类型、字段提示词。
3935
+ * DescribeMultimodalDocParseJob请求参数结构体
3923
3936
  */
3924
- export interface ItemNames {
3925
- /**
3926
- * <p>自定义抽取功能需返回的字段名称。</p>
3927
- */
3928
- KeyName?: string;
3929
- /**
3930
- * <p>默认 0;0表示kv对 1表示 表格字段。</p>
3931
- */
3932
- KeyType?: number;
3933
- /**
3934
- * <p>抽取字段的描述内容。</p>
3935
- */
3936
- KeyPrompt?: string;
3937
+ export interface DescribeMultimodalDocParseJobRequest {
3937
3938
  /**
3938
- * <p>自定义字段对应期望的值内容(这个一般需要对字段审核比对才需要输入)。</p>
3939
+ * <p>解析任务ID。由创建任务接口返回。</p>
3939
3940
  */
3940
- KeyExpectedValue?: string;
3941
- /**
3942
- * <p>自定义字段审核比对的规则prompt。</p><p>比如keyname是姓名,KeyExpectedValue 张三,KeyAuditPrompt设置为“字符需要完全匹配则审核返回正确”/“字符匹配90%就审核返回正确”</p>
3943
- */
3944
- KeyAuditPrompt?: string;
3941
+ TaskId: string;
3945
3942
  }
3946
3943
  /**
3947
3944
  * 推理输出配置
3948
3945
  */
3949
3946
  export interface ReasoningConfig {
3950
3947
  /**
3951
- * <p>实际使用的推理输出模式:enum 或 string。</p>
3948
+ * <p>推理输出模式。可选值:enum(枚举值输出)、string(自由文本输出)。<br>enum:VLM 必须从 EnumValues 中选择一个值输出,适用于二值判断或分类决策。<br>string:VLM 输出自由文本,适用于需要自然语言解释的场景。</p>
3952
3949
  */
3953
3950
  OutputMode?: string;
3954
3951
  /**
3955
- * <p>枚举值集合,仅在 OutputMode=enum 时生效。 VLM 输出必须精确命中此集合中的某个值。</p>
3952
+ * <p>枚举值集合,仅在 OutputMode=enum 时生效,设置后VLM推理结果必须精确命中此集合中的某个值,否则会返回“输出偏离枚举值”,Prompt中的指令应与枚举值匹配。</p>
3956
3953
  */
3957
3954
  EnumValues?: Array<string>;
3958
3955
  /**
3959
- * <p>文本输出最大长度,仅在 OutputMode=string 时生效。</p><p>取值范围:[1, 500]</p><p>默认值:200</p>
3956
+ * <p>文本输出最大长度,仅在 OutputMode=string 时生效。</p><p>取值范围:[1, 500]</p>
3960
3957
  */
3961
3958
  MaxLength?: number;
3962
3959
  /**
3963
- * <p>是否在推理调用时向 VLM 传入原图进行多模态理解。 true(默认):VLM 同时接收原图和渲染后的 Prompt,具备多模态理解能力,可直接&quot;看&quot;图片内容进行推理。 false:不传入原图,仅以渲染后的 Prompt(含变量注入值)进行纯文本推理。适用于推理逻辑完全基于结构化出参字段(如水印文字、置信度比较等)的场景,可降低推理延迟和计费成本。 建议:当 ReasoningPrompt 中未涉及&quot;观察图片&quot;、&quot;直接看图&quot;等多模态指令,且推理规则完全基于 ${变量名} 引用的文字结果时,可设为 false 以优化性能。</p>
3960
+ * <p>是否在推理时向 VLM 传入原图进行多模态理解,不传入时默认为true。<br>true:VLM 同时接收原图和渲染后的 Prompt,具备多模态理解能力,可直接&quot;看&quot;图片内容进行推理。<br>false:不传入原图,仅以渲染后的 Prompt(含变量注入值)进行纯文本推理,适用于推理逻辑完全基于结构化出参字段(如水印文字、置信度比较等)的场景。<br>建议:当 ReasoningPrompt 中未涉及&quot;观察图片&quot;、&quot;分析图片&quot;等多模态指令,推理规则完全基于 ${变量名} 引用的文字结果时,可设为 false 以获得更低的延迟。</p>
3964
3961
  */
3965
3962
  EnableImageInput?: boolean;
3966
3963
  }
@@ -4468,6 +4465,19 @@ export interface ShoppingReceipt {
4468
4465
  */
4469
4466
  Content?: Array<OtherInvoiceItem>;
4470
4467
  }
4468
+ /**
4469
+ * SubmitExtractDocAgentJob返回参数结构体
4470
+ */
4471
+ export interface SubmitExtractDocAgentJobResponse {
4472
+ /**
4473
+ * <p>任务唯一ID。由服务端生成。</p>
4474
+ */
4475
+ JobId?: string;
4476
+ /**
4477
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4478
+ */
4479
+ RequestId?: string;
4480
+ }
4471
4481
  /**
4472
4482
  * 火车票
4473
4483
  */
@@ -5112,17 +5122,13 @@ export interface PassportRecognizeInfos {
5112
5122
  BirthPlace?: string;
5113
5123
  }
5114
5124
  /**
5115
- * SubmitExtractDocAgentJob返回参数结构体
5125
+ * 解析失败的页数
5116
5126
  */
5117
- export interface SubmitExtractDocAgentJobResponse {
5127
+ export interface ReconstructDocumentFailedPage {
5118
5128
  /**
5119
- * <p>任务唯一ID。由服务端生成。</p>
5129
+ * <p>解析失败页数。</p>
5120
5130
  */
5121
- JobId?: string;
5122
- /**
5123
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5124
- */
5125
- RequestId?: string;
5131
+ PageNumber?: number;
5126
5132
  }
5127
5133
  /**
5128
5134
  * ImageEnhancement返回参数结构体
@@ -5758,6 +5764,19 @@ export interface AdvertiseOCRRequest {
5758
5764
  */
5759
5765
  ImageUrl?: string;
5760
5766
  }
5767
+ /**
5768
+ * SubmitMultimodalDocParseJob返回参数结构体
5769
+ */
5770
+ export interface SubmitMultimodalDocParseJobResponse {
5771
+ /**
5772
+ * <p>任务唯一 ID。30天内可以通过DescribeMultimodalDocParseJob接口查询TaskId对应的处理结果。</p>
5773
+ */
5774
+ TaskId?: string;
5775
+ /**
5776
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5777
+ */
5778
+ RequestId?: string;
5779
+ }
5761
5780
  /**
5762
5781
  * 航空运输电子客票行程单信息
5763
5782
  */
@@ -5889,29 +5908,37 @@ export interface SubmitQuestionMarkAgentJobResponse {
5889
5908
  RequestId?: string;
5890
5909
  }
5891
5910
  /**
5892
- * RideHailingDriverLicenseOCR返回参数结构体
5911
+ * DescribeMultimodalDocParseJob返回参数结构体
5893
5912
  */
5894
- export interface RideHailingDriverLicenseOCRResponse {
5913
+ export interface DescribeMultimodalDocParseJobResponse {
5895
5914
  /**
5896
- * 姓名
5915
+ * <p>任务状态。取值:</p><ul><li>Created:已创建,等待处理</li><li>Processing:处理中</li><li>Success:成功</li><li>Failed:失败</li><li>Unknown:未知</li></ul>
5897
5916
  */
5898
- Name?: string;
5917
+ Status?: string;
5899
5918
  /**
5900
- * 证号,对应网约车驾驶证字段:证号/从业资格证号/驾驶员证号/身份证号
5919
+ * <p>任务执行错误码。当任务状态不为 Failed 时,该值为“”。</p>
5901
5920
  */
5902
- LicenseNumber?: string;
5921
+ ErrorCode?: string;
5903
5922
  /**
5904
- * 有效起始日期
5923
+ * <p>任务执行错误信息。当任务状态不为 Failed 时,该值为“”。</p>
5905
5924
  */
5906
- StartDate?: string;
5925
+ ErrorMessage?: string;
5907
5926
  /**
5908
- * 有效期截止时间,对应网约车驾驶证字段:有效期至/营运期限止
5927
+ * <p>结果的临时下载地址。文件类型为 zip 压缩包,下载链接有效期 30 分钟。压缩包内包含 <em>.md、</em>.json 以及 images 文件夹。仅当任务状态为 Success 时返回该字段。</p>
5909
5928
  */
5910
- EndDate?: string;
5929
+ ResultUrl?: string;
5911
5930
  /**
5912
- * 初始发证日期,对应网约车驾驶证字段:初始领证日期/发证日期
5931
+ * <p>解析失败的页码列表。仅当任务状态为 Success 时返回该字段。</p>
5913
5932
  */
5914
- ReleaseDate?: string;
5933
+ FailedPages?: Array<ReconstructDocumentFailedPage>;
5934
+ /**
5935
+ * <p>解析成功页数。</p>
5936
+ */
5937
+ SuccessPageNum?: number;
5938
+ /**
5939
+ * <p>解析失败页数。</p>
5940
+ */
5941
+ FailPageNum?: number;
5915
5942
  /**
5916
5943
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5917
5944
  */
@@ -6547,6 +6574,19 @@ export interface SchemaList {
6547
6574
  */
6548
6575
  SubItems?: Array<SchemaList>;
6549
6576
  }
6577
+ /**
6578
+ * VehicleRegCertOCR返回参数结构体
6579
+ */
6580
+ export interface VehicleRegCertOCRResponse {
6581
+ /**
6582
+ * 机动车登记证书识别结果,具体内容请点击左侧链接。
6583
+ */
6584
+ VehicleRegCertInfos?: Array<VehicleRegCertInfo>;
6585
+ /**
6586
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6587
+ */
6588
+ RequestId?: string;
6589
+ }
6550
6590
  /**
6551
6591
  * 单元格数据
6552
6592
  */
@@ -7622,6 +7662,99 @@ export interface SealOCRResponse {
7622
7662
  */
7623
7663
  RequestId?: string;
7624
7664
  }
7665
+ /**
7666
+ * 增值税普通发票(卷票)
7667
+ */
7668
+ export interface VatInvoiceRoll {
7669
+ /**
7670
+ * 发票名称
7671
+ */
7672
+ Title?: string;
7673
+ /**
7674
+ * 发票代码
7675
+ */
7676
+ Code?: string;
7677
+ /**
7678
+ * 发票号码
7679
+ */
7680
+ Number?: string;
7681
+ /**
7682
+ * 机打发票号码
7683
+ */
7684
+ NumberConfirm?: string;
7685
+ /**
7686
+ * 开票日期
7687
+ */
7688
+ Date?: string;
7689
+ /**
7690
+ * 校验码
7691
+ */
7692
+ CheckCode?: string;
7693
+ /**
7694
+ * 销售方名称
7695
+ */
7696
+ Seller?: string;
7697
+ /**
7698
+ * 销售方纳税人识别号
7699
+ */
7700
+ SellerTaxID?: string;
7701
+ /**
7702
+ * 购买方名称
7703
+ */
7704
+ Buyer?: string;
7705
+ /**
7706
+ * 购买方纳税人识别号
7707
+ */
7708
+ BuyerTaxID?: string;
7709
+ /**
7710
+ * 种类
7711
+ */
7712
+ Category?: string;
7713
+ /**
7714
+ * 价税合计(小写)
7715
+ */
7716
+ Total?: string;
7717
+ /**
7718
+ * 价税合计(大写)
7719
+ */
7720
+ TotalCn?: string;
7721
+ /**
7722
+ * 发票消费类型
7723
+ */
7724
+ Kind?: string;
7725
+ /**
7726
+ * 省
7727
+ */
7728
+ Province?: string;
7729
+ /**
7730
+ * 市
7731
+ */
7732
+ City?: string;
7733
+ /**
7734
+ * 是否有公司印章(0:没有,1:有)
7735
+ */
7736
+ CompanySealMark?: number;
7737
+ /**
7738
+ * 是否存在二维码(1:有,0:无)
7739
+ */
7740
+ QRCodeMark?: number;
7741
+ /**
7742
+ * 服务类型
7743
+ */
7744
+ ServiceName?: string;
7745
+ /**
7746
+ * 公司印章内容
7747
+ */
7748
+ CompanySealContent?: string;
7749
+ /**
7750
+ * 税务局章内容
7751
+ */
7752
+ TaxSealContent?: string;
7753
+ /**
7754
+ * 条目
7755
+ */
7756
+ VatRollItems?: Array<VatRollItem>;
7757
+ }
7625
7758
  /**
7626
7759
  * VerifyBizLicenseEnterprise4返回参数结构体
7627
7760
  */
@@ -7961,11 +8094,11 @@ export interface VerifyScenePhotoRequest {
7961
8094
  */
7962
8095
  Scene: string;
7963
8096
  /**
7964
- * <p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按1次调用计费。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持推理,支持屏幕翻拍提示。每次调用按1次调用计费。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按2次调用计费。</p>
8097
+ * <p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参,默认值为Image。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持自定义推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。<strong>每次调用按1次调用计费</strong>。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持自定义推理,支持屏幕翻拍提示。<strong>每次调用按1次调用计费</strong>。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持自定义推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。<strong>每次调用按2次调用计费</strong>。</p>
7965
8098
  */
7966
8099
  Mode?: string;
7967
8100
  /**
7968
- * <p>视频的 Url 地址。格式支持:xxxxxx。要求视频不超过 100M。建议视频时长不小于1s。</p>
8101
+ * <p>视频的 Url 地址。格式支持:mp4、avi、mov、mkv、webm,要求视频不超过 100M。建议视频时长不小于1s。</p>
7969
8102
  */
7970
8103
  VideoUrl?: string;
7971
8104
  /**
@@ -7977,7 +8110,7 @@ export interface VerifyScenePhotoRequest {
7977
8110
  */
7978
8111
  ImageBase64?: string;
7979
8112
  /**
7980
- * <p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–2000 字符</p>
8113
+ * <p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–3000 字符</p>
7981
8114
  */
7982
8115
  ReasoningPrompt?: string;
7983
8116
  /**
@@ -8377,122 +8510,83 @@ export interface ResidenceBookletOCRResponse {
8377
8510
  RequestId?: string;
8378
8511
  }
8379
8512
  /**
8380
- * 增值税普通发票(卷票)
8513
+ * 销货清单
8381
8514
  */
8382
- export interface VatInvoiceRoll {
8515
+ export interface SaleInventory {
8383
8516
  /**
8384
8517
  * 发票名称
8385
8518
  */
8386
8519
  Title?: string;
8387
8520
  /**
8388
- * 发票代码
8521
+ * 识别出的字段名称(关键字)
8389
8522
  */
8390
- Code?: string;
8523
+ Content?: Array<OtherInvoiceItem>;
8524
+ }
8525
+ /**
8526
+ * 红字发票信息
8527
+ */
8528
+ export interface RedLetterInvoiceItem {
8391
8529
  /**
8392
- * 发票号码
8530
+ * <p>红字发票代码</p>
8531
+ 注意:此字段可能返回 null,表示取不到有效值。
8393
8532
  */
8394
- Number?: string;
8533
+ Code?: string;
8395
8534
  /**
8396
- * 机打发票号码
8535
+ * <p>红字发票号码</p>
8536
+ 注意:此字段可能返回 null,表示取不到有效值。
8397
8537
  */
8398
- NumberConfirm?: string;
8538
+ Number?: string;
8399
8539
  /**
8400
- * 开票日期
8540
+ * <p>红字开票日期</p>
8541
+ 注意:此字段可能返回 null,表示取不到有效值。
8401
8542
  */
8402
8543
  Date?: string;
8403
8544
  /**
8404
- * 校验码
8405
- */
8406
- CheckCode?: string;
8407
- /**
8408
- * 销售方名称
8409
- */
8410
- Seller?: string;
8411
- /**
8412
- * 销售方纳税人识别号
8413
- */
8414
- SellerTaxID?: string;
8415
- /**
8416
- * 购买方名称
8417
- */
8418
- Buyer?: string;
8419
- /**
8420
- * 购买方纳税人识别号
8421
- */
8422
- BuyerTaxID?: string;
8423
- /**
8424
- * 种类
8425
- */
8426
- Category?: string;
8427
- /**
8428
- * 价税合计(小写)
8429
- */
8430
- Total?: string;
8431
- /**
8432
- * 价税合计(大写)
8433
- */
8434
- TotalCn?: string;
8435
- /**
8436
- * 发票消费类型
8437
- */
8438
- Kind?: string;
8439
- /**
8440
- * 省
8441
- */
8442
- Province?: string;
8443
- /**
8444
- * 市
8445
- */
8446
- City?: string;
8447
- /**
8448
- * 是否有公司印章(0:没有,1:有)
8545
+ * <p>红字发票状态</p>
8546
+ 注意:此字段可能返回 null,表示取不到有效值。
8449
8547
  */
8450
- CompanySealMark?: number;
8548
+ State?: string;
8549
+ }
8550
+ /**
8551
+ * VerifyScenePhoto返回参数结构体
8552
+ */
8553
+ export interface VerifyScenePhotoResponse {
8451
8554
  /**
8452
- * 是否存在二维码(1:有,0:无)
8555
+ * <p>区域篡改提示</p>
8453
8556
  */
8454
- QRCodeMark?: number;
8557
+ Tamper?: SceneWarnInfo;
8455
8558
  /**
8456
- * 服务类型
8559
+ * <p>AIGC合成提示</p>
8457
8560
  */
8458
- ServiceName?: string;
8561
+ Synthesis?: SceneWarnInfo;
8459
8562
  /**
8460
- * 公司印章内容
8563
+ * <p>屏幕翻拍提示</p>
8461
8564
  */
8462
- CompanySealContent?: string;
8565
+ RemakeScreen?: SceneWarnInfo;
8463
8566
  /**
8464
- * 税务局章内容
8567
+ * <p>截图提示</p>
8465
8568
  */
8466
- TaxSealContent?: string;
8569
+ Screenshot?: SceneWarnInfo;
8467
8570
  /**
8468
- * 条目
8571
+ * <p>文字水印提示</p>
8469
8572
  */
8470
- VatRollItems?: Array<VatRollItem>;
8471
- }
8472
- /**
8473
- * 红字发票信息
8474
- */
8475
- export interface RedLetterInvoiceItem {
8573
+ TextWatermark?: SceneWarnInfo;
8476
8574
  /**
8477
- * <p>红字发票代码</p>
8478
- 注意:此字段可能返回 null,表示取不到有效值。
8575
+ * <p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
8479
8576
  */
8480
- Code?: string;
8577
+ WatermarkContent?: string;
8481
8578
  /**
8482
- * <p>红字发票号码</p>
8483
- 注意:此字段可能返回 null,表示取不到有效值。
8579
+ * <p>模板图片提示</p>
8484
8580
  */
8485
- Number?: string;
8581
+ Template?: SceneWarnInfo;
8486
8582
  /**
8487
- * <p>红字开票日期</p>
8488
- 注意:此字段可能返回 null,表示取不到有效值。
8583
+ * <p>VLM 推理结果。仅当请求中传入 ReasoningPrompt 时返回,否则不返回此字段。</p>
8489
8584
  */
8490
- Date?: string;
8585
+ ReasoningResult?: ReasoningResult;
8491
8586
  /**
8492
- * <p>红字发票状态</p>
8493
- 注意:此字段可能返回 null,表示取不到有效值。
8587
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8494
8588
  */
8495
- State?: string;
8589
+ RequestId?: string;
8496
8590
  }
8497
8591
  /**
8498
8592
  * CarInvoiceOCR返回参数结构体
@@ -8508,17 +8602,21 @@ export interface CarInvoiceOCRResponse {
8508
8602
  RequestId?: string;
8509
8603
  }
8510
8604
  /**
8511
- * VehicleRegCertOCR返回参数结构体
8605
+ * 门头照识别结果
8512
8606
  */
8513
- export interface VehicleRegCertOCRResponse {
8607
+ export interface StoreInfo {
8514
8608
  /**
8515
- * 机动车登记证书识别结果,具体内容请点击左侧链接。
8609
+ * 识别出的字段名称(关键字),如商店名称
8516
8610
  */
8517
- VehicleRegCertInfos?: Array<VehicleRegCertInfo>;
8611
+ Name?: string;
8518
8612
  /**
8519
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8613
+ * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
8520
8614
  */
8521
- RequestId?: string;
8615
+ Value?: string;
8616
+ /**
8617
+ * 文本行在旋转纠正之后的图像中的像素坐标
8618
+ */
8619
+ Rect?: Rect;
8522
8620
  }
8523
8621
  /**
8524
8622
  * GeneralFastOCR请求参数结构体
@@ -9921,6 +10019,43 @@ export interface ImageCoordinates {
9921
10019
  */
9922
10020
  Height?: number;
9923
10021
  }
10022
+ /**
10023
+ * SubmitMultimodalDocParseJob请求参数结构体
10024
+ */
10025
+ export interface SubmitMultimodalDocParseJobRequest {
10026
+ /**
10027
+ * <p>支持解析的文件类型。取值:</p><ul><li>1:PDF 文档</li><li>2:Word 文档(.doc/.docx)</li><li>3:PPT 演示文稿(.ppt/.pptx)</li><li>4:Excel 表格(.xls/.xlsx)</li><li>5:Markdown 文档(.md)</li><li>6:纯文本文件(.txt)</li><li>7:图片文件(.png/.jpg/.jpeg 等)</li><li>8:WPS 文档<br>支持的文件大小:PDF/WORD/PPT 支持 150M 且 300 页。</li></ul>
10028
+ */
10029
+ FileType: number;
10030
+ /**
10031
+ * <p>文件的 Url 地址,支持 FileType 参数对应的文件格式及大小。文件下载时间不超过 3 秒。文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
10032
+ */
10033
+ FileUrl?: string;
10034
+ /**
10035
+ * <p>文件的 Base64 值。支持 FileType 参数对应的文件格式,支持的文件大小不超过 8M。文件下载时间不超过 3 秒。<br>文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。</p>
10036
+ */
10037
+ FileBase64?: string;
10038
+ /**
10039
+ * <p>输出格式。<br>1:json格式<br>2:markdown格式<br>3:xml格式<br>9:json+markdown+xml格式</p>
10040
+ */
10041
+ ResultType?: number;
10042
+ /**
10043
+ * <p>是否开启子图提取,默认为 false。</p>
10044
+ */
10045
+ EnableSubImg?: boolean;
10046
+ /**
10047
+ * <p>文档的起始页码。用来指定识别的起始页码,识别的页码包含当前值,不填时默认从文档第一页开始解析。本参数与 FileEndPageNumber 可分开填写,也可只填其中一个。</p>
10048
+ */
10049
+ FileStartPageNumber?: number;
10050
+ /**
10051
+ * <p>文档的结束页码。用来指定识别的结束页码,识别的页码包含当前值,不填时默认解析到文档最后一页。本参数与 FileStartPageNumber 可分开填写,也可只填其中一个。</p>
10052
+ */
10053
+ FileEndPageNumber?: number;
10054
+ /**
10055
+ * <p>任务类型,默认为 0。取值:</p><ul><li>0:默认</li><li>1:Free OCR</li><li>2:OCR</li><li>3:表格识别</li><li>4:代码识别</li></ul>
10056
+ */
10057
+ TaskType?: number;
10058
+ }
9924
10059
  /**
9925
10060
  * VerifyBizLicenseEnterprise3请求参数结构体
9926
10061
  */
@@ -10049,6 +10184,19 @@ export interface RideHailingTransportLicenseOCRResponse {
10049
10184
  */
10050
10185
  RequestId?: string;
10051
10186
  }
10187
+ /**
10188
+ * TextDetect返回参数结构体
10189
+ */
10190
+ export interface TextDetectResponse {
10191
+ /**
10192
+ * 图片中是否包含文字。
10193
+ */
10194
+ HasText?: boolean;
10195
+ /**
10196
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10197
+ */
10198
+ RequestId?: string;
10199
+ }
10052
10200
  /**
10053
10201
  * 候选字符集(包含候选字Character以及置信度Confidence)
10054
10202
  */
@@ -10667,17 +10815,17 @@ export interface EstateCertOCRRequest {
10667
10815
  ImageUrl?: string;
10668
10816
  }
10669
10817
  /**
10670
- * 销货清单
10818
+ * RunRerank返回参数结构体
10671
10819
  */
10672
- export interface SaleInventory {
10820
+ export interface RunRerankResponse {
10673
10821
  /**
10674
- * 发票名称
10822
+ * <p>重排序后的结果列表,按相关性得分从高到低排列。</p>
10675
10823
  */
10676
- Title?: string;
10824
+ Results?: Array<RerankResult>;
10677
10825
  /**
10678
- * 识别出的字段名称(关键字)
10826
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10679
10827
  */
10680
- Content?: Array<OtherInvoiceItem>;
10828
+ RequestId?: string;
10681
10829
  }
10682
10830
  /**
10683
10831
  * DescribeQuestionSplitJob返回参数结构体