tencentcloud-sdk-ocr 3.0.956 → 3.0.958

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20181119/models.rb +128 -14
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef9ab09c03b7ac6421c36aed548723915ef74060
4
- data.tar.gz: 04d02517aaf89436f639dd9b3d99301aed2cb01d
3
+ metadata.gz: 6280536c3fc0d81adbd3fb96baf8314ad221042f
4
+ data.tar.gz: e0d46047a1ca3c4f9647bc0e90d381ba5d6b66f6
5
5
  SHA512:
6
- metadata.gz: 042813a5de8f48a1bd366c1344d754b55482101a905005a78bae0991b6996c04c79e05a29582709b26489684d2936802d0737f2242af4efc8bcf09fd46fd80b7
7
- data.tar.gz: 1ae691fa596707e2ba11547eafd3b135d2de4066359c5692592f05f0d0cc413e428c2358e150506b385dc481d03a328205fd27f5c517c501c283ff37e6dd28d3
6
+ metadata.gz: 33c16e27563c54d0ec539e2ee49abe3899bc891f797c432a3d5c5d1d7b686310d69dd9a7dec91e3dabb03eb87973ed732a06ea8853b35b37faf75664b5a09f10
7
+ data.tar.gz: fded5c8ecccaf69b6ac1c8552399bf6ca570f9d346a6dc9d01da9b7d0da304b2403302c9e3ca093da682cf11771a819505486aec9098dd5275678c44f60a9524
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.956
1
+ 3.0.958
@@ -280,10 +280,24 @@ module TencentCloud
280
280
  # @type QRCodeMark: Integer
281
281
  # @param FlightItems: 条目
282
282
  # @type FlightItems: Array
283
+ # @param PromptInformation: 提示信息
284
+ # @type PromptInformation: String
285
+ # @param BuyerTaxID: 统一社会信用代码/纳税人识别号
286
+ # @type BuyerTaxID: String
287
+ # @param Buyer: 购买方名称
288
+ # @type Buyer: String
289
+ # @param ReceiptNumber: 发票号码
290
+ # @type ReceiptNumber: String
291
+ # @param InvoiceStatus: 开票状态
292
+ # @type InvoiceStatus: String
293
+ # @param TaxRate: 增值税税率
294
+ # @type TaxRate: String
295
+ # @param TaxAmount: 增值税税额
296
+ # @type TaxAmount: String
283
297
 
284
- attr_accessor :Title, :Number, :CheckCode, :SerialNumber, :Date, :AgentCode, :AgentCodeFirst, :AgentCodeSecond, :UserName, :UserID, :Issuer, :Fare, :Tax, :FuelSurcharge, :AirDevelopmentFund, :Insurance, :Total, :Kind, :DomesticInternationalTag, :DateStart, :DateEnd, :Endorsement, :QRCodeMark, :FlightItems
298
+ attr_accessor :Title, :Number, :CheckCode, :SerialNumber, :Date, :AgentCode, :AgentCodeFirst, :AgentCodeSecond, :UserName, :UserID, :Issuer, :Fare, :Tax, :FuelSurcharge, :AirDevelopmentFund, :Insurance, :Total, :Kind, :DomesticInternationalTag, :DateStart, :DateEnd, :Endorsement, :QRCodeMark, :FlightItems, :PromptInformation, :BuyerTaxID, :Buyer, :ReceiptNumber, :InvoiceStatus, :TaxRate, :TaxAmount
285
299
 
286
- def initialize(title=nil, number=nil, checkcode=nil, serialnumber=nil, date=nil, agentcode=nil, agentcodefirst=nil, agentcodesecond=nil, username=nil, userid=nil, issuer=nil, fare=nil, tax=nil, fuelsurcharge=nil, airdevelopmentfund=nil, insurance=nil, total=nil, kind=nil, domesticinternationaltag=nil, datestart=nil, dateend=nil, endorsement=nil, qrcodemark=nil, flightitems=nil)
300
+ def initialize(title=nil, number=nil, checkcode=nil, serialnumber=nil, date=nil, agentcode=nil, agentcodefirst=nil, agentcodesecond=nil, username=nil, userid=nil, issuer=nil, fare=nil, tax=nil, fuelsurcharge=nil, airdevelopmentfund=nil, insurance=nil, total=nil, kind=nil, domesticinternationaltag=nil, datestart=nil, dateend=nil, endorsement=nil, qrcodemark=nil, flightitems=nil, promptinformation=nil, buyertaxid=nil, buyer=nil, receiptnumber=nil, invoicestatus=nil, taxrate=nil, taxamount=nil)
287
301
  @Title = title
288
302
  @Number = number
289
303
  @CheckCode = checkcode
@@ -308,6 +322,13 @@ module TencentCloud
308
322
  @Endorsement = endorsement
309
323
  @QRCodeMark = qrcodemark
310
324
  @FlightItems = flightitems
325
+ @PromptInformation = promptinformation
326
+ @BuyerTaxID = buyertaxid
327
+ @Buyer = buyer
328
+ @ReceiptNumber = receiptnumber
329
+ @InvoiceStatus = invoicestatus
330
+ @TaxRate = taxrate
331
+ @TaxAmount = taxamount
311
332
  end
312
333
 
313
334
  def deserialize(params)
@@ -342,6 +363,13 @@ module TencentCloud
342
363
  @FlightItems << flightitem_tmp
343
364
  end
344
365
  end
366
+ @PromptInformation = params['PromptInformation']
367
+ @BuyerTaxID = params['BuyerTaxID']
368
+ @Buyer = params['Buyer']
369
+ @ReceiptNumber = params['ReceiptNumber']
370
+ @InvoiceStatus = params['InvoiceStatus']
371
+ @TaxRate = params['TaxRate']
372
+ @TaxAmount = params['TaxAmount']
345
373
  end
346
374
  end
347
375
 
@@ -2500,10 +2528,12 @@ module TencentCloud
2500
2528
  # @type BuyerTaxID: String
2501
2529
  # @param OriginalNumber: 原发票号码
2502
2530
  # @type OriginalNumber: String
2531
+ # @param IDInfo: 标识信息
2532
+ # @type IDInfo: String
2503
2533
 
2504
- attr_accessor :TypeOfVoucher, :ElectronicTicketNum, :Date, :StationGetOn, :StationGetOff, :TrainNumber, :DateGetOn, :TimeGetOn, :Seat, :SeatNumber, :Fare, :Number, :UserID, :UserName, :Total, :TaxRate, :Tax, :Buyer, :BuyerTaxID, :OriginalNumber
2534
+ attr_accessor :TypeOfVoucher, :ElectronicTicketNum, :Date, :StationGetOn, :StationGetOff, :TrainNumber, :DateGetOn, :TimeGetOn, :Seat, :SeatNumber, :Fare, :Number, :UserID, :UserName, :Total, :TaxRate, :Tax, :Buyer, :BuyerTaxID, :OriginalNumber, :IDInfo
2505
2535
 
2506
- def initialize(typeofvoucher=nil, electronicticketnum=nil, date=nil, stationgeton=nil, stationgetoff=nil, trainnumber=nil, dategeton=nil, timegeton=nil, seat=nil, seatnumber=nil, fare=nil, number=nil, userid=nil, username=nil, total=nil, taxrate=nil, tax=nil, buyer=nil, buyertaxid=nil, originalnumber=nil)
2536
+ def initialize(typeofvoucher=nil, electronicticketnum=nil, date=nil, stationgeton=nil, stationgetoff=nil, trainnumber=nil, dategeton=nil, timegeton=nil, seat=nil, seatnumber=nil, fare=nil, number=nil, userid=nil, username=nil, total=nil, taxrate=nil, tax=nil, buyer=nil, buyertaxid=nil, originalnumber=nil, idinfo=nil)
2507
2537
  @TypeOfVoucher = typeofvoucher
2508
2538
  @ElectronicTicketNum = electronicticketnum
2509
2539
  @Date = date
@@ -2524,6 +2554,7 @@ module TencentCloud
2524
2554
  @Buyer = buyer
2525
2555
  @BuyerTaxID = buyertaxid
2526
2556
  @OriginalNumber = originalnumber
2557
+ @IDInfo = idinfo
2527
2558
  end
2528
2559
 
2529
2560
  def deserialize(params)
@@ -2547,6 +2578,7 @@ module TencentCloud
2547
2578
  @Buyer = params['Buyer']
2548
2579
  @BuyerTaxID = params['BuyerTaxID']
2549
2580
  @OriginalNumber = params['OriginalNumber']
2581
+ @IDInfo = params['IDInfo']
2550
2582
  end
2551
2583
  end
2552
2584
 
@@ -5201,26 +5233,34 @@ module TencentCloud
5201
5233
  # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5202
5234
  # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
5203
5235
  # @type ImageBase64: String
5236
+ # @param BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5237
+ # @type BackImageBase64: String
5204
5238
  # @param ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )
5205
5239
  # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5206
5240
  # 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
5207
5241
  # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
5208
5242
  # 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5209
5243
  # @type ImageUrl: String
5244
+ # @param BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5245
+ # @type BackImageUrl: String
5210
5246
  # @param RetImage: 是否返回图片,默认false
5211
5247
  # @type RetImage: Boolean
5212
5248
 
5213
- attr_accessor :ImageBase64, :ImageUrl, :RetImage
5249
+ attr_accessor :ImageBase64, :BackImageBase64, :ImageUrl, :BackImageUrl, :RetImage
5214
5250
 
5215
- def initialize(imagebase64=nil, imageurl=nil, retimage=nil)
5251
+ def initialize(imagebase64=nil, backimagebase64=nil, imageurl=nil, backimageurl=nil, retimage=nil)
5216
5252
  @ImageBase64 = imagebase64
5253
+ @BackImageBase64 = backimagebase64
5217
5254
  @ImageUrl = imageurl
5255
+ @BackImageUrl = backimageurl
5218
5256
  @RetImage = retimage
5219
5257
  end
5220
5258
 
5221
5259
  def deserialize(params)
5222
5260
  @ImageBase64 = params['ImageBase64']
5261
+ @BackImageBase64 = params['BackImageBase64']
5223
5262
  @ImageUrl = params['ImageUrl']
5263
+ @BackImageUrl = params['BackImageUrl']
5224
5264
  @RetImage = params['RetImage']
5225
5265
  end
5226
5266
  end
@@ -5262,6 +5302,8 @@ module TencentCloud
5262
5302
  # @type Type: String
5263
5303
  # @param Birthday: 出生日期(目前该字段仅支持IKAD劳工证、MyKad 身份证)
5264
5304
  # @type Birthday: String
5305
+ # @param MyKadNumber: 马来身份证背面号码
5306
+ # @type MyKadNumber: String
5265
5307
  # @param WarnCardInfos: 告警码
5266
5308
  # -9101 证件边框不完整告警
5267
5309
  # -9102 证件复印件告警
@@ -5274,12 +5316,12 @@ module TencentCloud
5274
5316
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5275
5317
  # @type RequestId: String
5276
5318
 
5277
- attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :WarnCardInfos, :RequestId
5319
+ attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
5278
5320
  extend Gem::Deprecate
5279
5321
  deprecate :Warn, :none, 2024, 12
5280
5322
  deprecate :Warn=, :none, 2024, 12
5281
5323
 
5282
- def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, warncardinfos=nil, requestid=nil)
5324
+ def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, mykadnumber=nil, warncardinfos=nil, requestid=nil)
5283
5325
  @ID = id
5284
5326
  @Name = name
5285
5327
  @Address = address
@@ -5289,6 +5331,7 @@ module TencentCloud
5289
5331
  @AdvancedInfo = advancedinfo
5290
5332
  @Type = type
5291
5333
  @Birthday = birthday
5334
+ @MyKadNumber = mykadnumber
5292
5335
  @WarnCardInfos = warncardinfos
5293
5336
  @RequestId = requestid
5294
5337
  end
@@ -5303,6 +5346,7 @@ module TencentCloud
5303
5346
  @AdvancedInfo = params['AdvancedInfo']
5304
5347
  @Type = params['Type']
5305
5348
  @Birthday = params['Birthday']
5349
+ @MyKadNumber = params['MyKadNumber']
5306
5350
  @WarnCardInfos = params['WarnCardInfos']
5307
5351
  @RequestId = params['RequestId']
5308
5352
  end
@@ -10472,8 +10516,9 @@ module TencentCloud
10472
10516
  # @param Cells: 单元格内容
10473
10517
  # 注意:此字段可能返回 null,表示取不到有效值。
10474
10518
  # @type Cells: Array
10475
- # @param Type: 图像中的文本块类型,0 为非表格文本,
10476
- # 1 为有线表格,2 为无线表格
10519
+ # @param Type: 图像中的文本块类型:0为非表格文本、1为有线表格、2为无线表格,
10520
+ # 有线表格:在表格内部,有横线/竖线纵跨整个表格的宽/高;
10521
+ # 无线表格:在表格内部,无横线/竖线纵跨整个表格的宽/高。
10477
10522
  # 注意:此字段可能返回 null,表示取不到有效值。
10478
10523
  # @type Type: Integer
10479
10524
  # @param TableCoordPoint: 表格主体四个顶点坐标(依次为左上角,
@@ -11254,6 +11299,63 @@ module TencentCloud
11254
11299
  end
11255
11300
  end
11256
11301
 
11302
+ # 拖拉机行驶证副页正面的识别结果
11303
+ class TextTractorVehicleBack < TencentCloud::Common::AbstractModel
11304
+ # @param PlateNo: 号牌号码
11305
+ # 注意:此字段可能返回 null,表示取不到有效值。
11306
+ # @type PlateNo: String
11307
+ # @param AllowNum: 准乘人数
11308
+ # 注意:此字段可能返回 null,表示取不到有效值。
11309
+ # @type AllowNum: String
11310
+ # @param CombineHarvesterQuality: 联合收割机质量
11311
+ # 注意:此字段可能返回 null,表示取不到有效值。
11312
+ # @type CombineHarvesterQuality: String
11313
+ # @param TractorMinUsageWeight: 拖拉机最小使用质量
11314
+ # 注意:此字段可能返回 null,表示取不到有效值。
11315
+ # @type TractorMinUsageWeight: String
11316
+ # @param TractorMaxAllowLoadCapacity: 拖拉机最大允许载质量
11317
+ # 注意:此字段可能返回 null,表示取不到有效值。
11318
+ # @type TractorMaxAllowLoadCapacity: String
11319
+ # @param ExternalSize: 外廓尺寸
11320
+ # 注意:此字段可能返回 null,表示取不到有效值。
11321
+ # @type ExternalSize: String
11322
+ # @param Record: 检验记录
11323
+ # 注意:此字段可能返回 null,表示取不到有效值。
11324
+ # @type Record: String
11325
+ # @param VehicleType: 类型
11326
+ # 注意:此字段可能返回 null,表示取不到有效值。
11327
+ # @type VehicleType: String
11328
+ # @param Address: 住址
11329
+ # 注意:此字段可能返回 null,表示取不到有效值。
11330
+ # @type Address: String
11331
+
11332
+ attr_accessor :PlateNo, :AllowNum, :CombineHarvesterQuality, :TractorMinUsageWeight, :TractorMaxAllowLoadCapacity, :ExternalSize, :Record, :VehicleType, :Address
11333
+
11334
+ def initialize(plateno=nil, allownum=nil, combineharvesterquality=nil, tractorminusageweight=nil, tractormaxallowloadcapacity=nil, externalsize=nil, record=nil, vehicletype=nil, address=nil)
11335
+ @PlateNo = plateno
11336
+ @AllowNum = allownum
11337
+ @CombineHarvesterQuality = combineharvesterquality
11338
+ @TractorMinUsageWeight = tractorminusageweight
11339
+ @TractorMaxAllowLoadCapacity = tractormaxallowloadcapacity
11340
+ @ExternalSize = externalsize
11341
+ @Record = record
11342
+ @VehicleType = vehicletype
11343
+ @Address = address
11344
+ end
11345
+
11346
+ def deserialize(params)
11347
+ @PlateNo = params['PlateNo']
11348
+ @AllowNum = params['AllowNum']
11349
+ @CombineHarvesterQuality = params['CombineHarvesterQuality']
11350
+ @TractorMinUsageWeight = params['TractorMinUsageWeight']
11351
+ @TractorMaxAllowLoadCapacity = params['TractorMaxAllowLoadCapacity']
11352
+ @ExternalSize = params['ExternalSize']
11353
+ @Record = params['Record']
11354
+ @VehicleType = params['VehicleType']
11355
+ @Address = params['Address']
11356
+ end
11357
+ end
11358
+
11257
11359
  # 增值税发票识别结果
11258
11360
  class TextVatInvoice < TencentCloud::Common::AbstractModel
11259
11361
  # @param Name: 识别出的字段名称(关键字)。支持以下字段的识别:
@@ -13570,19 +13672,23 @@ module TencentCloud
13570
13672
  # DOUBLE 为行驶证主页正面和副页正面。
13571
13673
  # 默认值为:FRONT。
13572
13674
  # @type CardSide: String
13675
+ # @param TractorCardSide: FRONT为行驶证主页正面(有红色印章的一面),BACK 为拖拉机行驶证副页正面识别
13676
+ # @type TractorCardSide: String
13573
13677
 
13574
- attr_accessor :ImageBase64, :ImageUrl, :CardSide
13678
+ attr_accessor :ImageBase64, :ImageUrl, :CardSide, :TractorCardSide
13575
13679
 
13576
- def initialize(imagebase64=nil, imageurl=nil, cardside=nil)
13680
+ def initialize(imagebase64=nil, imageurl=nil, cardside=nil, tractorcardside=nil)
13577
13681
  @ImageBase64 = imagebase64
13578
13682
  @ImageUrl = imageurl
13579
13683
  @CardSide = cardside
13684
+ @TractorCardSide = tractorcardside
13580
13685
  end
13581
13686
 
13582
13687
  def deserialize(params)
13583
13688
  @ImageBase64 = params['ImageBase64']
13584
13689
  @ImageUrl = params['ImageUrl']
13585
13690
  @CardSide = params['CardSide']
13691
+ @TractorCardSide = params['TractorCardSide']
13586
13692
  end
13587
13693
  end
13588
13694
 
@@ -13612,17 +13718,21 @@ module TencentCloud
13612
13718
  # @type RecognizeWarnMsg: Array
13613
13719
  # @param VehicleLicenseType: 行驶证类型 电子行驶证:Electronic 普通行驶证:Normal
13614
13720
  # @type VehicleLicenseType: String
13721
+ # @param TractorBackInfo: 拖拉机行驶证副页正面的识别结果,CardSide 为 BACK。
13722
+ # 注意:此字段可能返回 null,表示取不到有效值。
13723
+ # @type TractorBackInfo: :class:`Tencentcloud::Ocr.v20181119.models.TextTractorVehicleBack`
13615
13724
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13616
13725
  # @type RequestId: String
13617
13726
 
13618
- attr_accessor :FrontInfo, :BackInfo, :RecognizeWarnCode, :RecognizeWarnMsg, :VehicleLicenseType, :RequestId
13727
+ attr_accessor :FrontInfo, :BackInfo, :RecognizeWarnCode, :RecognizeWarnMsg, :VehicleLicenseType, :TractorBackInfo, :RequestId
13619
13728
 
13620
- def initialize(frontinfo=nil, backinfo=nil, recognizewarncode=nil, recognizewarnmsg=nil, vehiclelicensetype=nil, requestid=nil)
13729
+ def initialize(frontinfo=nil, backinfo=nil, recognizewarncode=nil, recognizewarnmsg=nil, vehiclelicensetype=nil, tractorbackinfo=nil, requestid=nil)
13621
13730
  @FrontInfo = frontinfo
13622
13731
  @BackInfo = backinfo
13623
13732
  @RecognizeWarnCode = recognizewarncode
13624
13733
  @RecognizeWarnMsg = recognizewarnmsg
13625
13734
  @VehicleLicenseType = vehiclelicensetype
13735
+ @TractorBackInfo = tractorbackinfo
13626
13736
  @RequestId = requestid
13627
13737
  end
13628
13738
 
@@ -13638,6 +13748,10 @@ module TencentCloud
13638
13748
  @RecognizeWarnCode = params['RecognizeWarnCode']
13639
13749
  @RecognizeWarnMsg = params['RecognizeWarnMsg']
13640
13750
  @VehicleLicenseType = params['VehicleLicenseType']
13751
+ unless params['TractorBackInfo'].nil?
13752
+ @TractorBackInfo = TextTractorVehicleBack.new
13753
+ @TractorBackInfo.deserialize(params['TractorBackInfo'])
13754
+ end
13641
13755
  @RequestId = params['RequestId']
13642
13756
  end
13643
13757
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ocr
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.956
4
+ version: 3.0.958
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-06 00:00:00.000000000 Z
11
+ date: 2024-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common