tencentcloud-sdk-ocr 3.0.1109 → 3.0.1115

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 +53 -34
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d8ad8c5d339c104ad37d30667be6c78a76689c6
4
- data.tar.gz: 669d1714248857559818611bffb71d784f00e062
3
+ metadata.gz: 6bfe21e0c1eae8ef3c37f0039ba2e8852c3e0a0f
4
+ data.tar.gz: 8176237863dde210e2e833d0b14e76e29aaf8286
5
5
  SHA512:
6
- metadata.gz: e936c14e0c3fd6b15672e7a9c2fc58c22e8c56b5d7e96a91966c48fdae1ddc0c99df5a527fa955e507f8a5de8f509109e7bf6d6bf9c018d6e290a22809ac0237
7
- data.tar.gz: 699b28468d4d68efa063fd1a4157a242d0e903d59b3841475bcad20154f655ac191a297939ac62e58f1e94097bfc44dc029649df56a719ebfdc7954320a95ad9
6
+ metadata.gz: 9b1bc86b40826745021c13db560a2073a61b864ad62a09d1a706f0ca2a6f586c6a20e71639b95aced9392919ebd93f21d8237d8f9d6d55a213c5016169d6d381
7
+ data.tar.gz: d4bfb94001aec173299d3782a53431c5406875193df9a313caff795f573dee916da385041d5e2487da7f05ebfe57179489816c9d2ee9b3e9b6eac44b0e2990e4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1109
1
+ 3.0.1115
@@ -3851,8 +3851,8 @@ module TencentCloud
3851
3851
 
3852
3852
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
3853
3853
  extend Gem::Deprecate
3854
- deprecate :Angel, :none, 2025, 7
3855
- deprecate :Angel=, :none, 2025, 7
3854
+ deprecate :Angel, :none, 2025, 8
3855
+ deprecate :Angel=, :none, 2025, 8
3856
3856
 
3857
3857
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
3858
3858
  @TextDetections = textdetections
@@ -3958,8 +3958,8 @@ module TencentCloud
3958
3958
 
3959
3959
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
3960
3960
  extend Gem::Deprecate
3961
- deprecate :Angel, :none, 2025, 7
3962
- deprecate :Angel=, :none, 2025, 7
3961
+ deprecate :Angel, :none, 2025, 8
3962
+ deprecate :Angel=, :none, 2025, 8
3963
3963
 
3964
3964
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
3965
3965
  @TextDetections = textdetections
@@ -4055,8 +4055,8 @@ module TencentCloud
4055
4055
 
4056
4056
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4057
4057
  extend Gem::Deprecate
4058
- deprecate :Angel, :none, 2025, 7
4059
- deprecate :Angel=, :none, 2025, 7
4058
+ deprecate :Angel, :none, 2025, 8
4059
+ deprecate :Angel=, :none, 2025, 8
4060
4060
 
4061
4061
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4062
4062
  @TextDetections = textdetections
@@ -4202,8 +4202,8 @@ module TencentCloud
4202
4202
 
4203
4203
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4204
4204
  extend Gem::Deprecate
4205
- deprecate :Angel, :none, 2025, 7
4206
- deprecate :Angel=, :none, 2025, 7
4205
+ deprecate :Angel, :none, 2025, 8
4206
+ deprecate :Angel=, :none, 2025, 8
4207
4207
 
4208
4208
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4209
4209
  @TextDetections = textdetections
@@ -4426,8 +4426,8 @@ module TencentCloud
4426
4426
 
4427
4427
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
4428
4428
  extend Gem::Deprecate
4429
- deprecate :DetectFake, :none, 2025, 7
4430
- deprecate :DetectFake=, :none, 2025, 7
4429
+ deprecate :DetectFake, :none, 2025, 8
4430
+ deprecate :DetectFake=, :none, 2025, 8
4431
4431
 
4432
4432
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
4433
4433
  @ReturnHeadImage = returnheadimage
@@ -4500,10 +4500,10 @@ module TencentCloud
4500
4500
 
4501
4501
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
4502
4502
  extend Gem::Deprecate
4503
- deprecate :FakeDetectResult, :none, 2025, 7
4504
- deprecate :FakeDetectResult=, :none, 2025, 7
4505
- deprecate :WarningCode, :none, 2025, 7
4506
- deprecate :WarningCode=, :none, 2025, 7
4503
+ deprecate :FakeDetectResult, :none, 2025, 8
4504
+ deprecate :FakeDetectResult=, :none, 2025, 8
4505
+ deprecate :WarningCode, :none, 2025, 8
4506
+ deprecate :WarningCode=, :none, 2025, 8
4507
4507
 
4508
4508
  def initialize(cnname=nil, enname=nil, telexcode=nil, sex=nil, birthday=nil, permanent=nil, idnum=nil, symbol=nil, firstissuedate=nil, currentissuedate=nil, fakedetectresult=nil, headimage=nil, smallheadimage=nil, warningcode=nil, warncardinfos=nil, windowembeddedtext=nil, requestid=nil)
4509
4509
  @CnName = cnname
@@ -4970,8 +4970,8 @@ module TencentCloud
4970
4970
 
4971
4971
  attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
4972
4972
  extend Gem::Deprecate
4973
- deprecate :EnableDateVerify, :none, 2025, 7
4974
- deprecate :EnableDateVerify=, :none, 2025, 7
4973
+ deprecate :EnableDateVerify, :none, 2025, 8
4974
+ deprecate :EnableDateVerify=, :none, 2025, 8
4975
4975
 
4976
4976
  def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
4977
4977
  @ImageBase64 = imagebase64
@@ -5921,10 +5921,10 @@ module TencentCloud
5921
5921
 
5922
5922
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
5923
5923
  extend Gem::Deprecate
5924
- deprecate :Warn, :none, 2025, 7
5925
- deprecate :Warn=, :none, 2025, 7
5926
- deprecate :AdvancedInfo, :none, 2025, 7
5927
- deprecate :AdvancedInfo=, :none, 2025, 7
5924
+ deprecate :Warn, :none, 2025, 8
5925
+ deprecate :Warn=, :none, 2025, 8
5926
+ deprecate :AdvancedInfo, :none, 2025, 8
5927
+ deprecate :AdvancedInfo=, :none, 2025, 8
5928
5928
 
5929
5929
  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)
5930
5930
  @ID = id
@@ -6026,17 +6026,19 @@ module TencentCloud
6026
6026
  # -9108 证件模糊告警
6027
6027
  # -9109 告警能力未开通
6028
6028
  # @type WarnCardInfos: Array
6029
+ # @param CardCount: 输入图片中的卡证数量(仅请求曼谷地域[ap-bangkok]返回)
6030
+ # @type CardCount: Integer
6029
6031
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6030
6032
  # @type RequestId: String
6031
6033
 
6032
- attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :RequestId
6034
+ attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
6033
6035
  extend Gem::Deprecate
6034
- deprecate :Warn, :none, 2025, 7
6035
- deprecate :Warn=, :none, 2025, 7
6036
- deprecate :AdvancedInfo, :none, 2025, 7
6037
- deprecate :AdvancedInfo=, :none, 2025, 7
6036
+ deprecate :Warn, :none, 2025, 8
6037
+ deprecate :Warn=, :none, 2025, 8
6038
+ deprecate :AdvancedInfo, :none, 2025, 8
6039
+ deprecate :AdvancedInfo=, :none, 2025, 8
6038
6040
 
6039
- def initialize(id=nil, name=nil, dateofbirth=nil, sex=nil, dateofexpiration=nil, issuingcountry=nil, nationality=nil, warn=nil, image=nil, advancedinfo=nil, codeset=nil, codecrc=nil, surname=nil, givenname=nil, type=nil, passportrecognizeinfos=nil, warncardinfos=nil, requestid=nil)
6041
+ def initialize(id=nil, name=nil, dateofbirth=nil, sex=nil, dateofexpiration=nil, issuingcountry=nil, nationality=nil, warn=nil, image=nil, advancedinfo=nil, codeset=nil, codecrc=nil, surname=nil, givenname=nil, type=nil, passportrecognizeinfos=nil, warncardinfos=nil, cardcount=nil, requestid=nil)
6040
6042
  @ID = id
6041
6043
  @Name = name
6042
6044
  @DateOfBirth = dateofbirth
@@ -6054,6 +6056,7 @@ module TencentCloud
6054
6056
  @Type = type
6055
6057
  @PassportRecognizeInfos = passportrecognizeinfos
6056
6058
  @WarnCardInfos = warncardinfos
6059
+ @CardCount = cardcount
6057
6060
  @RequestId = requestid
6058
6061
  end
6059
6062
 
@@ -6078,6 +6081,7 @@ module TencentCloud
6078
6081
  @PassportRecognizeInfos.deserialize(params['PassportRecognizeInfos'])
6079
6082
  end
6080
6083
  @WarnCardInfos = params['WarnCardInfos']
6084
+ @CardCount = params['CardCount']
6081
6085
  @RequestId = params['RequestId']
6082
6086
  end
6083
6087
  end
@@ -9437,9 +9441,9 @@ module TencentCloud
9437
9441
 
9438
9442
  # RecognizeTableAccurateOCR请求参数结构体
9439
9443
  class RecognizeTableAccurateOCRRequest < TencentCloud::Common::AbstractModel
9440
- # @param ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9444
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9441
9445
  # @type ImageBase64: String
9442
- # @param ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9446
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9443
9447
  # @type ImageUrl: String
9444
9448
  # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF有效,默认值为1。
9445
9449
  # @type PdfPageNumber: Integer
@@ -9707,15 +9711,17 @@ module TencentCloud
9707
9711
  # @type WarnCardInfos: Array
9708
9712
  # @param AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
9709
9713
  # @type AdvancedInfo: String
9714
+ # @param CardCount: 卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)
9715
+ # @type CardCount: Integer
9710
9716
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9711
9717
  # @type RequestId: String
9712
9718
 
9713
- attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :RequestId
9719
+ attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
9714
9720
  extend Gem::Deprecate
9715
- deprecate :AdvancedInfo, :none, 2025, 7
9716
- deprecate :AdvancedInfo=, :none, 2025, 7
9721
+ deprecate :AdvancedInfo, :none, 2025, 8
9722
+ deprecate :AdvancedInfo=, :none, 2025, 8
9717
9723
 
9718
- def initialize(id=nil, thainame=nil, enfirstname=nil, enlastname=nil, issuedate=nil, expirationdate=nil, enissuedate=nil, enexpirationdate=nil, birthday=nil, enbirthday=nil, religion=nil, serialnumber=nil, address=nil, laserid=nil, portraitimage=nil, warncardinfos=nil, advancedinfo=nil, requestid=nil)
9724
+ def initialize(id=nil, thainame=nil, enfirstname=nil, enlastname=nil, issuedate=nil, expirationdate=nil, enissuedate=nil, enexpirationdate=nil, birthday=nil, enbirthday=nil, religion=nil, serialnumber=nil, address=nil, laserid=nil, portraitimage=nil, warncardinfos=nil, advancedinfo=nil, cardcount=nil, requestid=nil)
9719
9725
  @ID = id
9720
9726
  @ThaiName = thainame
9721
9727
  @EnFirstName = enfirstname
@@ -9733,6 +9739,7 @@ module TencentCloud
9733
9739
  @PortraitImage = portraitimage
9734
9740
  @WarnCardInfos = warncardinfos
9735
9741
  @AdvancedInfo = advancedinfo
9742
+ @CardCount = cardcount
9736
9743
  @RequestId = requestid
9737
9744
  end
9738
9745
 
@@ -9754,6 +9761,7 @@ module TencentCloud
9754
9761
  @PortraitImage = params['PortraitImage']
9755
9762
  @WarnCardInfos = params['WarnCardInfos']
9756
9763
  @AdvancedInfo = params['AdvancedInfo']
9764
+ @CardCount = params['CardCount']
9757
9765
  @RequestId = params['RequestId']
9758
9766
  end
9759
9767
  end
@@ -11556,12 +11564,15 @@ module TencentCloud
11556
11564
  # 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
11557
11565
  # 示例值:纳税人识别号
11558
11566
  # @type Content: Array
11567
+ # @param TableItems: 表格。
11568
+ # @type TableItems: Array
11559
11569
 
11560
- attr_accessor :Title, :Content
11570
+ attr_accessor :Title, :Content, :TableItems
11561
11571
 
11562
- def initialize(title=nil, content=nil)
11572
+ def initialize(title=nil, content=nil, tableitems=nil)
11563
11573
  @Title = title
11564
11574
  @Content = content
11575
+ @TableItems = tableitems
11565
11576
  end
11566
11577
 
11567
11578
  def deserialize(params)
@@ -11574,6 +11585,14 @@ module TencentCloud
11574
11585
  @Content << otherinvoiceitem_tmp
11575
11586
  end
11576
11587
  end
11588
+ unless params['TableItems'].nil?
11589
+ @TableItems = []
11590
+ params['TableItems'].each do |i|
11591
+ otherinvoicelist_tmp = OtherInvoiceList.new
11592
+ otherinvoicelist_tmp.deserialize(i)
11593
+ @TableItems << otherinvoicelist_tmp
11594
+ end
11595
+ end
11577
11596
  end
11578
11597
  end
11579
11598
 
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.1109
4
+ version: 3.0.1115
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-27 00:00:00.000000000 Z
11
+ date: 2025-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common