tencentcloud-sdk-nodejs-ocr 4.1.114 → 4.1.115

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.
@@ -57,6 +57,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
57
57
  async TaxiInvoiceOCR(req, cb) {
58
58
  return this.request("TaxiInvoiceOCR", req, cb);
59
59
  }
60
+ async DescribeExtractDocAgentJob(req, cb) {
61
+ return this.request("DescribeExtractDocAgentJob", req, cb);
62
+ }
60
63
  async RideHailingDriverLicenseOCR(req, cb) {
61
64
  return this.request("RideHailingDriverLicenseOCR", req, cb);
62
65
  }
@@ -183,12 +186,15 @@ export class Client extends TencentCloudCommon.AbstractClient {
183
186
  async BankSlipOCR(req, cb) {
184
187
  return this.request("BankSlipOCR", req, cb);
185
188
  }
186
- async ResidenceBookletOCR(req, cb) {
187
- return this.request("ResidenceBookletOCR", req, cb);
189
+ async VehicleRegCertOCR(req, cb) {
190
+ return this.request("VehicleRegCertOCR", req, cb);
188
191
  }
189
192
  async RecognizeTravelCardOCR(req, cb) {
190
193
  return this.request("RecognizeTravelCardOCR", req, cb);
191
194
  }
195
+ async SubmitExtractDocAgentJob(req, cb) {
196
+ return this.request("SubmitExtractDocAgentJob", req, cb);
197
+ }
192
198
  async VerifyOfdVatInvoiceOCR(req, cb) {
193
199
  return this.request("VerifyOfdVatInvoiceOCR", req, cb);
194
200
  }
@@ -246,8 +252,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
246
252
  async AdvertiseOCR(req, cb) {
247
253
  return this.request("AdvertiseOCR", req, cb);
248
254
  }
249
- async VehicleRegCertOCR(req, cb) {
250
- return this.request("VehicleRegCertOCR", req, cb);
255
+ async ResidenceBookletOCR(req, cb) {
256
+ return this.request("ResidenceBookletOCR", req, cb);
251
257
  }
252
258
  async CarInvoiceOCR(req, cb) {
253
259
  return this.request("CarInvoiceOCR", req, cb);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.114",
3
+ "version": "4.1.115",
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, PermitOCRRequest, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, RecognizeTableMultiOCRResponse, RecognizeGeneralTextImageWarnResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, RideHailingTransportLicenseOCRRequest, VatInvoiceVerifyNewResponse, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, 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";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -217,6 +217,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
217
217
  默认接口请求频率限制:5次/秒。
218
218
  */
219
219
  TaxiInvoiceOCR(req: TaxiInvoiceOCRRequest, cb?: (error: string, rep: TaxiInvoiceOCRResponse) => void): Promise<TaxiInvoiceOCRResponse>;
220
+ /**
221
+ * 用于查询文档处理任务。文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
222
+ */
223
+ DescribeExtractDocAgentJob(req: DescribeExtractDocAgentJobRequest, cb?: (error: string, rep: DescribeExtractDocAgentJobResponse) => void): Promise<DescribeExtractDocAgentJobResponse>;
220
224
  /**
221
225
  * 本接口支持网约车驾驶证关键字段的识别,包括姓名、证号、起始日期、截止日期、发证日期。
222
226
 
@@ -777,17 +781,21 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
777
781
  */
778
782
  BankSlipOCR(req: BankSlipOCRRequest, cb?: (error: string, rep: BankSlipOCRResponse) => void): Promise<BankSlipOCRResponse>;
779
783
  /**
780
- * 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
784
+ * 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
781
785
 
782
786
  默认接口请求频率限制:5次/秒。
783
787
  */
784
- ResidenceBookletOCR(req: ResidenceBookletOCRRequest, cb?: (error: string, rep: ResidenceBookletOCRResponse) => void): Promise<ResidenceBookletOCRResponse>;
788
+ VehicleRegCertOCR(req: VehicleRegCertOCRRequest, cb?: (error: string, rep: VehicleRegCertOCRResponse) => void): Promise<VehicleRegCertOCRResponse>;
785
789
  /**
786
790
  * 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
787
791
 
788
792
  默认接口请求频率限制:20次/秒。
789
793
  */
790
794
  RecognizeTravelCardOCR(req: RecognizeTravelCardOCRRequest, cb?: (error: string, rep: RecognizeTravelCardOCRResponse) => void): Promise<RecognizeTravelCardOCRResponse>;
795
+ /**
796
+ * 文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
797
+ */
798
+ SubmitExtractDocAgentJob(req: SubmitExtractDocAgentJobRequest, cb?: (error: string, rep: SubmitExtractDocAgentJobResponse) => void): Promise<SubmitExtractDocAgentJobResponse>;
791
799
  /**
792
800
  * 本接口支持OFD格式的增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
793
801
  */
@@ -976,11 +984,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
976
984
  */
977
985
  AdvertiseOCR(req: AdvertiseOCRRequest, cb?: (error: string, rep: AdvertiseOCRResponse) => void): Promise<AdvertiseOCRResponse>;
978
986
  /**
979
- * 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
987
+ * 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
980
988
 
981
989
  默认接口请求频率限制:5次/秒。
982
990
  */
983
- VehicleRegCertOCR(req: VehicleRegCertOCRRequest, cb?: (error: string, rep: VehicleRegCertOCRResponse) => void): Promise<VehicleRegCertOCRResponse>;
991
+ ResidenceBookletOCR(req: ResidenceBookletOCRRequest, cb?: (error: string, rep: ResidenceBookletOCRResponse) => void): Promise<ResidenceBookletOCRResponse>;
984
992
  /**
985
993
  * 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
986
994
 
@@ -275,6 +275,12 @@ class Client extends TencentCloudCommon.AbstractClient {
275
275
  async TaxiInvoiceOCR(req, cb) {
276
276
  return this.request("TaxiInvoiceOCR", req, cb);
277
277
  }
278
+ /**
279
+ * 用于查询文档处理任务。文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
280
+ */
281
+ async DescribeExtractDocAgentJob(req, cb) {
282
+ return this.request("DescribeExtractDocAgentJob", req, cb);
283
+ }
278
284
  /**
279
285
  * 本接口支持网约车驾驶证关键字段的识别,包括姓名、证号、起始日期、截止日期、发证日期。
280
286
 
@@ -919,12 +925,12 @@ class Client extends TencentCloudCommon.AbstractClient {
919
925
  return this.request("BankSlipOCR", req, cb);
920
926
  }
921
927
  /**
922
- * 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
928
+ * 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
923
929
 
924
930
  默认接口请求频率限制:5次/秒。
925
931
  */
926
- async ResidenceBookletOCR(req, cb) {
927
- return this.request("ResidenceBookletOCR", req, cb);
932
+ async VehicleRegCertOCR(req, cb) {
933
+ return this.request("VehicleRegCertOCR", req, cb);
928
934
  }
929
935
  /**
930
936
  * 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
@@ -934,6 +940,12 @@ class Client extends TencentCloudCommon.AbstractClient {
934
940
  async RecognizeTravelCardOCR(req, cb) {
935
941
  return this.request("RecognizeTravelCardOCR", req, cb);
936
942
  }
943
+ /**
944
+ * 文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
945
+ */
946
+ async SubmitExtractDocAgentJob(req, cb) {
947
+ return this.request("SubmitExtractDocAgentJob", req, cb);
948
+ }
937
949
  /**
938
950
  * 本接口支持OFD格式的增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
939
951
  */
@@ -1160,12 +1172,12 @@ class Client extends TencentCloudCommon.AbstractClient {
1160
1172
  return this.request("AdvertiseOCR", req, cb);
1161
1173
  }
1162
1174
  /**
1163
- * 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
1175
+ * 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
1164
1176
 
1165
1177
  默认接口请求频率限制:5次/秒。
1166
1178
  */
1167
- async VehicleRegCertOCR(req, cb) {
1168
- return this.request("VehicleRegCertOCR", req, cb);
1179
+ async ResidenceBookletOCR(req, cb) {
1180
+ return this.request("ResidenceBookletOCR", req, cb);
1169
1181
  }
1170
1182
  /**
1171
1183
  * 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
@@ -4067,28 +4067,23 @@ export interface OrgCodeCertOCRResponse {
4067
4067
  RequestId?: string;
4068
4068
  }
4069
4069
  /**
4070
- * PermitOCR请求参数结构体
4070
+ * 自定义抽取需要的字段名称、字段类型、字段提示词。
4071
4071
  */
4072
- export interface PermitOCRRequest {
4072
+ export interface ItemNames {
4073
4073
  /**
4074
- * 图片的 Base64 值。
4075
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4076
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
4077
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4074
+ * 自定义抽取功能需返回的字段名称。
4078
4075
  */
4079
- ImageBase64?: string;
4076
+ KeyName?: string;
4080
4077
  /**
4081
- * 图片的 Url 地址。
4082
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4083
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
4084
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
4085
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4078
+ * 默认 0;0表示kv对 1表示 表格字段。
4079
+
4086
4080
  */
4087
- ImageUrl?: string;
4081
+ KeyType?: number;
4088
4082
  /**
4089
- * 是否返回头像照片,默认为 false
4083
+ * 抽取字段的描述内容。
4084
+
4090
4085
  */
4091
- CropPortrait?: boolean;
4086
+ KeyPrompt?: string;
4092
4087
  }
4093
4088
  /**
4094
4089
  * 混贴票据中单张发票的内容
@@ -4585,6 +4580,19 @@ export interface RecognizeContainerOCRRequest {
4585
4580
  */
4586
4581
  ImageUrl?: string;
4587
4582
  }
4583
+ /**
4584
+ * SubmitExtractDocAgentJob返回参数结构体
4585
+ */
4586
+ export interface SubmitExtractDocAgentJobResponse {
4587
+ /**
4588
+ * 任务唯一ID。由服务端生成。
4589
+ */
4590
+ JobId?: string;
4591
+ /**
4592
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4593
+ */
4594
+ RequestId?: string;
4595
+ }
4588
4596
  /**
4589
4597
  * 火车票
4590
4598
  */
@@ -4771,6 +4779,43 @@ export interface RecognizeThaiIDCardOCRRequest {
4771
4779
  */
4772
4780
  CropPortrait?: boolean;
4773
4781
  }
4782
+ /**
4783
+ * 身份证配置信息
4784
+ */
4785
+ export interface IDCardConfig {
4786
+ /**
4787
+ * 复印件告警,默认为false
4788
+ */
4789
+ CopyWarn?: boolean;
4790
+ /**
4791
+ * 边框和框内遮挡告警,默认为false
4792
+ */
4793
+ BorderCheckWarn?: boolean;
4794
+ /**
4795
+ * 翻拍告警,默认为false
4796
+ */
4797
+ ReshootWarn?: boolean;
4798
+ /**
4799
+ * 疑似存在PS痕迹告警,默认为false
4800
+ */
4801
+ DetectPsWarn?: boolean;
4802
+ /**
4803
+ * 临时身份证告警,默认为false
4804
+ */
4805
+ TempIdWarn?: boolean;
4806
+ /**
4807
+ * 身份证有效日期不合法告警,默认为false
4808
+ */
4809
+ InvalidDateWarn?: boolean;
4810
+ /**
4811
+ * 是否开启反光检测,默认为false
4812
+ */
4813
+ ReflectWarn?: boolean;
4814
+ /**
4815
+ * 是否开启头像剪切
4816
+ */
4817
+ CropPortrait?: boolean;
4818
+ }
4774
4819
  /**
4775
4820
  * 名片识别结果
4776
4821
  */
@@ -7305,25 +7350,13 @@ export interface ClassifyStoreNameResponse {
7305
7350
  RequestId?: string;
7306
7351
  }
7307
7352
  /**
7308
- * VatRollInvoiceOCR请求参数结构体
7353
+ * DescribeExtractDocAgentJob请求参数结构体
7309
7354
  */
7310
- export interface VatRollInvoiceOCRRequest {
7311
- /**
7312
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
7313
- */
7314
- ImageBase64?: string;
7315
- /**
7316
- * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
7317
- */
7318
- ImageUrl?: string;
7319
- /**
7320
- * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
7321
- */
7322
- IsPdf?: boolean;
7355
+ export interface DescribeExtractDocAgentJobRequest {
7323
7356
  /**
7324
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
7357
+ * 任务唯一ID。由服务端生成。
7325
7358
  */
7326
- PdfPageNumber?: number;
7359
+ JobId?: string;
7327
7360
  }
7328
7361
  /**
7329
7362
  * 机票行程单
@@ -8160,41 +8193,37 @@ export interface TableDetectInfo {
8160
8193
  TableCoordPoint?: Array<Coord>;
8161
8194
  }
8162
8195
  /**
8163
- * 身份证配置信息
8196
+ * DescribeExtractDocAgentJob返回参数结构体
8164
8197
  */
8165
- export interface IDCardConfig {
8166
- /**
8167
- * 复印件告警,默认为false
8168
- */
8169
- CopyWarn?: boolean;
8198
+ export interface DescribeExtractDocAgentJobResponse {
8170
8199
  /**
8171
- * 边框和框内遮挡告警,默认为false
8200
+ * 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
8172
8201
  */
8173
- BorderCheckWarn?: boolean;
8202
+ Angle?: number;
8174
8203
  /**
8175
- * 翻拍告警,默认为false
8204
+ * 配置结构化文本信息。
8176
8205
  */
8177
- ReshootWarn?: boolean;
8206
+ StructuralList?: Array<GroupInfo>;
8178
8207
  /**
8179
- * 疑似存在PS痕迹告警,默认为false
8208
+ * 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
8180
8209
  */
8181
- DetectPsWarn?: boolean;
8210
+ ErrorCode?: string;
8182
8211
  /**
8183
- * 临时身份证告警,默认为false
8212
+ * 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
8184
8213
  */
8185
- TempIdWarn?: boolean;
8214
+ ErrorMessage?: string;
8186
8215
  /**
8187
- * 身份证有效日期不合法告警,默认为false
8216
+ * 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
8188
8217
  */
8189
- InvalidDateWarn?: boolean;
8218
+ JobStatus?: string;
8190
8219
  /**
8191
- * 是否开启反光检测,默认为false
8220
+ * 思考过程
8192
8221
  */
8193
- ReflectWarn?: boolean;
8222
+ ThoughtContent?: string;
8194
8223
  /**
8195
- * 是否开启头像剪切
8224
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8196
8225
  */
8197
- CropPortrait?: boolean;
8226
+ RequestId?: string;
8198
8227
  }
8199
8228
  /**
8200
8229
  * ResidenceBookletOCR返回参数结构体
@@ -9557,25 +9586,28 @@ export interface VatInvoice {
9557
9586
  SellerAgentTaxID?: string;
9558
9587
  }
9559
9588
  /**
9560
- * 增值税普通发票(卷票)条目
9589
+ * PermitOCR请求参数结构体
9561
9590
  */
9562
- export interface VatRollItem {
9563
- /**
9564
- * 项目名称
9565
- */
9566
- Name?: string;
9591
+ export interface PermitOCRRequest {
9567
9592
  /**
9568
- * 数量
9593
+ * 图片的 Base64 值。
9594
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
9595
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
9596
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9569
9597
  */
9570
- Quantity?: string;
9598
+ ImageBase64?: string;
9571
9599
  /**
9572
- * 单价
9600
+ * 图片的 Url 地址。
9601
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
9602
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
9603
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
9604
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9573
9605
  */
9574
- Price?: string;
9606
+ ImageUrl?: string;
9575
9607
  /**
9576
- * 金额
9608
+ * 是否返回头像照片,默认为 false
9577
9609
  */
9578
- Total?: string;
9610
+ CropPortrait?: boolean;
9579
9611
  }
9580
9612
  /**
9581
9613
  * MLIDCardOCR请求参数结构体
@@ -10387,6 +10419,39 @@ export interface Element {
10387
10419
  */
10388
10420
  Index?: number;
10389
10421
  }
10422
+ /**
10423
+ * SubmitExtractDocAgentJob请求参数结构体
10424
+ */
10425
+ export interface SubmitExtractDocAgentJobRequest {
10426
+ /**
10427
+ * 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10428
+ */
10429
+ ImageBase64?: string;
10430
+ /**
10431
+ * 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10432
+ */
10433
+ ImageUrl?: string;
10434
+ /**
10435
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。
10436
+ */
10437
+ PdfPageNumber?: number;
10438
+ /**
10439
+ * 自定义抽取需要的字段名称、字段类型、字段提示词。
10440
+ */
10441
+ ItemNames?: Array<ItemNames>;
10442
+ /**
10443
+ * 是否需要返回坐标,默认false。
10444
+ */
10445
+ EnableCoord?: boolean;
10446
+ /**
10447
+ * 起始页
10448
+ */
10449
+ FileStartPageNumber?: number;
10450
+ /**
10451
+ * 结束页
10452
+ */
10453
+ FileEndPageNumber?: number;
10454
+ }
10390
10455
  /**
10391
10456
  * AdvertiseOCR返回参数结构体
10392
10457
  */
@@ -10443,6 +10508,27 @@ export interface ShoppingReceipt {
10443
10508
  */
10444
10509
  Content?: Array<OtherInvoiceItem>;
10445
10510
  }
10511
+ /**
10512
+ * VatRollInvoiceOCR请求参数结构体
10513
+ */
10514
+ export interface VatRollInvoiceOCRRequest {
10515
+ /**
10516
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10517
+ */
10518
+ ImageBase64?: string;
10519
+ /**
10520
+ * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10521
+ */
10522
+ ImageUrl?: string;
10523
+ /**
10524
+ * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
10525
+ */
10526
+ IsPdf?: boolean;
10527
+ /**
10528
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
10529
+ */
10530
+ PdfPageNumber?: number;
10531
+ }
10446
10532
  /**
10447
10533
  * RecognizeOnlineTaxiItineraryOCR请求参数结构体
10448
10534
  */
@@ -10548,29 +10634,25 @@ export interface MixedInvoiceDetectRequest {
10548
10634
  PdfPageNumber?: number;
10549
10635
  }
10550
10636
  /**
10551
- * WaybillOCR请求参数结构体
10637
+ * 增值税普通发票(卷票)条目
10552
10638
  */
10553
- export interface WaybillOCRRequest {
10554
- /**
10555
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10556
- */
10557
- ImageBase64?: string;
10639
+ export interface VatRollItem {
10558
10640
  /**
10559
- * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10641
+ * 项目名称
10560
10642
  */
10561
- ImageUrl?: string;
10643
+ Name?: string;
10562
10644
  /**
10563
- * 预检测开关,当待识别运单占整个输入图像的比例较小时,建议打开预检测开关。默认值为false。
10645
+ * 数量
10564
10646
  */
10565
- EnablePreDetect?: boolean;
10647
+ Quantity?: string;
10566
10648
  /**
10567
- * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
10649
+ * 单价
10568
10650
  */
10569
- IsPdf?: boolean;
10651
+ Price?: string;
10570
10652
  /**
10571
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
10653
+ * 金额
10572
10654
  */
10573
- PdfPageNumber?: number;
10655
+ Total?: string;
10574
10656
  }
10575
10657
  /**
10576
10658
  * RecognizeStoreName返回参数结构体
@@ -10610,6 +10692,31 @@ export interface BusinessCertificateInfo {
10610
10692
  */
10611
10693
  Rect?: Rect;
10612
10694
  }
10695
+ /**
10696
+ * WaybillOCR请求参数结构体
10697
+ */
10698
+ export interface WaybillOCRRequest {
10699
+ /**
10700
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10701
+ */
10702
+ ImageBase64?: string;
10703
+ /**
10704
+ * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10705
+ */
10706
+ ImageUrl?: string;
10707
+ /**
10708
+ * 预检测开关,当待识别运单占整个输入图像的比例较小时,建议打开预检测开关。默认值为false。
10709
+ */
10710
+ EnablePreDetect?: boolean;
10711
+ /**
10712
+ * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
10713
+ */
10714
+ IsPdf?: boolean;
10715
+ /**
10716
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
10717
+ */
10718
+ PdfPageNumber?: number;
10719
+ }
10613
10720
  /**
10614
10721
  * RideHailingTransportLicenseOCR请求参数结构体
10615
10722
  */