tencentcloud-sdk-ocr 3.0.957 → 3.0.959

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 643de7f5a71b3e43aa3fd60ff62cd2dd550b4c14
4
- data.tar.gz: 0c117c92677e16383815f9834bafc2cc05d5b0f3
3
+ metadata.gz: 584241fb7492d72b2f25b1107c2702f755b3d8ab
4
+ data.tar.gz: 2a73e90c8c64487ca7426f33fabf67702454f2d2
5
5
  SHA512:
6
- metadata.gz: 4d404130340327b7a15f2bea5aa4e2185fb3aa368db311f2163ddada947323bceb1975023dd6674e3be7f3ae90c10688ce150c94a78e153d24b946918db6ace8
7
- data.tar.gz: b84a3e1d34b400fd8a0cb3ec3c2492c2d0e05ed4364f2c4fe1c2e3514daa6c2bf940da97dbe018f8de56df934eb81cdcb008f58f12bc678c69406cd46b3d0c80
6
+ metadata.gz: f1e71ec01460d476b989fbabdb9c2341df68b6aa3fd4ccae9e81838d82fa30eb37d46d953efff0d55003f95773514a58625686e7f3ce06f02d8840551bb7ffaf
7
+ data.tar.gz: 421a7680457935a990777fc558cfc24229b3d4a08021877aac9848abdc76e196a58d0807274fc0554a620d01cb5c2a24fd036d4d90a61317c82a7fe5402f063b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.957
1
+ 3.0.959
@@ -1889,7 +1889,7 @@ module TencentCloud
1889
1889
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1890
1890
  end
1891
1891
 
1892
- # 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://cloud.tencent.com/act/event/ocrdemo)。
1892
+ # 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://ocrdemo.cloud.tencent.com?action=RecognizeTableAccurateOCR)。
1893
1893
 
1894
1894
  # 默认接口请求频率限制:2次/秒。
1895
1895
 
@@ -5233,26 +5233,34 @@ module TencentCloud
5233
5233
  # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5234
5234
  # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
5235
5235
  # @type ImageBase64: String
5236
+ # @param BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5237
+ # @type BackImageBase64: String
5236
5238
  # @param ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )
5237
5239
  # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5238
5240
  # 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
5239
5241
  # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
5240
5242
  # 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5241
5243
  # @type ImageUrl: String
5244
+ # @param BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5245
+ # @type BackImageUrl: String
5242
5246
  # @param RetImage: 是否返回图片,默认false
5243
5247
  # @type RetImage: Boolean
5244
5248
 
5245
- attr_accessor :ImageBase64, :ImageUrl, :RetImage
5249
+ attr_accessor :ImageBase64, :BackImageBase64, :ImageUrl, :BackImageUrl, :RetImage
5246
5250
 
5247
- def initialize(imagebase64=nil, imageurl=nil, retimage=nil)
5251
+ def initialize(imagebase64=nil, backimagebase64=nil, imageurl=nil, backimageurl=nil, retimage=nil)
5248
5252
  @ImageBase64 = imagebase64
5253
+ @BackImageBase64 = backimagebase64
5249
5254
  @ImageUrl = imageurl
5255
+ @BackImageUrl = backimageurl
5250
5256
  @RetImage = retimage
5251
5257
  end
5252
5258
 
5253
5259
  def deserialize(params)
5254
5260
  @ImageBase64 = params['ImageBase64']
5261
+ @BackImageBase64 = params['BackImageBase64']
5255
5262
  @ImageUrl = params['ImageUrl']
5263
+ @BackImageUrl = params['BackImageUrl']
5256
5264
  @RetImage = params['RetImage']
5257
5265
  end
5258
5266
  end
@@ -5294,6 +5302,8 @@ module TencentCloud
5294
5302
  # @type Type: String
5295
5303
  # @param Birthday: 出生日期(目前该字段仅支持IKAD劳工证、MyKad 身份证)
5296
5304
  # @type Birthday: String
5305
+ # @param MyKadNumber: 马来身份证背面号码
5306
+ # @type MyKadNumber: String
5297
5307
  # @param WarnCardInfos: 告警码
5298
5308
  # -9101 证件边框不完整告警
5299
5309
  # -9102 证件复印件告警
@@ -5306,12 +5316,12 @@ module TencentCloud
5306
5316
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5307
5317
  # @type RequestId: String
5308
5318
 
5309
- 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
5310
5320
  extend Gem::Deprecate
5311
5321
  deprecate :Warn, :none, 2024, 12
5312
5322
  deprecate :Warn=, :none, 2024, 12
5313
5323
 
5314
- 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)
5315
5325
  @ID = id
5316
5326
  @Name = name
5317
5327
  @Address = address
@@ -5321,6 +5331,7 @@ module TencentCloud
5321
5331
  @AdvancedInfo = advancedinfo
5322
5332
  @Type = type
5323
5333
  @Birthday = birthday
5334
+ @MyKadNumber = mykadnumber
5324
5335
  @WarnCardInfos = warncardinfos
5325
5336
  @RequestId = requestid
5326
5337
  end
@@ -5335,6 +5346,7 @@ module TencentCloud
5335
5346
  @AdvancedInfo = params['AdvancedInfo']
5336
5347
  @Type = params['Type']
5337
5348
  @Birthday = params['Birthday']
5349
+ @MyKadNumber = params['MyKadNumber']
5338
5350
  @WarnCardInfos = params['WarnCardInfos']
5339
5351
  @RequestId = params['RequestId']
5340
5352
  end
@@ -11287,6 +11299,63 @@ module TencentCloud
11287
11299
  end
11288
11300
  end
11289
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
+
11290
11359
  # 增值税发票识别结果
11291
11360
  class TextVatInvoice < TencentCloud::Common::AbstractModel
11292
11361
  # @param Name: 识别出的字段名称(关键字)。支持以下字段的识别:
@@ -13603,19 +13672,23 @@ module TencentCloud
13603
13672
  # DOUBLE 为行驶证主页正面和副页正面。
13604
13673
  # 默认值为:FRONT。
13605
13674
  # @type CardSide: String
13675
+ # @param TractorCardSide: FRONT为行驶证主页正面(有红色印章的一面),BACK 为拖拉机行驶证副页正面识别
13676
+ # @type TractorCardSide: String
13606
13677
 
13607
- attr_accessor :ImageBase64, :ImageUrl, :CardSide
13678
+ attr_accessor :ImageBase64, :ImageUrl, :CardSide, :TractorCardSide
13608
13679
 
13609
- def initialize(imagebase64=nil, imageurl=nil, cardside=nil)
13680
+ def initialize(imagebase64=nil, imageurl=nil, cardside=nil, tractorcardside=nil)
13610
13681
  @ImageBase64 = imagebase64
13611
13682
  @ImageUrl = imageurl
13612
13683
  @CardSide = cardside
13684
+ @TractorCardSide = tractorcardside
13613
13685
  end
13614
13686
 
13615
13687
  def deserialize(params)
13616
13688
  @ImageBase64 = params['ImageBase64']
13617
13689
  @ImageUrl = params['ImageUrl']
13618
13690
  @CardSide = params['CardSide']
13691
+ @TractorCardSide = params['TractorCardSide']
13619
13692
  end
13620
13693
  end
13621
13694
 
@@ -13645,17 +13718,21 @@ module TencentCloud
13645
13718
  # @type RecognizeWarnMsg: Array
13646
13719
  # @param VehicleLicenseType: 行驶证类型 电子行驶证:Electronic 普通行驶证:Normal
13647
13720
  # @type VehicleLicenseType: String
13721
+ # @param TractorBackInfo: 拖拉机行驶证副页正面的识别结果,CardSide 为 BACK。
13722
+ # 注意:此字段可能返回 null,表示取不到有效值。
13723
+ # @type TractorBackInfo: :class:`Tencentcloud::Ocr.v20181119.models.TextTractorVehicleBack`
13648
13724
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13649
13725
  # @type RequestId: String
13650
13726
 
13651
- attr_accessor :FrontInfo, :BackInfo, :RecognizeWarnCode, :RecognizeWarnMsg, :VehicleLicenseType, :RequestId
13727
+ attr_accessor :FrontInfo, :BackInfo, :RecognizeWarnCode, :RecognizeWarnMsg, :VehicleLicenseType, :TractorBackInfo, :RequestId
13652
13728
 
13653
- 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)
13654
13730
  @FrontInfo = frontinfo
13655
13731
  @BackInfo = backinfo
13656
13732
  @RecognizeWarnCode = recognizewarncode
13657
13733
  @RecognizeWarnMsg = recognizewarnmsg
13658
13734
  @VehicleLicenseType = vehiclelicensetype
13735
+ @TractorBackInfo = tractorbackinfo
13659
13736
  @RequestId = requestid
13660
13737
  end
13661
13738
 
@@ -13671,6 +13748,10 @@ module TencentCloud
13671
13748
  @RecognizeWarnCode = params['RecognizeWarnCode']
13672
13749
  @RecognizeWarnMsg = params['RecognizeWarnMsg']
13673
13750
  @VehicleLicenseType = params['VehicleLicenseType']
13751
+ unless params['TractorBackInfo'].nil?
13752
+ @TractorBackInfo = TextTractorVehicleBack.new
13753
+ @TractorBackInfo.deserialize(params['TractorBackInfo'])
13754
+ end
13674
13755
  @RequestId = params['RequestId']
13675
13756
  end
13676
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.957
4
+ version: 3.0.959
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-09 00:00:00.000000000 Z
11
+ date: 2024-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common