tencentcloud-sdk-ocr 3.0.1129 → 3.0.1135

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 +50 -32
  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: 7816e17d7c3e1945d19b5a90a8de1cfe9f8d8e69
4
+ data.tar.gz: 4cd74cfba33009987171c2347d2100752db034d5
5
5
  SHA512:
6
- metadata.gz: 0b0b4df68e1c5aa302bb53d350a189eef8ff18d5737e19cac3f83a1dc50c16f4ada2d16c3bc37754e56afea1b50ba43e9212300f8be118fd768142e98640f49b
7
- data.tar.gz: 61a3a31ceeeb386874bc71639259410366d213af7f00ba96fb7ac5abbe6a41d287d13aacb3e84b2913a861f3f3a4a9457d015e46cfbdf428ae76505a38c02f4c
6
+ metadata.gz: f2503873376563346de3593bd109e8964f183197969bb011fde31726ff49565774e7c0ceae4537d964daf6cda9b2a25fd95dc2ec290fd4d22467f7ac4ff06f97
7
+ data.tar.gz: e86f6681fafe0fb824eeb9e92dd687f27a9ef7b927c2f71407ef6616b1ebf0da817986caadcbfe3bd2864c36813d67a8e46865d6cbd3a34a482e6197eaf79ad4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1129
1
+ 3.0.1135
@@ -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
@@ -3109,6 +3113,11 @@ module TencentCloud
3109
3113
  # MultiRealEstateCertificate -- 房产材料识别模板
3110
3114
  # MultiRealEstateMaterial -- 房产证明识别模板
3111
3115
  # HongKongUtilityBill -- 中国香港水电煤单识别模板
3116
+ # OverseasCheques -- 海外支票
3117
+ # RegistrationCertificate -- 备案证
3118
+ # ​GridPhoto -- 电网系统照片
3119
+ # ​SignaturePage -- 签署页
3120
+
3112
3121
  # @type ConfigId: String
3113
3122
  # @param EnableCoord: 是否开启全文字段坐标值的识别
3114
3123
  # @type EnableCoord: Boolean
@@ -3861,8 +3870,8 @@ module TencentCloud
3861
3870
 
3862
3871
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
3863
3872
  extend Gem::Deprecate
3864
- deprecate :Angel, :none, 2025, 8
3865
- deprecate :Angel=, :none, 2025, 8
3873
+ deprecate :Angel, :none, 2025, 9
3874
+ deprecate :Angel=, :none, 2025, 9
3866
3875
 
3867
3876
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
3868
3877
  @TextDetections = textdetections
@@ -3968,8 +3977,8 @@ module TencentCloud
3968
3977
 
3969
3978
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
3970
3979
  extend Gem::Deprecate
3971
- deprecate :Angel, :none, 2025, 8
3972
- deprecate :Angel=, :none, 2025, 8
3980
+ deprecate :Angel, :none, 2025, 9
3981
+ deprecate :Angel=, :none, 2025, 9
3973
3982
 
3974
3983
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
3975
3984
  @TextDetections = textdetections
@@ -4065,8 +4074,8 @@ module TencentCloud
4065
4074
 
4066
4075
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4067
4076
  extend Gem::Deprecate
4068
- deprecate :Angel, :none, 2025, 8
4069
- deprecate :Angel=, :none, 2025, 8
4077
+ deprecate :Angel, :none, 2025, 9
4078
+ deprecate :Angel=, :none, 2025, 9
4070
4079
 
4071
4080
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4072
4081
  @TextDetections = textdetections
@@ -4212,8 +4221,8 @@ module TencentCloud
4212
4221
 
4213
4222
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4214
4223
  extend Gem::Deprecate
4215
- deprecate :Angel, :none, 2025, 8
4216
- deprecate :Angel=, :none, 2025, 8
4224
+ deprecate :Angel, :none, 2025, 9
4225
+ deprecate :Angel=, :none, 2025, 9
4217
4226
 
4218
4227
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4219
4228
  @TextDetections = textdetections
@@ -4447,8 +4456,8 @@ module TencentCloud
4447
4456
 
4448
4457
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
4449
4458
  extend Gem::Deprecate
4450
- deprecate :DetectFake, :none, 2025, 8
4451
- deprecate :DetectFake=, :none, 2025, 8
4459
+ deprecate :DetectFake, :none, 2025, 9
4460
+ deprecate :DetectFake=, :none, 2025, 9
4452
4461
 
4453
4462
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
4454
4463
  @ReturnHeadImage = returnheadimage
@@ -4520,10 +4529,10 @@ module TencentCloud
4520
4529
 
4521
4530
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
4522
4531
  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
4532
+ deprecate :FakeDetectResult, :none, 2025, 9
4533
+ deprecate :FakeDetectResult=, :none, 2025, 9
4534
+ deprecate :WarningCode, :none, 2025, 9
4535
+ deprecate :WarningCode=, :none, 2025, 9
4527
4536
 
4528
4537
  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
4538
  @CnName = cnname
@@ -4990,8 +4999,8 @@ module TencentCloud
4990
4999
 
4991
5000
  attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
4992
5001
  extend Gem::Deprecate
4993
- deprecate :EnableDateVerify, :none, 2025, 8
4994
- deprecate :EnableDateVerify=, :none, 2025, 8
5002
+ deprecate :EnableDateVerify, :none, 2025, 9
5003
+ deprecate :EnableDateVerify=, :none, 2025, 9
4995
5004
 
4996
5005
  def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
4997
5006
  @ImageBase64 = imagebase64
@@ -5941,10 +5950,10 @@ module TencentCloud
5941
5950
 
5942
5951
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
5943
5952
  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
5953
+ deprecate :Warn, :none, 2025, 9
5954
+ deprecate :Warn=, :none, 2025, 9
5955
+ deprecate :AdvancedInfo, :none, 2025, 9
5956
+ deprecate :AdvancedInfo=, :none, 2025, 9
5948
5957
 
5949
5958
  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
5959
  @ID = id
@@ -6053,10 +6062,10 @@ module TencentCloud
6053
6062
 
6054
6063
  attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
6055
6064
  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
6065
+ deprecate :Warn, :none, 2025, 9
6066
+ deprecate :Warn=, :none, 2025, 9
6067
+ deprecate :AdvancedInfo, :none, 2025, 9
6068
+ deprecate :AdvancedInfo=, :none, 2025, 9
6060
6069
 
6061
6070
  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
6071
  @ID = id
@@ -8177,16 +8186,19 @@ module TencentCloud
8177
8186
  # @type EnableImageCrop: Boolean
8178
8187
  # @param EnableOnlyDetectBorder: 是否只返回检测框,默认false
8179
8188
  # @type EnableOnlyDetectBorder: Boolean
8189
+ # @param UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
8190
+ # @type UseNewModel: Boolean
8180
8191
 
8181
- attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :EnableImageCrop, :EnableOnlyDetectBorder
8192
+ attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :EnableImageCrop, :EnableOnlyDetectBorder, :UseNewModel
8182
8193
 
8183
- def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, enableimagecrop=nil, enableonlydetectborder=nil)
8194
+ def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, enableimagecrop=nil, enableonlydetectborder=nil, usenewmodel=nil)
8184
8195
  @ImageUrl = imageurl
8185
8196
  @ImageBase64 = imagebase64
8186
8197
  @IsPdf = ispdf
8187
8198
  @PdfPageNumber = pdfpagenumber
8188
8199
  @EnableImageCrop = enableimagecrop
8189
8200
  @EnableOnlyDetectBorder = enableonlydetectborder
8201
+ @UseNewModel = usenewmodel
8190
8202
  end
8191
8203
 
8192
8204
  def deserialize(params)
@@ -8196,6 +8208,7 @@ module TencentCloud
8196
8208
  @PdfPageNumber = params['PdfPageNumber']
8197
8209
  @EnableImageCrop = params['EnableImageCrop']
8198
8210
  @EnableOnlyDetectBorder = params['EnableOnlyDetectBorder']
8211
+ @UseNewModel = params['UseNewModel']
8199
8212
  end
8200
8213
  end
8201
8214
 
@@ -9738,8 +9751,8 @@ module TencentCloud
9738
9751
 
9739
9752
  attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
9740
9753
  extend Gem::Deprecate
9741
- deprecate :AdvancedInfo, :none, 2025, 8
9742
- deprecate :AdvancedInfo=, :none, 2025, 8
9754
+ deprecate :AdvancedInfo, :none, 2025, 9
9755
+ deprecate :AdvancedInfo=, :none, 2025, 9
9743
9756
 
9744
9757
  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
9758
  @ID = id
@@ -13316,12 +13329,16 @@ module TencentCloud
13316
13329
  # @param Coord: 四点坐标
13317
13330
  # 注意:此字段可能返回 null,表示取不到有效值。
13318
13331
  # @type Coord: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
13332
+ # @param PageIndex: 页数
13333
+ # 注意:此字段可能返回 null,表示取不到有效值。
13334
+ # @type PageIndex: String
13319
13335
 
13320
- attr_accessor :AutoContent, :Coord
13336
+ attr_accessor :AutoContent, :Coord, :PageIndex
13321
13337
 
13322
- def initialize(autocontent=nil, coord=nil)
13338
+ def initialize(autocontent=nil, coord=nil, pageindex=nil)
13323
13339
  @AutoContent = autocontent
13324
13340
  @Coord = coord
13341
+ @PageIndex = pageindex
13325
13342
  end
13326
13343
 
13327
13344
  def deserialize(params)
@@ -13330,6 +13347,7 @@ module TencentCloud
13330
13347
  @Coord = Polygon.new
13331
13348
  @Coord.deserialize(params['Coord'])
13332
13349
  end
13350
+ @PageIndex = params['PageIndex']
13333
13351
  end
13334
13352
  end
13335
13353
 
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.1135
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-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common