tencentcloud-sdk-nodejs-ocr 4.1.133 → 4.1.135

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.
@@ -42,6 +42,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
42
42
  async PermitOCR(req, cb) {
43
43
  return this.request("PermitOCR", req, cb);
44
44
  }
45
+ async QuestionSplitLayoutOCR(req, cb) {
46
+ return this.request("QuestionSplitLayoutOCR", req, cb);
47
+ }
45
48
  async BusInvoiceOCR(req, cb) {
46
49
  return this.request("BusInvoiceOCR", req, cb);
47
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.133",
3
+ "version": "4.1.135",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, VinOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, SubmitExtractDocAgentJobResponse, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, RecognizeTableMultiOCRResponse, RecognizeGeneralTextImageWarnResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, AdvertiseOCRResponse, VehicleLicenseOCRRequest, VatRollInvoiceOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, RecognizeStoreNameResponse, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, VatInvoiceVerifyNewResponse, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, VinOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, RecognizeTravelCardOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, SubmitExtractDocAgentJobResponse, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, RecognizeTableMultiOCRResponse, RecognizeGeneralTextImageWarnResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeTravelCardOCRResponse, VatRollInvoiceOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, RecognizeStoreNameResponse, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, VatInvoiceVerifyNewResponse, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -161,7 +161,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
161
161
  */
162
162
  TrainTicketOCR(req: TrainTicketOCRRequest, cb?: (error: string, rep: TrainTicketOCRResponse) => void): Promise<TrainTicketOCRResponse>;
163
163
  /**
164
- * <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
164
+ * 不再维护,功能已切到其它接口
165
+
166
+ <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
165
167
  本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
166
168
  目前接口对合肥、成都、佛山三个城市的房产证版式识别较好。
167
169
 
@@ -187,6 +189,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
187
189
  默认接口请求频率限制:10次/秒。
188
190
  */
189
191
  PermitOCR(req: PermitOCRRequest, cb?: (error: string, rep: PermitOCRResponse) => void): Promise<PermitOCRResponse>;
192
+ /**
193
+ * 试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。
194
+
195
+ 默认接口请求频率限制:2次/秒。
196
+ */
197
+ QuestionSplitLayoutOCR(req: QuestionSplitLayoutOCRRequest, cb?: (error: string, rep: QuestionSplitLayoutOCRResponse) => void): Promise<QuestionSplitLayoutOCRResponse>;
190
198
  /**
191
199
  * <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
192
200
  本接口支持识别公路汽车客票关键字段的识别,包括发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次等。
@@ -228,7 +236,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
228
236
  */
229
237
  RideHailingDriverLicenseOCR(req: RideHailingDriverLicenseOCRRequest, cb?: (error: string, rep: RideHailingDriverLicenseOCRResponse) => void): Promise<RideHailingDriverLicenseOCRResponse>;
230
238
  /**
231
- * <b>因技术原因,本接口将不再迭代升级。有效身份证件识别(鉴伪版)可支持此类证件的识别,并包含质量和PS告警,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/112345">有效身份证件识别(鉴伪版)</a>。</b>
239
+ * 不再维护,功能已切到其它接口
240
+
241
+ <b>因技术原因,本接口将不再迭代升级。有效身份证件识别(鉴伪版)可支持此类证件的识别,并包含质量和PS告警,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/112345">有效身份证件识别(鉴伪版)</a>。</b>
232
242
  外国人永久居留身份证识别
233
243
  */
234
244
  RecognizeForeignPermanentResidentIdCard(req: RecognizeForeignPermanentResidentIdCardRequest, cb?: (error: string, rep: RecognizeForeignPermanentResidentIdCardResponse) => void): Promise<RecognizeForeignPermanentResidentIdCardResponse>;
@@ -667,12 +677,16 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
667
677
  */
668
678
  IDCardOCR(req: IDCardOCRRequest, cb?: (error: string, rep: IDCardOCRResponse) => void): Promise<IDCardOCRResponse>;
669
679
  /**
670
- * <b>因技术原因,本接口将不再迭代升级。通用卡证鉴伪可支持更多告警类型,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/115916">通用卡证鉴伪</a>。</b>
680
+ * 不再维护,功能已切到其它接口
681
+
682
+ <b>因技术原因,本接口将不再迭代升级。通用卡证鉴伪可支持更多告警类型,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/115916">通用卡证鉴伪</a>。</b>
671
683
  本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
672
684
  */
673
685
  RecognizeGeneralTextImageWarn(req: RecognizeGeneralTextImageWarnRequest, cb?: (error: string, rep: RecognizeGeneralTextImageWarnResponse) => void): Promise<RecognizeGeneralTextImageWarnResponse>;
674
686
  /**
675
- * <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
687
+ * 不再维护,功能已切到其它接口
688
+
689
+ <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
676
690
  本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。
677
691
 
678
692
  默认接口请求频率限制:5次/秒。
@@ -882,7 +896,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
882
896
  */
883
897
  DutyPaidProofOCR(req: DutyPaidProofOCRRequest, cb?: (error: string, rep: DutyPaidProofOCRResponse) => void): Promise<DutyPaidProofOCRResponse>;
884
898
  /**
885
- * <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
899
+ * 不再维护,功能已切到其它接口
900
+
901
+ <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
886
902
  本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
887
903
 
888
904
  默认接口请求频率限制:5次/秒。
@@ -201,7 +201,9 @@ class Client extends TencentCloudCommon.AbstractClient {
201
201
  return this.request("TrainTicketOCR", req, cb);
202
202
  }
203
203
  /**
204
- * <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
204
+ * 不再维护,功能已切到其它接口
205
+
206
+ <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
205
207
  本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
206
208
  目前接口对合肥、成都、佛山三个城市的房产证版式识别较好。
207
209
 
@@ -235,6 +237,14 @@ class Client extends TencentCloudCommon.AbstractClient {
235
237
  async PermitOCR(req, cb) {
236
238
  return this.request("PermitOCR", req, cb);
237
239
  }
240
+ /**
241
+ * 试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。
242
+
243
+ 默认接口请求频率限制:2次/秒。
244
+ */
245
+ async QuestionSplitLayoutOCR(req, cb) {
246
+ return this.request("QuestionSplitLayoutOCR", req, cb);
247
+ }
238
248
  /**
239
249
  * <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
240
250
  本接口支持识别公路汽车客票关键字段的识别,包括发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次等。
@@ -290,7 +300,9 @@ class Client extends TencentCloudCommon.AbstractClient {
290
300
  return this.request("RideHailingDriverLicenseOCR", req, cb);
291
301
  }
292
302
  /**
293
- * <b>因技术原因,本接口将不再迭代升级。有效身份证件识别(鉴伪版)可支持此类证件的识别,并包含质量和PS告警,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/112345">有效身份证件识别(鉴伪版)</a>。</b>
303
+ * 不再维护,功能已切到其它接口
304
+
305
+ <b>因技术原因,本接口将不再迭代升级。有效身份证件识别(鉴伪版)可支持此类证件的识别,并包含质量和PS告警,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/112345">有效身份证件识别(鉴伪版)</a>。</b>
294
306
  外国人永久居留身份证识别
295
307
  */
296
308
  async RecognizeForeignPermanentResidentIdCard(req, cb) {
@@ -775,14 +787,18 @@ class Client extends TencentCloudCommon.AbstractClient {
775
787
  return this.request("IDCardOCR", req, cb);
776
788
  }
777
789
  /**
778
- * <b>因技术原因,本接口将不再迭代升级。通用卡证鉴伪可支持更多告警类型,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/115916">通用卡证鉴伪</a>。</b>
790
+ * 不再维护,功能已切到其它接口
791
+
792
+ <b>因技术原因,本接口将不再迭代升级。通用卡证鉴伪可支持更多告警类型,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/115916">通用卡证鉴伪</a>。</b>
779
793
  本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
780
794
  */
781
795
  async RecognizeGeneralTextImageWarn(req, cb) {
782
796
  return this.request("RecognizeGeneralTextImageWarn", req, cb);
783
797
  }
784
798
  /**
785
- * <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
799
+ * 不再维护,功能已切到其它接口
800
+
801
+ <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
786
802
  本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。
787
803
 
788
804
  默认接口请求频率限制:5次/秒。
@@ -1058,7 +1074,9 @@ class Client extends TencentCloudCommon.AbstractClient {
1058
1074
  return this.request("DutyPaidProofOCR", req, cb);
1059
1075
  }
1060
1076
  /**
1061
- * <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1077
+ * 不再维护,功能已切到其它接口
1078
+
1079
+ <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1062
1080
  本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
1063
1081
 
1064
1082
  默认接口请求频率限制:5次/秒。
@@ -497,17 +497,33 @@ export interface ExtractDocMultiRequest {
497
497
  OutputLanguage?: string;
498
498
  }
499
499
  /**
500
- * RecognizeTravelCardOCR请求参数结构体
500
+ * QuestionSplitLayoutOCR请求参数结构体
501
501
  */
502
- export interface RecognizeTravelCardOCRRequest {
502
+ export interface QuestionSplitLayoutOCRRequest {
503
503
  /**
504
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
504
+ * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
505
+ */
506
+ ImageUrl?: string;
507
+ /**
508
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
505
509
  */
506
510
  ImageBase64?: string;
507
511
  /**
508
- * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
512
+ * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
509
513
  */
510
- ImageUrl?: string;
514
+ IsPdf?: boolean;
515
+ /**
516
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
517
+ */
518
+ PdfPageNumber?: number;
519
+ /**
520
+ * 是否开启切边增强和弯曲矫正,默认为false不开启
521
+ */
522
+ EnableImageCrop?: boolean;
523
+ /**
524
+ * false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
525
+ */
526
+ UseNewModel?: boolean;
511
527
  }
512
528
  /**
513
529
  * TrainTicketOCR请求参数结构体
@@ -703,6 +719,24 @@ export interface ItemInfo {
703
719
  */
704
720
  Value?: Value;
705
721
  }
722
+ /**
723
+ * 增值税发票卷票信息
724
+ */
725
+ export interface VatRollInvoiceInfo {
726
+ /**
727
+ * 识别出的字段名称(关键字),支持以下字段:
728
+ 发票代码、合计金额(小写)、合计金额(大写)、开票日期、发票号码、购买方识别号、销售方识别号、校验码、销售方名称、购买方名称、发票消费类型、省、市、是否有公司印章、单价、金额、数量、服务类型、品名、种类。
729
+ */
730
+ Name?: string;
731
+ /**
732
+ * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
733
+ */
734
+ Value?: string;
735
+ /**
736
+ * 文本行在旋转纠正之后的图像中的像素坐标。
737
+ */
738
+ Rect?: Rect;
739
+ }
706
740
  /**
707
741
  * TextDetect返回参数结构体
708
742
  */
@@ -2776,41 +2810,17 @@ export interface ExtractDocMultiProResponse {
2776
2810
  RequestId?: string;
2777
2811
  }
2778
2812
  /**
2779
- * 单元格数据
2813
+ * RecognizeTravelCardOCR请求参数结构体
2780
2814
  */
2781
- export interface TableCellInfo {
2782
- /**
2783
- * 单元格左上角的列索引
2784
- */
2785
- ColTl: number;
2786
- /**
2787
- * 单元格左上角的行索引
2788
- */
2789
- RowTl: number;
2790
- /**
2791
- * 单元格右下角的列索引
2792
- */
2793
- ColBr: number;
2794
- /**
2795
- * 单元格右下角的行索引
2796
- */
2797
- RowBr: number;
2798
- /**
2799
- * 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
2800
- */
2801
- Text: string;
2802
- /**
2803
- * 单元格类型
2804
- */
2805
- Type: string;
2815
+ export interface RecognizeTravelCardOCRRequest {
2806
2816
  /**
2807
- * 单元格置信度
2817
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
2808
2818
  */
2809
- Confidence: number;
2819
+ ImageBase64?: string;
2810
2820
  /**
2811
- * 单元格在图像中的四点坐标
2821
+ * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
2812
2822
  */
2813
- Polygon: Array<Coord>;
2823
+ ImageUrl?: string;
2814
2824
  }
2815
2825
  /**
2816
2826
  * GeneralHandwritingOCR请求参数结构体
@@ -5577,29 +5587,13 @@ export interface VehicleRegCertOCRRequest {
5577
5587
  ImageUrl?: string;
5578
5588
  }
5579
5589
  /**
5580
- * RecognizeTravelCardOCR返回参数结构体
5590
+ * QuestionSplitLayoutOCR返回参数结构体
5581
5591
  */
5582
- export interface RecognizeTravelCardOCRResponse {
5583
- /**
5584
- * 行程卡更新时间,格式为:XXXX.XX.XX XX:XX:XX
5585
- */
5586
- Time?: string;
5587
- /**
5588
- * 行程卡颜色:绿色、黄色、红色
5589
- */
5590
- Color?: string;
5591
- /**
5592
- * 7天内到达或途经的城市(自2022年7月8日起,通信行程卡查询结果的覆盖时间范围由“14天”调整为“7天”)
5593
- */
5594
- ReachedCity?: Array<string>;
5595
- /**
5596
- * 7天内到达或途径存在中高风险地区的城市(自2022年6月29日起,通信行程卡取消“星号”标记,改字段将返回空值)
5597
- */
5598
- RiskArea?: Array<string>;
5592
+ export interface QuestionSplitLayoutOCRResponse {
5599
5593
  /**
5600
- * 电话号码
5594
+ * 检测到的文本信息
5601
5595
  */
5602
- Telephone?: string;
5596
+ QuestionInfo?: Array<QuestionInfo>;
5603
5597
  /**
5604
5598
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5605
5599
  */
@@ -7008,22 +7002,17 @@ export interface FinanBillSliceInfo {
7008
7002
  Value?: string;
7009
7003
  }
7010
7004
  /**
7011
- * 增值税发票卷票信息
7005
+ * 购物小票
7012
7006
  */
7013
- export interface VatRollInvoiceInfo {
7014
- /**
7015
- * 识别出的字段名称(关键字),支持以下字段:
7016
- 发票代码、合计金额(小写)、合计金额(大写)、开票日期、发票号码、购买方识别号、销售方识别号、校验码、销售方名称、购买方名称、发票消费类型、省、市、是否有公司印章、单价、金额、数量、服务类型、品名、种类。
7017
- */
7018
- Name?: string;
7007
+ export interface ShoppingReceipt {
7019
7008
  /**
7020
- * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
7009
+ * 发票名称
7021
7010
  */
7022
- Value?: string;
7011
+ Title?: string;
7023
7012
  /**
7024
- * 文本行在旋转纠正之后的图像中的像素坐标。
7013
+ * 识别出的字段名称(关键字)
7025
7014
  */
7026
- Rect?: Rect;
7015
+ Content?: Array<OtherInvoiceItem>;
7027
7016
  }
7028
7017
  /**
7029
7018
  * 敏感数据加密
@@ -9749,6 +9738,183 @@ export interface TaxiTicket {
9749
9738
  */
9750
9739
  CompanySealMark?: number;
9751
9740
  }
9741
+ /**
9742
+ * 二手车销售统一发票
9743
+ */
9744
+ export interface UsedCarPurchaseInvoice {
9745
+ /**
9746
+ * 发票名称
9747
+ */
9748
+ Title?: string;
9749
+ /**
9750
+ * 是否存在二维码(0:没有,1:有)
9751
+ */
9752
+ QRCodeMark?: number;
9753
+ /**
9754
+ * 发票代码
9755
+ */
9756
+ Code?: string;
9757
+ /**
9758
+ * 发票号码
9759
+ */
9760
+ Number?: string;
9761
+ /**
9762
+ * 开票日期
9763
+ */
9764
+ Date?: string;
9765
+ /**
9766
+ * 价税合计(小写)
9767
+ */
9768
+ Total?: string;
9769
+ /**
9770
+ * 价税合计(大写)
9771
+ */
9772
+ TotalCn?: string;
9773
+ /**
9774
+ * 销货单位名称
9775
+ */
9776
+ Seller?: string;
9777
+ /**
9778
+ * 销售方电话
9779
+ */
9780
+ SellerTel?: string;
9781
+ /**
9782
+ * 销售方单位代码/个人身份证号
9783
+ */
9784
+ SellerTaxID?: string;
9785
+ /**
9786
+ * 销售方地址
9787
+ */
9788
+ SellerAddress?: string;
9789
+ /**
9790
+ * 购买方名称
9791
+ */
9792
+ Buyer?: string;
9793
+ /**
9794
+ * 购买方单位代码/个人身份证号
9795
+ */
9796
+ BuyerID?: string;
9797
+ /**
9798
+ * 购买方地址
9799
+ */
9800
+ BuyerAddress?: string;
9801
+ /**
9802
+ * 购买方电话
9803
+ */
9804
+ BuyerTel?: string;
9805
+ /**
9806
+ * 二手车市场
9807
+ */
9808
+ CompanyName?: string;
9809
+ /**
9810
+ * 二手车市场纳税人识别号
9811
+ */
9812
+ CompanyTaxID?: string;
9813
+ /**
9814
+ * 二手车市场开户银行和账号
9815
+ */
9816
+ CompanyBankAccount?: string;
9817
+ /**
9818
+ * 二手车市场电话
9819
+ */
9820
+ CompanyTel?: string;
9821
+ /**
9822
+ * 二手车市场地址
9823
+ */
9824
+ CompanyAddress?: string;
9825
+ /**
9826
+ * 转入地车辆管理所名称
9827
+ */
9828
+ TransferAdministrationName?: string;
9829
+ /**
9830
+ * 车牌号
9831
+ */
9832
+ LicensePlate?: string;
9833
+ /**
9834
+ * 登记证号
9835
+ */
9836
+ RegistrationNumber?: string;
9837
+ /**
9838
+ * 车辆识别代码
9839
+ */
9840
+ VIN?: string;
9841
+ /**
9842
+ * 厂牌型号
9843
+ */
9844
+ VehicleModel?: string;
9845
+ /**
9846
+ * 发票消费类型
9847
+ */
9848
+ Kind?: string;
9849
+ /**
9850
+ * 省
9851
+ */
9852
+ Province?: string;
9853
+ /**
9854
+ * 市
9855
+ */
9856
+ City?: string;
9857
+ /**
9858
+ * 车辆类型
9859
+ */
9860
+ VehicleType?: string;
9861
+ /**
9862
+ * 备注
9863
+ */
9864
+ Remark?: string;
9865
+ /**
9866
+ * 发票联次
9867
+ */
9868
+ FormType?: string;
9869
+ /**
9870
+ * 发票联名
9871
+ */
9872
+ FormName?: string;
9873
+ /**
9874
+ * 是否有公司印章(0:没有,1:有)
9875
+ */
9876
+ CompanySealMark?: number;
9877
+ /**
9878
+ * 经营拍卖单位
9879
+ */
9880
+ AuctionOrgName?: string;
9881
+ /**
9882
+ * 经营拍卖单位地址
9883
+ */
9884
+ AuctionOrgAddress?: string;
9885
+ /**
9886
+ * 经营拍卖单位纳税人识别号
9887
+ */
9888
+ AuctionOrgTaxID?: string;
9889
+ /**
9890
+ * 经营拍卖单位开户银行账号
9891
+ */
9892
+ AuctionOrgBankAccount?: string;
9893
+ /**
9894
+ * 经营拍卖单位电话
9895
+ */
9896
+ AuctionOrgPhone?: string;
9897
+ /**
9898
+ * 开票人
9899
+ */
9900
+ Issuer?: string;
9901
+ /**
9902
+ * 税控码
9903
+ */
9904
+ TaxCode?: string;
9905
+ /**
9906
+ * 机器编号
9907
+ */
9908
+ MachineSerialNumber?: string;
9909
+ /**
9910
+ * 机打发票代码
9911
+ */
9912
+ MachineCode?: string;
9913
+ /**
9914
+ * 机打发票号码
9915
+ */
9916
+ MachineNumber?: string;
9917
+ }
9752
9918
  /**
9753
9919
  * EnglishOCR返回参数结构体
9754
9920
  */
@@ -10501,17 +10667,33 @@ export interface VehicleLicenseOCRRequest {
10501
10667
  TractorCardSide?: string;
10502
10668
  }
10503
10669
  /**
10504
- * 购物小票
10670
+ * RecognizeTravelCardOCR返回参数结构体
10505
10671
  */
10506
- export interface ShoppingReceipt {
10672
+ export interface RecognizeTravelCardOCRResponse {
10507
10673
  /**
10508
- * 发票名称
10674
+ * 行程卡更新时间,格式为:XXXX.XX.XX XX:XX:XX
10509
10675
  */
10510
- Title?: string;
10676
+ Time?: string;
10511
10677
  /**
10512
- * 识别出的字段名称(关键字)
10678
+ * 行程卡颜色:绿色、黄色、红色
10513
10679
  */
10514
- Content?: Array<OtherInvoiceItem>;
10680
+ Color?: string;
10681
+ /**
10682
+ * 7天内到达或途经的城市(自2022年7月8日起,通信行程卡查询结果的覆盖时间范围由“14天”调整为“7天”)
10683
+ */
10684
+ ReachedCity?: Array<string>;
10685
+ /**
10686
+ * 7天内到达或途径存在中高风险地区的城市(自2022年6月29日起,通信行程卡取消“星号”标记,改字段将返回空值)
10687
+ */
10688
+ RiskArea?: Array<string>;
10689
+ /**
10690
+ * 电话号码
10691
+ */
10692
+ Telephone?: string;
10693
+ /**
10694
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10695
+ */
10696
+ RequestId?: string;
10515
10697
  }
10516
10698
  /**
10517
10699
  * VatRollInvoiceOCR请求参数结构体
@@ -11352,181 +11534,41 @@ export interface GeneralFastOCRResponse {
11352
11534
  RequestId?: string;
11353
11535
  }
11354
11536
  /**
11355
- * 二手车销售统一发票
11537
+ * 单元格数据
11356
11538
  */
11357
- export interface UsedCarPurchaseInvoice {
11358
- /**
11359
- * 发票名称
11360
- */
11361
- Title?: string;
11362
- /**
11363
- * 是否存在二维码(0:没有,1:有)
11364
- */
11365
- QRCodeMark?: number;
11366
- /**
11367
- * 发票代码
11368
- */
11369
- Code?: string;
11370
- /**
11371
- * 发票号码
11372
- */
11373
- Number?: string;
11374
- /**
11375
- * 开票日期
11376
- */
11377
- Date?: string;
11378
- /**
11379
- * 价税合计(小写)
11380
- */
11381
- Total?: string;
11382
- /**
11383
- * 价税合计(大写)
11384
- */
11385
- TotalCn?: string;
11386
- /**
11387
- * 销货单位名称
11388
- */
11389
- Seller?: string;
11390
- /**
11391
- * 销售方电话
11392
- */
11393
- SellerTel?: string;
11394
- /**
11395
- * 销售方单位代码/个人身份证号
11396
- */
11397
- SellerTaxID?: string;
11398
- /**
11399
- * 销售方地址
11400
- */
11401
- SellerAddress?: string;
11402
- /**
11403
- * 购买方名称
11404
- */
11405
- Buyer?: string;
11406
- /**
11407
- * 购买方单位代码/个人身份证号
11408
- */
11409
- BuyerID?: string;
11410
- /**
11411
- * 购买方地址
11412
- */
11413
- BuyerAddress?: string;
11414
- /**
11415
- * 购买方电话
11416
- */
11417
- BuyerTel?: string;
11418
- /**
11419
- * 二手车市场
11420
- */
11421
- CompanyName?: string;
11422
- /**
11423
- * 二手车市场纳税人识别号
11424
- */
11425
- CompanyTaxID?: string;
11426
- /**
11427
- * 二手车市场开户银行和账号
11428
- */
11429
- CompanyBankAccount?: string;
11430
- /**
11431
- * 二手车市场电话
11432
- */
11433
- CompanyTel?: string;
11434
- /**
11435
- * 二手车市场地址
11436
- */
11437
- CompanyAddress?: string;
11438
- /**
11439
- * 转入地车辆管理所名称
11440
- */
11441
- TransferAdministrationName?: string;
11442
- /**
11443
- * 车牌号
11444
- */
11445
- LicensePlate?: string;
11446
- /**
11447
- * 登记证号
11448
- */
11449
- RegistrationNumber?: string;
11450
- /**
11451
- * 车辆识别代码
11452
- */
11453
- VIN?: string;
11454
- /**
11455
- * 厂牌型号
11456
- */
11457
- VehicleModel?: string;
11458
- /**
11459
- * 发票消费类型
11460
- */
11461
- Kind?: string;
11462
- /**
11463
- * 省
11464
- */
11465
- Province?: string;
11466
- /**
11467
- * 市
11468
- */
11469
- City?: string;
11470
- /**
11471
- * 车辆类型
11472
- */
11473
- VehicleType?: string;
11474
- /**
11475
- * 备注
11476
- */
11477
- Remark?: string;
11478
- /**
11479
- * 发票联次
11480
- */
11481
- FormType?: string;
11482
- /**
11483
- * 发票联名
11484
- */
11485
- FormName?: string;
11486
- /**
11487
- * 是否有公司印章(0:没有,1:有)
11488
- */
11489
- CompanySealMark?: number;
11490
- /**
11491
- * 经营拍卖单位
11492
- */
11493
- AuctionOrgName?: string;
11494
- /**
11495
- * 经营拍卖单位地址
11496
- */
11497
- AuctionOrgAddress?: string;
11539
+ export interface TableCellInfo {
11498
11540
  /**
11499
- * 经营拍卖单位纳税人识别号
11541
+ * 单元格左上角的列索引
11500
11542
  */
11501
- AuctionOrgTaxID?: string;
11543
+ ColTl: number;
11502
11544
  /**
11503
- * 经营拍卖单位开户银行账号
11545
+ * 单元格左上角的行索引
11504
11546
  */
11505
- AuctionOrgBankAccount?: string;
11547
+ RowTl: number;
11506
11548
  /**
11507
- * 经营拍卖单位电话
11549
+ * 单元格右下角的列索引
11508
11550
  */
11509
- AuctionOrgPhone?: string;
11551
+ ColBr: number;
11510
11552
  /**
11511
- * 开票人
11553
+ * 单元格右下角的行索引
11512
11554
  */
11513
- Issuer?: string;
11555
+ RowBr: number;
11514
11556
  /**
11515
- * 税控码
11557
+ * 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
11516
11558
  */
11517
- TaxCode?: string;
11559
+ Text: string;
11518
11560
  /**
11519
- * 机器编号
11561
+ * 单元格类型
11520
11562
  */
11521
- MachineSerialNumber?: string;
11563
+ Type: string;
11522
11564
  /**
11523
- * 机打发票代码
11565
+ * 单元格置信度
11524
11566
  */
11525
- MachineCode?: string;
11567
+ Confidence: number;
11526
11568
  /**
11527
- * 机打发票号码
11569
+ * 单元格在图像中的四点坐标
11528
11570
  */
11529
- MachineNumber?: string;
11571
+ Polygon: Array<Coord>;
11530
11572
  }
11531
11573
  /**
11532
11574
  * 二维码/条形码坐标信息