tencentcloud-sdk-ocr 3.0.1129 → 3.0.1133

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 +38 -30
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45a2eb8a85d06759cfa1898d339b058a53ba75bb
4
- data.tar.gz: c7ec8bda99a3e5d4965665cc88dcaf57cfb0d6c5
3
+ metadata.gz: 2f132b779631c0758edeb98ee72adafd3f8264af
4
+ data.tar.gz: c2f1a13be87820c5516dd1ce77c02d0ccaa132d4
5
5
  SHA512:
6
- metadata.gz: 0b0b4df68e1c5aa302bb53d350a189eef8ff18d5737e19cac3f83a1dc50c16f4ada2d16c3bc37754e56afea1b50ba43e9212300f8be118fd768142e98640f49b
7
- data.tar.gz: 61a3a31ceeeb386874bc71639259410366d213af7f00ba96fb7ac5abbe6a41d287d13aacb3e84b2913a861f3f3a4a9457d015e46cfbdf428ae76505a38c02f4c
6
+ metadata.gz: 4e35325fef8864914c0bd5a21a741b3ad2acdc39654799ee58e48eb637c79105d0b78b5c24525c0ab6b1185f0dc67aa176d282d77224e8a7d8bc6346885da99a
7
+ data.tar.gz: c99eeecfcacc6d6a3547443ed72bbe3dc132854c5382d6c0e63ea77d7479225b1c45976b6ae361e832ac7a0abdc0276d4e1bad3312a8032f19027c36ea4ae02b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1129
1
+ 3.0.1133
@@ -777,12 +777,14 @@ module TencentCloud
777
777
  # @type Electronic: Boolean
778
778
  # @param BusinessCertificate: 非营业执照的营业类证件识别结果,将以结构化形式呈现。
779
779
  # @type BusinessCertificate: Array
780
+ # @param Important: 重要提示字段
781
+ # @type Important: String
780
782
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
781
783
  # @type RequestId: String
782
784
 
783
- attr_accessor :RegNum, :Name, :Capital, :Person, :Address, :Business, :Type, :Period, :ComposingForm, :SetDate, :RecognizeWarnCode, :RecognizeWarnMsg, :IsDuplication, :RegistrationDate, :Angle, :NationalEmblem, :QRCode, :Seal, :Title, :SerialNumber, :RegistrationAuthority, :Electronic, :BusinessCertificate, :RequestId
785
+ attr_accessor :RegNum, :Name, :Capital, :Person, :Address, :Business, :Type, :Period, :ComposingForm, :SetDate, :RecognizeWarnCode, :RecognizeWarnMsg, :IsDuplication, :RegistrationDate, :Angle, :NationalEmblem, :QRCode, :Seal, :Title, :SerialNumber, :RegistrationAuthority, :Electronic, :BusinessCertificate, :Important, :RequestId
784
786
 
785
- def initialize(regnum=nil, name=nil, capital=nil, person=nil, address=nil, business=nil, type=nil, period=nil, composingform=nil, setdate=nil, recognizewarncode=nil, recognizewarnmsg=nil, isduplication=nil, registrationdate=nil, angle=nil, nationalemblem=nil, qrcode=nil, seal=nil, title=nil, serialnumber=nil, registrationauthority=nil, electronic=nil, businesscertificate=nil, requestid=nil)
787
+ def initialize(regnum=nil, name=nil, capital=nil, person=nil, address=nil, business=nil, type=nil, period=nil, composingform=nil, setdate=nil, recognizewarncode=nil, recognizewarnmsg=nil, isduplication=nil, registrationdate=nil, angle=nil, nationalemblem=nil, qrcode=nil, seal=nil, title=nil, serialnumber=nil, registrationauthority=nil, electronic=nil, businesscertificate=nil, important=nil, requestid=nil)
786
788
  @RegNum = regnum
787
789
  @Name = name
788
790
  @Capital = capital
@@ -806,6 +808,7 @@ module TencentCloud
806
808
  @RegistrationAuthority = registrationauthority
807
809
  @Electronic = electronic
808
810
  @BusinessCertificate = businesscertificate
811
+ @Important = important
809
812
  @RequestId = requestid
810
813
  end
811
814
 
@@ -840,6 +843,7 @@ module TencentCloud
840
843
  @BusinessCertificate << businesscertificateinfo_tmp
841
844
  end
842
845
  end
846
+ @Important = params['Important']
843
847
  @RequestId = params['RequestId']
844
848
  end
845
849
  end
@@ -3861,8 +3865,8 @@ module TencentCloud
3861
3865
 
3862
3866
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
3863
3867
  extend Gem::Deprecate
3864
- deprecate :Angel, :none, 2025, 8
3865
- deprecate :Angel=, :none, 2025, 8
3868
+ deprecate :Angel, :none, 2025, 9
3869
+ deprecate :Angel=, :none, 2025, 9
3866
3870
 
3867
3871
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
3868
3872
  @TextDetections = textdetections
@@ -3968,8 +3972,8 @@ module TencentCloud
3968
3972
 
3969
3973
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
3970
3974
  extend Gem::Deprecate
3971
- deprecate :Angel, :none, 2025, 8
3972
- deprecate :Angel=, :none, 2025, 8
3975
+ deprecate :Angel, :none, 2025, 9
3976
+ deprecate :Angel=, :none, 2025, 9
3973
3977
 
3974
3978
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
3975
3979
  @TextDetections = textdetections
@@ -4065,8 +4069,8 @@ module TencentCloud
4065
4069
 
4066
4070
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4067
4071
  extend Gem::Deprecate
4068
- deprecate :Angel, :none, 2025, 8
4069
- deprecate :Angel=, :none, 2025, 8
4072
+ deprecate :Angel, :none, 2025, 9
4073
+ deprecate :Angel=, :none, 2025, 9
4070
4074
 
4071
4075
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4072
4076
  @TextDetections = textdetections
@@ -4212,8 +4216,8 @@ module TencentCloud
4212
4216
 
4213
4217
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4214
4218
  extend Gem::Deprecate
4215
- deprecate :Angel, :none, 2025, 8
4216
- deprecate :Angel=, :none, 2025, 8
4219
+ deprecate :Angel, :none, 2025, 9
4220
+ deprecate :Angel=, :none, 2025, 9
4217
4221
 
4218
4222
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4219
4223
  @TextDetections = textdetections
@@ -4447,8 +4451,8 @@ module TencentCloud
4447
4451
 
4448
4452
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
4449
4453
  extend Gem::Deprecate
4450
- deprecate :DetectFake, :none, 2025, 8
4451
- deprecate :DetectFake=, :none, 2025, 8
4454
+ deprecate :DetectFake, :none, 2025, 9
4455
+ deprecate :DetectFake=, :none, 2025, 9
4452
4456
 
4453
4457
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
4454
4458
  @ReturnHeadImage = returnheadimage
@@ -4520,10 +4524,10 @@ module TencentCloud
4520
4524
 
4521
4525
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
4522
4526
  extend Gem::Deprecate
4523
- deprecate :FakeDetectResult, :none, 2025, 8
4524
- deprecate :FakeDetectResult=, :none, 2025, 8
4525
- deprecate :WarningCode, :none, 2025, 8
4526
- deprecate :WarningCode=, :none, 2025, 8
4527
+ deprecate :FakeDetectResult, :none, 2025, 9
4528
+ deprecate :FakeDetectResult=, :none, 2025, 9
4529
+ deprecate :WarningCode, :none, 2025, 9
4530
+ deprecate :WarningCode=, :none, 2025, 9
4527
4531
 
4528
4532
  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)
4529
4533
  @CnName = cnname
@@ -4990,8 +4994,8 @@ module TencentCloud
4990
4994
 
4991
4995
  attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
4992
4996
  extend Gem::Deprecate
4993
- deprecate :EnableDateVerify, :none, 2025, 8
4994
- deprecate :EnableDateVerify=, :none, 2025, 8
4997
+ deprecate :EnableDateVerify, :none, 2025, 9
4998
+ deprecate :EnableDateVerify=, :none, 2025, 9
4995
4999
 
4996
5000
  def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
4997
5001
  @ImageBase64 = imagebase64
@@ -5941,10 +5945,10 @@ module TencentCloud
5941
5945
 
5942
5946
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
5943
5947
  extend Gem::Deprecate
5944
- deprecate :Warn, :none, 2025, 8
5945
- deprecate :Warn=, :none, 2025, 8
5946
- deprecate :AdvancedInfo, :none, 2025, 8
5947
- deprecate :AdvancedInfo=, :none, 2025, 8
5948
+ deprecate :Warn, :none, 2025, 9
5949
+ deprecate :Warn=, :none, 2025, 9
5950
+ deprecate :AdvancedInfo, :none, 2025, 9
5951
+ deprecate :AdvancedInfo=, :none, 2025, 9
5948
5952
 
5949
5953
  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)
5950
5954
  @ID = id
@@ -6053,10 +6057,10 @@ module TencentCloud
6053
6057
 
6054
6058
  attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
6055
6059
  extend Gem::Deprecate
6056
- deprecate :Warn, :none, 2025, 8
6057
- deprecate :Warn=, :none, 2025, 8
6058
- deprecate :AdvancedInfo, :none, 2025, 8
6059
- deprecate :AdvancedInfo=, :none, 2025, 8
6060
+ deprecate :Warn, :none, 2025, 9
6061
+ deprecate :Warn=, :none, 2025, 9
6062
+ deprecate :AdvancedInfo, :none, 2025, 9
6063
+ deprecate :AdvancedInfo=, :none, 2025, 9
6060
6064
 
6061
6065
  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)
6062
6066
  @ID = id
@@ -8177,16 +8181,19 @@ module TencentCloud
8177
8181
  # @type EnableImageCrop: Boolean
8178
8182
  # @param EnableOnlyDetectBorder: 是否只返回检测框,默认false
8179
8183
  # @type EnableOnlyDetectBorder: Boolean
8184
+ # @param UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
8185
+ # @type UseNewModel: Boolean
8180
8186
 
8181
- attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :EnableImageCrop, :EnableOnlyDetectBorder
8187
+ attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :EnableImageCrop, :EnableOnlyDetectBorder, :UseNewModel
8182
8188
 
8183
- def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, enableimagecrop=nil, enableonlydetectborder=nil)
8189
+ def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, enableimagecrop=nil, enableonlydetectborder=nil, usenewmodel=nil)
8184
8190
  @ImageUrl = imageurl
8185
8191
  @ImageBase64 = imagebase64
8186
8192
  @IsPdf = ispdf
8187
8193
  @PdfPageNumber = pdfpagenumber
8188
8194
  @EnableImageCrop = enableimagecrop
8189
8195
  @EnableOnlyDetectBorder = enableonlydetectborder
8196
+ @UseNewModel = usenewmodel
8190
8197
  end
8191
8198
 
8192
8199
  def deserialize(params)
@@ -8196,6 +8203,7 @@ module TencentCloud
8196
8203
  @PdfPageNumber = params['PdfPageNumber']
8197
8204
  @EnableImageCrop = params['EnableImageCrop']
8198
8205
  @EnableOnlyDetectBorder = params['EnableOnlyDetectBorder']
8206
+ @UseNewModel = params['UseNewModel']
8199
8207
  end
8200
8208
  end
8201
8209
 
@@ -9738,8 +9746,8 @@ module TencentCloud
9738
9746
 
9739
9747
  attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
9740
9748
  extend Gem::Deprecate
9741
- deprecate :AdvancedInfo, :none, 2025, 8
9742
- deprecate :AdvancedInfo=, :none, 2025, 8
9749
+ deprecate :AdvancedInfo, :none, 2025, 9
9750
+ deprecate :AdvancedInfo=, :none, 2025, 9
9743
9751
 
9744
9752
  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)
9745
9753
  @ID = id
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.1129
4
+ version: 3.0.1133
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-08-25 00:00:00.000000000 Z
11
+ date: 2025-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common