tencentcloud-sdk-nodejs-ocr 4.1.305 → 4.1.306

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.
@@ -27,8 +27,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
27
27
  async VatInvoiceVerifyNew(req, cb) {
28
28
  return this.request("VatInvoiceVerifyNew", req, cb);
29
29
  }
30
- async QrcodeOCR(req, cb) {
31
- return this.request("QrcodeOCR", req, cb);
30
+ async PassportOCR(req, cb) {
31
+ return this.request("PassportOCR", req, cb);
32
32
  }
33
33
  async GeneralAccurateOCR(req, cb) {
34
34
  return this.request("GeneralAccurateOCR", req, cb);
@@ -36,6 +36,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
36
36
  async VerifyBizLicenseEnterprise4(req, cb) {
37
37
  return this.request("VerifyBizLicenseEnterprise4", req, cb);
38
38
  }
39
+ async QrcodeOCR(req, cb) {
40
+ return this.request("QrcodeOCR", req, cb);
41
+ }
39
42
  async RecognizeTableAccurateOCR(req, cb) {
40
43
  return this.request("RecognizeTableAccurateOCR", req, cb);
41
44
  }
@@ -144,8 +147,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
144
147
  async ArithmeticOCR(req, cb) {
145
148
  return this.request("ArithmeticOCR", req, cb);
146
149
  }
147
- async LicensePlateOCR(req, cb) {
148
- return this.request("LicensePlateOCR", req, cb);
150
+ async DescribeQuestionSplitJob(req, cb) {
151
+ return this.request("DescribeQuestionSplitJob", req, cb);
149
152
  }
150
153
  async EstateCertOCR(req, cb) {
151
154
  return this.request("EstateCertOCR", req, cb);
@@ -207,8 +210,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
207
210
  async EraseHandwrittenImageOCR(req, cb) {
208
211
  return this.request("EraseHandwrittenImageOCR", req, cb);
209
212
  }
210
- async PassportOCR(req, cb) {
211
- return this.request("PassportOCR", req, cb);
213
+ async LicensePlateOCR(req, cb) {
214
+ return this.request("LicensePlateOCR", req, cb);
212
215
  }
213
216
  async GetOCRToken(req, cb) {
214
217
  return this.request("GetOCRToken", req, cb);
@@ -219,6 +222,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
219
222
  async VerifyBizLicenseEnterprise3(req, cb) {
220
223
  return this.request("VerifyBizLicenseEnterprise3", req, cb);
221
224
  }
225
+ async SubmitQuestionSplitJob(req, cb) {
226
+ return this.request("SubmitQuestionSplitJob", req, cb);
227
+ }
222
228
  async MixedInvoiceOCR(req, cb) {
223
229
  return this.request("MixedInvoiceOCR", req, cb);
224
230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.305",
3
+ "version": "4.1.306",
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, 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, 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";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -102,11 +102,13 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
102
102
  */
103
103
  VatInvoiceVerifyNew(req: VatInvoiceVerifyNewRequest, cb?: (error: string, rep: VatInvoiceVerifyNewResponse) => void): Promise<VatInvoiceVerifyNewResponse>;
104
104
  /**
105
- * 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
105
+ * <b>此接口为护照识别(中国大陆地区护照)的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/37657">护照识别(多国多地区护照)</a>。</b>
106
106
 
107
- 默认接口请求频率限制:5次/秒。
107
+ 本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
108
+
109
+ 默认接口请求频率限制:10次/秒。
108
110
  */
109
- QrcodeOCR(req: QrcodeOCRRequest, cb?: (error: string, rep: QrcodeOCRResponse) => void): Promise<QrcodeOCRResponse>;
111
+ PassportOCR(req: PassportOCRRequest, cb?: (error: string, rep: PassportOCRResponse) => void): Promise<PassportOCRResponse>;
110
112
  /**
111
113
  * 本接口支持图像整体文字的检测和识别。支持中文、英文、中英文、数字和特殊字符号的识别,并返回文字框位置和文字内容。
112
114
 
@@ -172,6 +174,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
172
174
  按周更新企业信息变更情况,如遇到未及时更新的情况,可联系在线客服转产品团队进行人工处理。
173
175
  */
174
176
  VerifyBizLicenseEnterprise4(req: VerifyBizLicenseEnterprise4Request, cb?: (error: string, rep: VerifyBizLicenseEnterprise4Response) => void): Promise<VerifyBizLicenseEnterprise4Response>;
177
+ /**
178
+ * 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
179
+
180
+ 默认接口请求频率限制:5次/秒。
181
+ */
182
+ QrcodeOCR(req: QrcodeOCRRequest, cb?: (error: string, rep: QrcodeOCRResponse) => void): Promise<QrcodeOCRResponse>;
175
183
  /**
176
184
  * 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
177
185
 
@@ -500,11 +508,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
500
508
  */
501
509
  ArithmeticOCR(req: ArithmeticOCRRequest, cb?: (error: string, rep: ArithmeticOCRResponse) => void): Promise<ArithmeticOCRResponse>;
502
510
  /**
503
- * 本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号码与车牌颜色信息。
504
-
505
- 默认接口请求频率限制:10次/秒。
506
- */
507
- LicensePlateOCR(req: LicensePlateOCRRequest, cb?: (error: string, rep: LicensePlateOCRResponse) => void): Promise<LicensePlateOCRResponse>;
511
+ * 异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
512
+ */
513
+ DescribeQuestionSplitJob(req: DescribeQuestionSplitJobRequest, cb?: (error: string, rep: DescribeQuestionSplitJobResponse) => void): Promise<DescribeQuestionSplitJobResponse>;
508
514
  /**
509
515
  * 本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。
510
516
 
@@ -695,13 +701,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
695
701
  */
696
702
  EraseHandwrittenImageOCR(req: EraseHandwrittenImageOCRRequest, cb?: (error: string, rep: EraseHandwrittenImageOCRResponse) => void): Promise<EraseHandwrittenImageOCRResponse>;
697
703
  /**
698
- * <b>此接口为护照识别(中国大陆地区护照)的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/37657">护照识别(多国多地区护照)</a>。</b>
699
-
700
- 本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
704
+ * 本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号码与车牌颜色信息。
701
705
 
702
706
  默认接口请求频率限制:10次/秒。
703
707
  */
704
- PassportOCR(req: PassportOCRRequest, cb?: (error: string, rep: PassportOCRResponse) => void): Promise<PassportOCRResponse>;
708
+ LicensePlateOCR(req: LicensePlateOCRRequest, cb?: (error: string, rep: LicensePlateOCRResponse) => void): Promise<LicensePlateOCRResponse>;
705
709
  /**
706
710
  * 获取ocr的token值
707
711
  */
@@ -717,6 +721,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
717
721
  按周更新企业信息变更情况,如遇到未及时更新的情况,可联系在线客服转产品团队进行人工处理。
718
722
  */
719
723
  VerifyBizLicenseEnterprise3(req: VerifyBizLicenseEnterprise3Request, cb?: (error: string, rep: VerifyBizLicenseEnterprise3Response) => void): Promise<VerifyBizLicenseEnterprise3Response>;
724
+ /**
725
+ * 异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
726
+ */
727
+ SubmitQuestionSplitJob(req: SubmitQuestionSplitJobRequest, cb?: (error: string, rep: SubmitQuestionSplitJobResponse) => void): Promise<SubmitQuestionSplitJobResponse>;
720
728
  /**
721
729
  * 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
722
730
 
@@ -140,12 +140,14 @@ class Client extends TencentCloudCommon.AbstractClient {
140
140
  return this.request("VatInvoiceVerifyNew", req, cb);
141
141
  }
142
142
  /**
143
- * 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
143
+ * <b>此接口为护照识别(中国大陆地区护照)的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/37657">护照识别(多国多地区护照)</a>。</b>
144
144
 
145
- 默认接口请求频率限制:5次/秒。
145
+ 本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
146
+
147
+ 默认接口请求频率限制:10次/秒。
146
148
  */
147
- async QrcodeOCR(req, cb) {
148
- return this.request("QrcodeOCR", req, cb);
149
+ async PassportOCR(req, cb) {
150
+ return this.request("PassportOCR", req, cb);
149
151
  }
150
152
  /**
151
153
  * 本接口支持图像整体文字的检测和识别。支持中文、英文、中英文、数字和特殊字符号的识别,并返回文字框位置和文字内容。
@@ -216,6 +218,14 @@ class Client extends TencentCloudCommon.AbstractClient {
216
218
  async VerifyBizLicenseEnterprise4(req, cb) {
217
219
  return this.request("VerifyBizLicenseEnterprise4", req, cb);
218
220
  }
221
+ /**
222
+ * 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
223
+
224
+ 默认接口请求频率限制:5次/秒。
225
+ */
226
+ async QrcodeOCR(req, cb) {
227
+ return this.request("QrcodeOCR", req, cb);
228
+ }
219
229
  /**
220
230
  * 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
221
231
 
@@ -616,12 +626,10 @@ class Client extends TencentCloudCommon.AbstractClient {
616
626
  return this.request("ArithmeticOCR", req, cb);
617
627
  }
618
628
  /**
619
- * 本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号码与车牌颜色信息。
620
-
621
- 默认接口请求频率限制:10次/秒。
622
- */
623
- async LicensePlateOCR(req, cb) {
624
- return this.request("LicensePlateOCR", req, cb);
629
+ * 异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
630
+ */
631
+ async DescribeQuestionSplitJob(req, cb) {
632
+ return this.request("DescribeQuestionSplitJob", req, cb);
625
633
  }
626
634
  /**
627
635
  * 本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。
@@ -853,14 +861,12 @@ class Client extends TencentCloudCommon.AbstractClient {
853
861
  return this.request("EraseHandwrittenImageOCR", req, cb);
854
862
  }
855
863
  /**
856
- * <b>此接口为护照识别(中国大陆地区护照)的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/37657">护照识别(多国多地区护照)</a>。</b>
857
-
858
- 本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
864
+ * 本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号码与车牌颜色信息。
859
865
 
860
866
  默认接口请求频率限制:10次/秒。
861
867
  */
862
- async PassportOCR(req, cb) {
863
- return this.request("PassportOCR", req, cb);
868
+ async LicensePlateOCR(req, cb) {
869
+ return this.request("LicensePlateOCR", req, cb);
864
870
  }
865
871
  /**
866
872
  * 获取ocr的token值
@@ -883,6 +889,12 @@ class Client extends TencentCloudCommon.AbstractClient {
883
889
  async VerifyBizLicenseEnterprise3(req, cb) {
884
890
  return this.request("VerifyBizLicenseEnterprise3", req, cb);
885
891
  }
892
+ /**
893
+ * 异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
894
+ */
895
+ async SubmitQuestionSplitJob(req, cb) {
896
+ return this.request("SubmitQuestionSplitJob", req, cb);
897
+ }
886
898
  /**
887
899
  * 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
888
900
 
@@ -6843,21 +6843,66 @@ export interface AdvertiseTextDetection {
6843
6843
  AdvancedInfo?: string;
6844
6844
  }
6845
6845
  /**
6846
- * 用于风险提示和表示不同场景下的风险程度
6846
+ * 外国人永久居留证信息返回
6847
6847
  */
6848
- export interface SceneWarnInfo {
6848
+ export interface PermanentResidencePermitInfo {
6849
6849
  /**
6850
- * <p>是否存在该提示</p>
6850
+ * 姓名(人像面)
6851
6851
  */
6852
- IsWarn?: boolean;
6852
+ Name?: ContentInfo;
6853
6853
  /**
6854
- * <p>风险程度(0-1)</p>
6854
+ * 性别(人像面)
6855
6855
  */
6856
- RiskConfidence?: number;
6856
+ Sex?: ContentInfo;
6857
6857
  /**
6858
- * <p>提示位置四点坐标,仅部分提示类型支持返回提示位置坐标</p>
6858
+ * 民族(人像面)
6859
6859
  */
6860
- Polygon?: Array<Polygon>;
6860
+ Nation?: ContentInfo;
6861
+ /**
6862
+ * 出生日期(人像面)
6863
+ */
6864
+ Birth?: ContentInfo;
6865
+ /**
6866
+ * 地址(人像面)
6867
+ */
6868
+ Address?: ContentInfo;
6869
+ /**
6870
+ * 公民身份号码(人像面)
6871
+ */
6872
+ IdNum?: ContentInfo;
6873
+ /**
6874
+ * 发证机关(国徽面)
6875
+ */
6876
+ Authority?: ContentInfo;
6877
+ /**
6878
+ * 证件有效期(国徽面)
6879
+ */
6880
+ ValidDate?: ContentInfo;
6881
+ /**
6882
+ * WarnInfos,告警信息
6883
+ */
6884
+ WarnInfos?: CardWarnInfo;
6885
+ /**
6886
+ * IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
6887
+ */
6888
+ CardImage?: ContentInfo;
6889
+ /**
6890
+ * Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
6891
+ */
6892
+ PortraitImage?: ContentInfo;
6893
+ /**
6894
+ * 持证人持有号码,外国人永久居留证 返回该字段
6895
+ */
6896
+ HolderNum?: ContentInfo;
6897
+ /**
6898
+ * 国籍,外国人永久居留证 返回该字段
6899
+ */
6900
+ Nationality?: ContentInfo;
6901
+ /**
6902
+ * 英文名
6903
+ 示例值:Ming Li
6904
+ */
6905
+ EnName?: ContentInfo;
6861
6906
  }
6862
6907
  /**
6863
6908
  * EraseHandwrittenImageOCR返回参数结构体
@@ -7150,6 +7195,23 @@ export interface NonTaxIncomeBill {
7150
7195
  */
7151
7196
  BillName?: string;
7152
7197
  }
7198
+ /**
7199
+ * 用于风险提示和表示不同场景下的风险程度
7200
+ */
7201
+ export interface SceneWarnInfo {
7202
+ /**
7203
+ * <p>是否存在该提示</p>
7204
+ */
7205
+ IsWarn?: boolean;
7206
+ /**
7207
+ * <p>风险程度(0-1)</p>
7208
+ */
7209
+ RiskConfidence?: number;
7210
+ /**
7211
+ * <p>提示位置四点坐标,仅部分提示类型支持返回提示位置坐标</p>
7212
+ */
7213
+ Polygon?: Array<Polygon>;
7214
+ }
7153
7215
  /**
7154
7216
  * VerifyOfdVatInvoiceOCR请求参数结构体
7155
7217
  */
@@ -9371,6 +9433,23 @@ export interface PermitOCRRequest {
9371
9433
  */
9372
9434
  CropPortrait?: boolean;
9373
9435
  }
9436
+ /**
9437
+ * SubmitQuestionSplitJob返回参数结构体
9438
+ */
9439
+ export interface SubmitQuestionSplitJobResponse {
9440
+ /**
9441
+ * <p>任务唯一ID。由服务端生成。</p>
9442
+ */
9443
+ JobId?: string;
9444
+ /**
9445
+ * <p>PDF 转完之后的图片压缩包列表地址。</p>
9446
+ */
9447
+ ImageZipUrl?: string;
9448
+ /**
9449
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9450
+ */
9451
+ RequestId?: string;
9452
+ }
9374
9453
  /**
9375
9454
  * 机票行程单
9376
9455
  */
@@ -9839,6 +9918,23 @@ export interface TollInvoice {
9839
9918
  */
9840
9919
  QRCodeMark?: number;
9841
9920
  }
9921
+ /**
9922
+ * SubmitQuestionSplitJob请求参数结构体
9923
+ */
9924
+ export interface SubmitQuestionSplitJobRequest {
9925
+ /**
9926
+ * <p>批量ImageUrl图片入口。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p><p>入参限制:要求pdf只能有一个url或base64</p>
9927
+ */
9928
+ ImageUrlList?: Array<string>;
9929
+ /**
9930
+ * <p>批量base64图片入口。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p><p>入参限制:要求pdf只能有一个url或base64</p>
9931
+ */
9932
+ ImageBase64List?: Array<string>;
9933
+ /**
9934
+ * <p>选择切题模型</p><p>枚举值:</p><ul><li>youtu_crop: 轻量化切题模型,运算速度更快,适合常规切题</li><li>youtu_crop_pro: 属于切题精调大模型,针对双栏、跨栏等复杂版式识别精度大幅提升,但推理耗时更长</li></ul><p>默认值:youtu_crop</p>
9935
+ */
9936
+ ModelType?: string;
9937
+ }
9842
9938
  /**
9843
9939
  * 企业证照单个字段的内容
9844
9940
  */
@@ -9920,26 +10016,30 @@ export interface DetectedWordCoordPoint {
9920
10016
  */
9921
10017
  export interface Element {
9922
10018
  /**
9923
- * 元素内容,当type为figure时该字段内容为图片的位置
10019
+ * <p>元素内容,当type为figure时该字段内容为图片的位置</p>
9924
10020
  */
9925
10021
  Text?: string;
9926
10022
  /**
9927
- * 元素坐标
10023
+ * <p>元素坐标</p>
9928
10024
  */
9929
10025
  Coord?: Polygon;
9930
10026
  /**
9931
- * 元素group类型,包括multiple-choice(选择题)、fill-in-the-blank(填空题)、problem-solving(解答题)、arithmetic(算术题)
10027
+ * <p>元素group类型,包括multiple-choice(选择题)、fill-in-the-blank(填空题)、problem-solving(解答题)、arithmetic(算术题)</p>
9932
10028
  */
9933
10029
  GroupType?: string;
9934
10030
  /**
9935
- * 结果列表
10031
+ * <p>结果列表</p>
9936
10032
  注意:此字段可能返回 null,表示取不到有效值。
9937
10033
  */
9938
10034
  ResultList?: Array<ResultList>;
9939
10035
  /**
9940
- * 元素索引
10036
+ * <p>元素索引</p>
9941
10037
  */
9942
10038
  Index?: number;
10039
+ /**
10040
+ * <p>元素所在页</p><p>单位:页</p><p>默认值:1</p>
10041
+ */
10042
+ PageIndex?: number;
9943
10043
  }
9944
10044
  /**
9945
10045
  * SubmitExtractDocAgentJob请求参数结构体
@@ -10370,66 +10470,29 @@ export interface SaleInventory {
10370
10470
  Content?: Array<OtherInvoiceItem>;
10371
10471
  }
10372
10472
  /**
10373
- * 外国人永久居留证信息返回
10473
+ * DescribeQuestionSplitJob返回参数结构体
10374
10474
  */
10375
- export interface PermanentResidencePermitInfo {
10475
+ export interface DescribeQuestionSplitJobResponse {
10376
10476
  /**
10377
- * 姓名(人像面)
10378
- */
10379
- Name?: ContentInfo;
10380
- /**
10381
- * 性别(人像面)
10382
- */
10383
- Sex?: ContentInfo;
10384
- /**
10385
- * 民族(人像面)
10477
+ * <p>切题详情</p>
10386
10478
  */
10387
- Nation?: ContentInfo;
10388
- /**
10389
- * 出生日期(人像面)
10390
- */
10391
- Birth?: ContentInfo;
10392
- /**
10393
- * 地址(人像面)
10394
- */
10395
- Address?: ContentInfo;
10396
- /**
10397
- * 公民身份号码(人像面)
10398
- */
10399
- IdNum?: ContentInfo;
10400
- /**
10401
- * 发证机关(国徽面)
10402
- */
10403
- Authority?: ContentInfo;
10404
- /**
10405
- * 证件有效期(国徽面)
10406
- */
10407
- ValidDate?: ContentInfo;
10408
- /**
10409
- * WarnInfos,告警信息
10410
- */
10411
- WarnInfos?: CardWarnInfo;
10412
- /**
10413
- * IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
10414
- */
10415
- CardImage?: ContentInfo;
10479
+ QuestionInfo?: Array<QuestionInfo>;
10416
10480
  /**
10417
- * Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
10481
+ * <p>任务执行错误码。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
10418
10482
  */
10419
- PortraitImage?: ContentInfo;
10483
+ ErrorCode?: string;
10420
10484
  /**
10421
- * 持证人持有号码,外国人永久居留证 返回该字段
10485
+ * <p>任务执行错误信息。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
10422
10486
  */
10423
- HolderNum?: ContentInfo;
10487
+ ErrorMessage?: string;
10424
10488
  /**
10425
- * 国籍,外国人永久居留证 返回该字段
10489
+ * <p>任务状态。</p><p>枚举值:</p><ul><li>WAIT: 等待中</li><li>RUN: 执行中</li><li>FAIL: 任务失败</li><li>DONE: 任务成功</li></ul>
10426
10490
  */
10427
- Nationality?: ContentInfo;
10491
+ JobStatus?: string;
10428
10492
  /**
10429
- * 英文名
10430
- 示例值:Ming Li
10493
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10431
10494
  */
10432
- EnName?: ContentInfo;
10495
+ RequestId?: string;
10433
10496
  }
10434
10497
  /**
10435
10498
  * BizLicenseOCR返回参数结构体
@@ -10547,64 +10610,52 @@ export interface BizLicenseOCRResponse {
10547
10610
  */
10548
10611
  export interface ResultList {
10549
10612
  /**
10550
- * 题干
10613
+ * <p>题干</p>
10551
10614
  注意:此字段可能返回 null,表示取不到有效值。
10552
10615
  */
10553
10616
  Question?: Array<Element>;
10554
10617
  /**
10555
- * 选项
10618
+ * <p>选项</p>
10556
10619
  注意:此字段可能返回 null,表示取不到有效值。
10557
10620
  */
10558
10621
  Option?: Array<Element>;
10559
10622
  /**
10560
- * 插图
10623
+ * <p>插图</p>
10561
10624
  注意:此字段可能返回 null,表示取不到有效值。
10562
10625
  */
10563
10626
  Figure?: Array<Element>;
10564
10627
  /**
10565
- * 表格
10628
+ * <p>表格</p>
10566
10629
  注意:此字段可能返回 null,表示取不到有效值。
10567
10630
  */
10568
10631
  Table?: Array<Element>;
10569
10632
  /**
10570
- * 答案
10633
+ * <p>答案</p>
10571
10634
  注意:此字段可能返回 null,表示取不到有效值。
10572
10635
  */
10573
10636
  Answer?: Array<Element>;
10574
10637
  /**
10575
- * 解析
10638
+ * <p>解析</p>
10576
10639
  */
10577
10640
  Parse?: Array<Element>;
10578
10641
  /**
10579
- * 整题的坐标
10642
+ * <p>整题的坐标,多页单题跨页/单页单题跨栏场景下,存在一道题有多个坐标</p>
10580
10643
  注意:此字段可能返回 null,表示取不到有效值。
10581
10644
  */
10582
10645
  Coord?: Array<Polygon>;
10646
+ /**
10647
+ * <p>多坐标返回,显示坐标所在页</p><p>默认值:[]</p>
10648
+ */
10649
+ CoordPageIndex?: Array<number | bigint>;
10583
10650
  }
10584
10651
  /**
10585
- * VatInvoiceOCR返回参数结构体
10652
+ * DescribeQuestionSplitJob请求参数结构体
10586
10653
  */
10587
- export interface VatInvoiceOCRResponse {
10588
- /**
10589
- * 检测到的文本信息,具体内容请点击左侧链接。
10590
- */
10591
- VatInvoiceInfos?: Array<TextVatInvoice>;
10592
- /**
10593
- * 明细条目。VatInvoiceInfos中关于明细项的具体条目。
10594
- */
10595
- Items?: Array<VatInvoiceItem>;
10654
+ export interface DescribeQuestionSplitJobRequest {
10596
10655
  /**
10597
- * 默认值为0。如果图片为PDF时,返回PDF的总页数。
10598
- */
10599
- PdfPageSize?: number;
10600
- /**
10601
- * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
10602
- */
10603
- Angle?: number;
10604
- /**
10605
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10656
+ * <p>任务唯一ID。由服务端生成。</p>
10606
10657
  */
10607
- RequestId?: string;
10658
+ JobId?: string;
10608
10659
  }
10609
10660
  /**
10610
10661
  * 印章信息
@@ -10769,6 +10820,31 @@ export interface BusinessCardOCRRequest {
10769
10820
  */
10770
10821
  Config?: string;
10771
10822
  }
10823
+ /**
10824
+ * VatInvoiceOCR返回参数结构体
10825
+ */
10826
+ export interface VatInvoiceOCRResponse {
10827
+ /**
10828
+ * 检测到的文本信息,具体内容请点击左侧链接。
10829
+ */
10830
+ VatInvoiceInfos?: Array<TextVatInvoice>;
10831
+ /**
10832
+ * 明细条目。VatInvoiceInfos中关于明细项的具体条目。
10833
+ */
10834
+ Items?: Array<VatInvoiceItem>;
10835
+ /**
10836
+ * 默认值为0。如果图片为PDF时,返回PDF的总页数。
10837
+ */
10838
+ PdfPageSize?: number;
10839
+ /**
10840
+ * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
10841
+ */
10842
+ Angle?: number;
10843
+ /**
10844
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10845
+ */
10846
+ RequestId?: string;
10847
+ }
10772
10848
  /**
10773
10849
  * RecognizeValidIDCardOCR返回参数结构体
10774
10850
  */