tencentcloud-sdk-ocr 3.0.1144 → 3.0.1156
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +3 -3
- data/lib/v20181119/models.rb +41 -30
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ce4ef48cc2a9dc3d7f08c34d49804996bc17e17
|
|
4
|
+
data.tar.gz: c193abf2a1cbbbe7174d6cf38b8422266d8f93b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b67e5530c8c11d6dc056a0d2b50b4191818ec63aeb5fb34a8ddd2adda0d7a9d06b525ad823e0e6644b918f1e693450d8e13013410fef3dd3f243945839a0b04d
|
|
7
|
+
data.tar.gz: c1a53ccde35d9839620b4efe774b3b46985090d577d6152fd50156da248e61e2cabe16ccf862155897136a180e477bb56bbf7d225d14175205a6381b35d2e77b
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1156
|
data/lib/v20181119/client.rb
CHANGED
|
@@ -480,7 +480,7 @@ module TencentCloud
|
|
|
480
480
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
481
481
|
end
|
|
482
482
|
|
|
483
|
-
# 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
|
483
|
+
# 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocBasic)。
|
|
484
484
|
|
|
485
485
|
# 接口别名:SmartStructuralOCRV2
|
|
486
486
|
|
|
@@ -508,7 +508,7 @@ module TencentCloud
|
|
|
508
508
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
509
509
|
end
|
|
510
510
|
|
|
511
|
-
# 本接口支持识别并提取场景复杂、版式多等结构化场景的字段信息。重点场景包括:金融、医疗、交通、出行、保险。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
|
511
|
+
# 本接口支持识别并提取场景复杂、版式多等结构化场景的字段信息。重点场景包括:金融、医疗、交通、出行、保险。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocMulti)。
|
|
512
512
|
|
|
513
513
|
# 接口别名:SmartStructuralPro
|
|
514
514
|
|
|
@@ -536,7 +536,7 @@ module TencentCloud
|
|
|
536
536
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
537
537
|
end
|
|
538
538
|
|
|
539
|
-
# 本接口当前仅支持复杂磅单收发货单抽取,更多强推理场景支持定制咨询。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
|
539
|
+
# 本接口当前仅支持复杂磅单收发货单抽取,更多强推理场景支持定制咨询。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocMultiPro)。
|
|
540
540
|
|
|
541
541
|
# 默认接口请求频率限制:5次/秒。
|
|
542
542
|
|
data/lib/v20181119/models.rb
CHANGED
|
@@ -3002,15 +3002,18 @@ module TencentCloud
|
|
|
3002
3002
|
# @type StructuralList: Array
|
|
3003
3003
|
# @param WordList: 还原文本信息
|
|
3004
3004
|
# @type WordList: Array
|
|
3005
|
+
# @param SealInfos: 全部印章信息
|
|
3006
|
+
# @type SealInfos: Array
|
|
3005
3007
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3006
3008
|
# @type RequestId: String
|
|
3007
3009
|
|
|
3008
|
-
attr_accessor :Angle, :StructuralList, :WordList, :RequestId
|
|
3010
|
+
attr_accessor :Angle, :StructuralList, :WordList, :SealInfos, :RequestId
|
|
3009
3011
|
|
|
3010
|
-
def initialize(angle=nil, structurallist=nil, wordlist=nil, requestid=nil)
|
|
3012
|
+
def initialize(angle=nil, structurallist=nil, wordlist=nil, sealinfos=nil, requestid=nil)
|
|
3011
3013
|
@Angle = angle
|
|
3012
3014
|
@StructuralList = structurallist
|
|
3013
3015
|
@WordList = wordlist
|
|
3016
|
+
@SealInfos = sealinfos
|
|
3014
3017
|
@RequestId = requestid
|
|
3015
3018
|
end
|
|
3016
3019
|
|
|
@@ -3032,6 +3035,14 @@ module TencentCloud
|
|
|
3032
3035
|
@WordList << worditem_tmp
|
|
3033
3036
|
end
|
|
3034
3037
|
end
|
|
3038
|
+
unless params['SealInfos'].nil?
|
|
3039
|
+
@SealInfos = []
|
|
3040
|
+
params['SealInfos'].each do |i|
|
|
3041
|
+
sealinfo_tmp = SealInfo.new
|
|
3042
|
+
sealinfo_tmp.deserialize(i)
|
|
3043
|
+
@SealInfos << sealinfo_tmp
|
|
3044
|
+
end
|
|
3045
|
+
end
|
|
3035
3046
|
@RequestId = params['RequestId']
|
|
3036
3047
|
end
|
|
3037
3048
|
end
|
|
@@ -3933,8 +3944,8 @@ module TencentCloud
|
|
|
3933
3944
|
|
|
3934
3945
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
3935
3946
|
extend Gem::Deprecate
|
|
3936
|
-
deprecate :Angel, :none, 2025,
|
|
3937
|
-
deprecate :Angel=, :none, 2025,
|
|
3947
|
+
deprecate :Angel, :none, 2025, 10
|
|
3948
|
+
deprecate :Angel=, :none, 2025, 10
|
|
3938
3949
|
|
|
3939
3950
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
3940
3951
|
@TextDetections = textdetections
|
|
@@ -4040,8 +4051,8 @@ module TencentCloud
|
|
|
4040
4051
|
|
|
4041
4052
|
attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
|
|
4042
4053
|
extend Gem::Deprecate
|
|
4043
|
-
deprecate :Angel, :none, 2025,
|
|
4044
|
-
deprecate :Angel=, :none, 2025,
|
|
4054
|
+
deprecate :Angel, :none, 2025, 10
|
|
4055
|
+
deprecate :Angel=, :none, 2025, 10
|
|
4045
4056
|
|
|
4046
4057
|
def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
|
|
4047
4058
|
@TextDetections = textdetections
|
|
@@ -4137,8 +4148,8 @@ module TencentCloud
|
|
|
4137
4148
|
|
|
4138
4149
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
4139
4150
|
extend Gem::Deprecate
|
|
4140
|
-
deprecate :Angel, :none, 2025,
|
|
4141
|
-
deprecate :Angel=, :none, 2025,
|
|
4151
|
+
deprecate :Angel, :none, 2025, 10
|
|
4152
|
+
deprecate :Angel=, :none, 2025, 10
|
|
4142
4153
|
|
|
4143
4154
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
4144
4155
|
@TextDetections = textdetections
|
|
@@ -4284,8 +4295,8 @@ module TencentCloud
|
|
|
4284
4295
|
|
|
4285
4296
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
4286
4297
|
extend Gem::Deprecate
|
|
4287
|
-
deprecate :Angel, :none, 2025,
|
|
4288
|
-
deprecate :Angel=, :none, 2025,
|
|
4298
|
+
deprecate :Angel, :none, 2025, 10
|
|
4299
|
+
deprecate :Angel=, :none, 2025, 10
|
|
4289
4300
|
|
|
4290
4301
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
4291
4302
|
@TextDetections = textdetections
|
|
@@ -4519,8 +4530,8 @@ module TencentCloud
|
|
|
4519
4530
|
|
|
4520
4531
|
attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
|
|
4521
4532
|
extend Gem::Deprecate
|
|
4522
|
-
deprecate :DetectFake, :none, 2025,
|
|
4523
|
-
deprecate :DetectFake=, :none, 2025,
|
|
4533
|
+
deprecate :DetectFake, :none, 2025, 10
|
|
4534
|
+
deprecate :DetectFake=, :none, 2025, 10
|
|
4524
4535
|
|
|
4525
4536
|
def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
|
|
4526
4537
|
@ReturnHeadImage = returnheadimage
|
|
@@ -4592,10 +4603,10 @@ module TencentCloud
|
|
|
4592
4603
|
|
|
4593
4604
|
attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
|
|
4594
4605
|
extend Gem::Deprecate
|
|
4595
|
-
deprecate :FakeDetectResult, :none, 2025,
|
|
4596
|
-
deprecate :FakeDetectResult=, :none, 2025,
|
|
4597
|
-
deprecate :WarningCode, :none, 2025,
|
|
4598
|
-
deprecate :WarningCode=, :none, 2025,
|
|
4606
|
+
deprecate :FakeDetectResult, :none, 2025, 10
|
|
4607
|
+
deprecate :FakeDetectResult=, :none, 2025, 10
|
|
4608
|
+
deprecate :WarningCode, :none, 2025, 10
|
|
4609
|
+
deprecate :WarningCode=, :none, 2025, 10
|
|
4599
4610
|
|
|
4600
4611
|
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)
|
|
4601
4612
|
@CnName = cnname
|
|
@@ -5062,8 +5073,8 @@ module TencentCloud
|
|
|
5062
5073
|
|
|
5063
5074
|
attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
|
|
5064
5075
|
extend Gem::Deprecate
|
|
5065
|
-
deprecate :EnableDateVerify, :none, 2025,
|
|
5066
|
-
deprecate :EnableDateVerify=, :none, 2025,
|
|
5076
|
+
deprecate :EnableDateVerify, :none, 2025, 10
|
|
5077
|
+
deprecate :EnableDateVerify=, :none, 2025, 10
|
|
5067
5078
|
|
|
5068
5079
|
def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
|
|
5069
5080
|
@ImageBase64 = imagebase64
|
|
@@ -6037,10 +6048,10 @@ module TencentCloud
|
|
|
6037
6048
|
|
|
6038
6049
|
attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
|
|
6039
6050
|
extend Gem::Deprecate
|
|
6040
|
-
deprecate :Warn, :none, 2025,
|
|
6041
|
-
deprecate :Warn=, :none, 2025,
|
|
6042
|
-
deprecate :AdvancedInfo, :none, 2025,
|
|
6043
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
|
6051
|
+
deprecate :Warn, :none, 2025, 10
|
|
6052
|
+
deprecate :Warn=, :none, 2025, 10
|
|
6053
|
+
deprecate :AdvancedInfo, :none, 2025, 10
|
|
6054
|
+
deprecate :AdvancedInfo=, :none, 2025, 10
|
|
6044
6055
|
|
|
6045
6056
|
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)
|
|
6046
6057
|
@ID = id
|
|
@@ -6149,10 +6160,10 @@ module TencentCloud
|
|
|
6149
6160
|
|
|
6150
6161
|
attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
|
|
6151
6162
|
extend Gem::Deprecate
|
|
6152
|
-
deprecate :Warn, :none, 2025,
|
|
6153
|
-
deprecate :Warn=, :none, 2025,
|
|
6154
|
-
deprecate :AdvancedInfo, :none, 2025,
|
|
6155
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
|
6163
|
+
deprecate :Warn, :none, 2025, 10
|
|
6164
|
+
deprecate :Warn=, :none, 2025, 10
|
|
6165
|
+
deprecate :AdvancedInfo, :none, 2025, 10
|
|
6166
|
+
deprecate :AdvancedInfo=, :none, 2025, 10
|
|
6156
6167
|
|
|
6157
6168
|
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)
|
|
6158
6169
|
@ID = id
|
|
@@ -9838,8 +9849,8 @@ module TencentCloud
|
|
|
9838
9849
|
|
|
9839
9850
|
attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
|
|
9840
9851
|
extend Gem::Deprecate
|
|
9841
|
-
deprecate :AdvancedInfo, :none, 2025,
|
|
9842
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
|
9852
|
+
deprecate :AdvancedInfo, :none, 2025, 10
|
|
9853
|
+
deprecate :AdvancedInfo=, :none, 2025, 10
|
|
9843
9854
|
|
|
9844
9855
|
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)
|
|
9845
9856
|
@ID = id
|
|
@@ -11430,8 +11441,8 @@ module TencentCloud
|
|
|
11430
11441
|
|
|
11431
11442
|
attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
|
|
11432
11443
|
extend Gem::Deprecate
|
|
11433
|
-
deprecate :PdfPageNumber, :none, 2025,
|
|
11434
|
-
deprecate :PdfPageNumber=, :none, 2025,
|
|
11444
|
+
deprecate :PdfPageNumber, :none, 2025, 10
|
|
11445
|
+
deprecate :PdfPageNumber=, :none, 2025, 10
|
|
11435
11446
|
|
|
11436
11447
|
def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
|
|
11437
11448
|
@ImageBase64 = imagebase64
|
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.
|
|
4
|
+
version: 3.0.1156
|
|
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-
|
|
11
|
+
date: 2025-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,9 +33,9 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/tencentcloud-sdk-ocr.rb
|
|
37
|
-
- lib/v20181119/client.rb
|
|
38
36
|
- lib/v20181119/models.rb
|
|
37
|
+
- lib/v20181119/client.rb
|
|
38
|
+
- lib/tencentcloud-sdk-ocr.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|