tencentcloud-sdk-nodejs-ocr 4.1.145 → 4.1.147

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.145",
3
+ "version": "4.1.147",
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, VatInvoiceVerifyNewResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, 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, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, SmartStructuralOCRResponse, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, RecognizeTableMultiOCRResponse, 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, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeTravelCardOCRResponse, VatRollInvoiceOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, RecognizeStoreNameResponse, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeValidIDCardOCRResponse, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, VinOCRResponse, BankCardOCRRequest, VatInvoiceVerifyNewResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, 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, MLIDCardOCRRequest, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, SmartStructuralOCRResponse, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, RecognizeTableMultiOCRResponse, 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, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, AdvertiseOCRResponse, RecognizeTravelCardOCRResponse, VatRollInvoiceOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, RecognizeStoreNameResponse, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeValidIDCardOCRResponse, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -2157,6 +2157,32 @@ export interface EnterpriseLicenseOCRRequest {
2157
2157
  */
2158
2158
  ImageUrl?: string;
2159
2159
  }
2160
+ /**
2161
+ * VehicleLicenseOCR请求参数结构体
2162
+ */
2163
+ export interface VehicleLicenseOCRRequest {
2164
+ /**
2165
+ * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
2166
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
2167
+ */
2168
+ ImageBase64?: string;
2169
+ /**
2170
+ * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
2171
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
2172
+ */
2173
+ ImageUrl?: string;
2174
+ /**
2175
+ * FRONT 为行驶证主页正面(有红色印章的一面),
2176
+ BACK 为行驶证副页正面(有号码号牌的一面),
2177
+ DOUBLE 为行驶证主页正面和副页正面。
2178
+ 默认值为:FRONT。
2179
+ */
2180
+ CardSide?: string;
2181
+ /**
2182
+ * FRONT为行驶证主页正面(有红色印章的一面),BACK 为拖拉机行驶证副页正面识别
2183
+ */
2184
+ TractorCardSide?: string;
2185
+ }
2160
2186
  /**
2161
2187
  * QuestionSplitOCR返回参数结构体
2162
2188
  */
@@ -3543,18 +3569,13 @@ export interface VatInvoiceOCRRequest {
3543
3569
  PdfPageNumber?: number;
3544
3570
  }
3545
3571
  /**
3546
- * key信息组
3572
+ * 其他票Table
3547
3573
  */
3548
- export interface Key {
3549
- /**
3550
- * 自动识别的字段名称
3551
- */
3552
- AutoName?: string;
3574
+ export interface ElectronicTollSummaryList {
3553
3575
  /**
3554
- * 定义的字段名称(传key的名称)
3555
- 注意:此字段可能返回 null,表示取不到有效值。
3576
+ * 列表
3556
3577
  */
3557
- ConfigName?: string;
3578
+ Items?: Array<ElectronicTollSummaryItem>;
3558
3579
  }
3559
3580
  /**
3560
3581
  * 全电发票(航空运输电子客票行程单)
@@ -3698,53 +3719,29 @@ export interface DutyPaidProofOCRResponse {
3698
3719
  RequestId?: string;
3699
3720
  }
3700
3721
  /**
3701
- * 算式识别结果
3722
+ * MLIDCardOCR请求参数结构体
3702
3723
  */
3703
- export interface TextArithmetic {
3704
- /**
3705
- * 识别出的文本行内容
3706
- */
3707
- DetectedText?: string;
3708
- /**
3709
- * 算式运算结果,true-正确 false-错误或非法参数
3710
- */
3711
- Result?: boolean;
3712
- /**
3713
- * 保留字段,暂不支持
3714
- */
3715
- Confidence?: number;
3724
+ export interface MLIDCardOCRRequest {
3716
3725
  /**
3717
- * 原图文本行坐标,以四个顶点坐标表示(保留字段,暂不支持)
3718
- 注意:此字段可能返回 null,表示取不到有效值。
3726
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
3719
3727
  */
3720
- Polygon?: Array<Coord>;
3728
+ ImageBase64?: string;
3721
3729
  /**
3722
- * 保留字段,暂不支持
3730
+ * 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3723
3731
  */
3724
- AdvancedInfo?: string;
3732
+ BackImageBase64?: string;
3725
3733
  /**
3726
- * 文本行旋转纠正之后在图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
3734
+ * 图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3727
3735
  */
3728
- ItemCoord?: ItemCoord;
3736
+ ImageUrl?: string;
3729
3737
  /**
3730
- * 算式题型编号:
3731
- ‘1’: 加减乘除四则
3732
- ‘2’: 加减乘除已知结果求运算因子
3733
- ‘3’: 判断大小
3734
- ‘4’: 约等于估算
3735
- ‘5’: 带余数除法
3736
- ‘6’: 分数四则运算
3737
- ‘7’: 单位换算
3738
- ‘8’: 竖式加减法
3739
- ‘9’: 竖式乘除法
3740
- ‘10’: 脱式计算
3741
- ‘11’: 解方程
3738
+ * 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3742
3739
  */
3743
- ExpressionType?: string;
3740
+ BackImageUrl?: string;
3744
3741
  /**
3745
- * 错题推荐答案,算式运算结果正确返回为"",算式运算结果错误返回推荐答案 (注:暂不支持多个关系运算符(如`1<10<7`)、无关系运算符(如frac(1,2)+frac(2,3))、单位换算(如1元=100角)错题的推荐答案返回)
3742
+ * 是否返回图片,默认false
3746
3743
  */
3747
- Answer?: string;
3744
+ RetImage?: boolean;
3748
3745
  }
3749
3746
  /**
3750
3747
  * LicensePlateOCR返回参数结构体
@@ -4236,6 +4233,11 @@ export interface SingleInvoiceItem {
4236
4233
  注意:此字段可能返回 null,表示取不到有效值。
4237
4234
  */
4238
4235
  UsedCarPurchaseInvoiceElectronic?: UsedCarPurchaseInvoice;
4236
+ /**
4237
+ * 通行费电子票据汇总单
4238
+ 注意:此字段可能返回 null,表示取不到有效值。
4239
+ */
4240
+ ElectronicTollSummary?: ElectronicTollSummary;
4239
4241
  }
4240
4242
  /**
4241
4243
  * InvoiceGeneralOCR返回参数结构体
@@ -4964,6 +4966,55 @@ export interface MotorVehicleSaleInvoice {
4964
4966
  */
4965
4967
  QRCodeMark?: number;
4966
4968
  }
4969
+ /**
4970
+ * 算式识别结果
4971
+ */
4972
+ export interface TextArithmetic {
4973
+ /**
4974
+ * 识别出的文本行内容
4975
+ */
4976
+ DetectedText?: string;
4977
+ /**
4978
+ * 算式运算结果,true-正确 false-错误或非法参数
4979
+ */
4980
+ Result?: boolean;
4981
+ /**
4982
+ * 保留字段,暂不支持
4983
+ */
4984
+ Confidence?: number;
4985
+ /**
4986
+ * 原图文本行坐标,以四个顶点坐标表示(保留字段,暂不支持)
4987
+ 注意:此字段可能返回 null,表示取不到有效值。
4988
+ */
4989
+ Polygon?: Array<Coord>;
4990
+ /**
4991
+ * 保留字段,暂不支持
4992
+ */
4993
+ AdvancedInfo?: string;
4994
+ /**
4995
+ * 文本行旋转纠正之后在图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
4996
+ */
4997
+ ItemCoord?: ItemCoord;
4998
+ /**
4999
+ * 算式题型编号:
5000
+ ‘1’: 加减乘除四则
5001
+ ‘2’: 加减乘除已知结果求运算因子
5002
+ ‘3’: 判断大小
5003
+ ‘4’: 约等于估算
5004
+ ‘5’: 带余数除法
5005
+ ‘6’: 分数四则运算
5006
+ ‘7’: 单位换算
5007
+ ‘8’: 竖式加减法
5008
+ ‘9’: 竖式乘除法
5009
+ ‘10’: 脱式计算
5010
+ ‘11’: 解方程
5011
+ */
5012
+ ExpressionType?: string;
5013
+ /**
5014
+ * 错题推荐答案,算式运算结果正确返回为"",算式运算结果错误返回推荐答案 (注:暂不支持多个关系运算符(如`1<10<7`)、无关系运算符(如frac(1,2)+frac(2,3))、单位换算(如1元=100角)错题的推荐答案返回)
5015
+ */
5016
+ Answer?: string;
5017
+ }
4967
5018
  /**
4968
5019
  * 全电发票(铁路电子客票)
4969
5020
  */
@@ -7212,133 +7263,21 @@ export interface DescribeExtractDocAgentJobRequest {
7212
7263
  JobId?: string;
7213
7264
  }
7214
7265
  /**
7215
- * 机票行程单
7266
+ * ElectronicTollSummaryItem
7216
7267
  */
7217
- export interface AirTransport {
7218
- /**
7219
- * 发票名称
7220
- */
7221
- Title?: string;
7222
- /**
7223
- * 电子客票号码
7224
- */
7225
- Number?: string;
7226
- /**
7227
- * 校验码
7228
- */
7229
- CheckCode?: string;
7230
- /**
7231
- * 印刷序号
7232
- */
7233
- SerialNumber?: string;
7234
- /**
7235
- * 开票日期
7236
- */
7237
- Date?: string;
7238
- /**
7239
- * 销售单位代号
7240
- */
7241
- AgentCode?: string;
7242
- /**
7243
- * 销售单位代号第一行
7244
- */
7245
- AgentCodeFirst?: string;
7268
+ export interface ElectronicTollSummaryItem {
7246
7269
  /**
7247
- * 销售单位代号第二行
7248
- */
7249
- AgentCodeSecond?: string;
7250
- /**
7251
- * 姓名
7252
- */
7253
- UserName?: string;
7254
- /**
7255
- * 身份证号
7256
- */
7257
- UserID?: string;
7258
- /**
7259
- * 填开单位
7260
- */
7261
- Issuer?: string;
7262
- /**
7263
- * 票价
7264
- */
7265
- Fare?: string;
7266
- /**
7267
- * 合计税额
7268
- */
7269
- Tax?: string;
7270
- /**
7271
- * 燃油附加费
7272
- */
7273
- FuelSurcharge?: string;
7274
- /**
7275
- * 民航发展基金
7276
- */
7277
- AirDevelopmentFund?: string;
7278
- /**
7279
- * 保险费
7280
- */
7281
- Insurance?: string;
7282
- /**
7283
- * 合计金额(小写)
7284
- */
7285
- Total?: string;
7286
- /**
7287
- * 发票消费类型
7288
- */
7289
- Kind?: string;
7290
- /**
7291
- * 国内国际标签
7292
- */
7293
- DomesticInternationalTag?: string;
7294
- /**
7295
- * 客票生效日期
7296
- */
7297
- DateStart?: string;
7298
- /**
7299
- * 有效截止日期
7300
- */
7301
- DateEnd?: string;
7302
- /**
7303
- * 签注
7304
- */
7305
- Endorsement?: string;
7306
- /**
7307
- * 是否存在二维码(1:有,0:无)
7308
- */
7309
- QRCodeMark?: number;
7310
- /**
7311
- * 条目
7312
- */
7313
- FlightItems?: Array<FlightItem>;
7314
- /**
7315
- * 提示信息
7316
- */
7317
- PromptInformation?: string;
7318
- /**
7319
- * 统一社会信用代码/纳税人识别号
7320
- */
7321
- BuyerTaxID?: string;
7322
- /**
7323
- * 购买方名称
7324
- */
7325
- Buyer?: string;
7326
- /**
7327
- * 发票号码
7328
- */
7329
- ReceiptNumber?: string;
7330
- /**
7331
- * 开票状态
7270
+ * 票面key值
7332
7271
  */
7333
- InvoiceStatus?: string;
7272
+ Name?: string;
7334
7273
  /**
7335
- * 增值税税率
7274
+ * 票面value值
7336
7275
  */
7337
- TaxRate?: string;
7276
+ Value?: string;
7338
7277
  /**
7339
- * 增值税税额
7278
+ * 字段所在行,下标从0开始,非行字段或未能识别行号的返回-1
7340
7279
  */
7341
- TaxAmount?: string;
7280
+ Row?: number;
7342
7281
  }
7343
7282
  /**
7344
7283
  * 表格标题
@@ -9464,29 +9403,133 @@ export interface PermitOCRRequest {
9464
9403
  CropPortrait?: boolean;
9465
9404
  }
9466
9405
  /**
9467
- * MLIDCardOCR请求参数结构体
9406
+ * 机票行程单
9468
9407
  */
9469
- export interface MLIDCardOCRRequest {
9408
+ export interface AirTransport {
9470
9409
  /**
9471
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
9410
+ * 发票名称
9472
9411
  */
9473
- ImageBase64?: string;
9412
+ Title?: string;
9474
9413
  /**
9475
- * 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9414
+ * 电子客票号码
9476
9415
  */
9477
- BackImageBase64?: string;
9416
+ Number?: string;
9478
9417
  /**
9479
- * 图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9418
+ * 校验码
9480
9419
  */
9481
- ImageUrl?: string;
9420
+ CheckCode?: string;
9482
9421
  /**
9483
- * 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9422
+ * 印刷序号
9484
9423
  */
9485
- BackImageUrl?: string;
9424
+ SerialNumber?: string;
9486
9425
  /**
9487
- * 是否返回图片,默认false
9426
+ * 开票日期
9488
9427
  */
9489
- RetImage?: boolean;
9428
+ Date?: string;
9429
+ /**
9430
+ * 销售单位代号
9431
+ */
9432
+ AgentCode?: string;
9433
+ /**
9434
+ * 销售单位代号第一行
9435
+ */
9436
+ AgentCodeFirst?: string;
9437
+ /**
9438
+ * 销售单位代号第二行
9439
+ */
9440
+ AgentCodeSecond?: string;
9441
+ /**
9442
+ * 姓名
9443
+ */
9444
+ UserName?: string;
9445
+ /**
9446
+ * 身份证号
9447
+ */
9448
+ UserID?: string;
9449
+ /**
9450
+ * 填开单位
9451
+ */
9452
+ Issuer?: string;
9453
+ /**
9454
+ * 票价
9455
+ */
9456
+ Fare?: string;
9457
+ /**
9458
+ * 合计税额
9459
+ */
9460
+ Tax?: string;
9461
+ /**
9462
+ * 燃油附加费
9463
+ */
9464
+ FuelSurcharge?: string;
9465
+ /**
9466
+ * 民航发展基金
9467
+ */
9468
+ AirDevelopmentFund?: string;
9469
+ /**
9470
+ * 保险费
9471
+ */
9472
+ Insurance?: string;
9473
+ /**
9474
+ * 合计金额(小写)
9475
+ */
9476
+ Total?: string;
9477
+ /**
9478
+ * 发票消费类型
9479
+ */
9480
+ Kind?: string;
9481
+ /**
9482
+ * 国内国际标签
9483
+ */
9484
+ DomesticInternationalTag?: string;
9485
+ /**
9486
+ * 客票生效日期
9487
+ */
9488
+ DateStart?: string;
9489
+ /**
9490
+ * 有效截止日期
9491
+ */
9492
+ DateEnd?: string;
9493
+ /**
9494
+ * 签注
9495
+ */
9496
+ Endorsement?: string;
9497
+ /**
9498
+ * 是否存在二维码(1:有,0:无)
9499
+ */
9500
+ QRCodeMark?: number;
9501
+ /**
9502
+ * 条目
9503
+ */
9504
+ FlightItems?: Array<FlightItem>;
9505
+ /**
9506
+ * 提示信息
9507
+ */
9508
+ PromptInformation?: string;
9509
+ /**
9510
+ * 统一社会信用代码/纳税人识别号
9511
+ */
9512
+ BuyerTaxID?: string;
9513
+ /**
9514
+ * 购买方名称
9515
+ */
9516
+ Buyer?: string;
9517
+ /**
9518
+ * 发票号码
9519
+ */
9520
+ ReceiptNumber?: string;
9521
+ /**
9522
+ * 开票状态
9523
+ */
9524
+ InvoiceStatus?: string;
9525
+ /**
9526
+ * 增值税税率
9527
+ */
9528
+ TaxRate?: string;
9529
+ /**
9530
+ * 增值税税额
9531
+ */
9532
+ TaxAmount?: string;
9490
9533
  }
9491
9534
  /**
9492
9535
  * 试题识别结果
@@ -10408,30 +10451,29 @@ export interface AdvertiseOCRResponse {
10408
10451
  RequestId?: string;
10409
10452
  }
10410
10453
  /**
10411
- * VehicleLicenseOCR请求参数结构体
10454
+ * 其他发票
10412
10455
  */
10413
- export interface VehicleLicenseOCRRequest {
10456
+ export interface ElectronicTollSummary {
10414
10457
  /**
10415
- * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
10416
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10458
+ * 发票名称
10417
10459
  */
10418
- ImageBase64?: string;
10460
+ Title?: string;
10419
10461
  /**
10420
- * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
10421
- 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
10462
+ * 金额
10422
10463
  */
10423
- ImageUrl?: string;
10464
+ Total?: string;
10424
10465
  /**
10425
- * FRONT 为行驶证主页正面(有红色印章的一面),
10426
- BACK 为行驶证副页正面(有号码号牌的一面),
10427
- DOUBLE 为行驶证主页正面和副页正面。
10428
- 默认值为:FRONT。
10466
+ * 列表
10429
10467
  */
10430
- CardSide?: string;
10468
+ Items?: Array<ElectronicTollSummaryItem>;
10431
10469
  /**
10432
- * FRONT为行驶证主页正面(有红色印章的一面),BACK 为拖拉机行驶证副页正面识别
10470
+ * 表格
10433
10471
  */
10434
- TractorCardSide?: string;
10472
+ TableItems?: Array<ElectronicTollSummaryList>;
10473
+ /**
10474
+ * 发票日期
10475
+ */
10476
+ Date?: string;
10435
10477
  }
10436
10478
  /**
10437
10479
  * RecognizeTravelCardOCR返回参数结构体
@@ -10753,6 +10795,43 @@ export interface MLIDCardOCRResponse {
10753
10795
  */
10754
10796
  RequestId?: string;
10755
10797
  }
10798
+ /**
10799
+ * 单元格数据
10800
+ */
10801
+ export interface TableCellInfo {
10802
+ /**
10803
+ * 单元格左上角的列索引
10804
+ */
10805
+ ColTl: number;
10806
+ /**
10807
+ * 单元格左上角的行索引
10808
+ */
10809
+ RowTl: number;
10810
+ /**
10811
+ * 单元格右下角的列索引
10812
+ */
10813
+ ColBr: number;
10814
+ /**
10815
+ * 单元格右下角的行索引
10816
+ */
10817
+ RowBr: number;
10818
+ /**
10819
+ * 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
10820
+ */
10821
+ Text: string;
10822
+ /**
10823
+ * 单元格类型
10824
+ */
10825
+ Type: string;
10826
+ /**
10827
+ * 单元格置信度
10828
+ */
10829
+ Confidence: number;
10830
+ /**
10831
+ * 单元格在图像中的四点坐标
10832
+ */
10833
+ Polygon: Array<Coord>;
10834
+ }
10756
10835
  /**
10757
10836
  * RecognizeTableOCR请求参数结构体
10758
10837
  */
@@ -11254,41 +11333,18 @@ export interface GeneralFastOCRResponse {
11254
11333
  RequestId?: string;
11255
11334
  }
11256
11335
  /**
11257
- * 单元格数据
11336
+ * key信息组
11258
11337
  */
11259
- export interface TableCellInfo {
11260
- /**
11261
- * 单元格左上角的列索引
11262
- */
11263
- ColTl: number;
11264
- /**
11265
- * 单元格左上角的行索引
11266
- */
11267
- RowTl: number;
11268
- /**
11269
- * 单元格右下角的列索引
11270
- */
11271
- ColBr: number;
11272
- /**
11273
- * 单元格右下角的行索引
11274
- */
11275
- RowBr: number;
11276
- /**
11277
- * 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
11278
- */
11279
- Text: string;
11280
- /**
11281
- * 单元格类型
11282
- */
11283
- Type: string;
11338
+ export interface Key {
11284
11339
  /**
11285
- * 单元格置信度
11340
+ * 自动识别的字段名称
11286
11341
  */
11287
- Confidence: number;
11342
+ AutoName?: string;
11288
11343
  /**
11289
- * 单元格在图像中的四点坐标
11344
+ * 定义的字段名称(传key的名称)
11345
+ 注意:此字段可能返回 null,表示取不到有效值。
11290
11346
  */
11291
- Polygon: Array<Coord>;
11347
+ ConfigName?: string;
11292
11348
  }
11293
11349
  /**
11294
11350
  * 二维码/条形码坐标信息