tencentcloud-sdk-ocr 3.0.1127 → 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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +2 -2
- data/lib/v20181119/models.rb +38 -30
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f132b779631c0758edeb98ee72adafd3f8264af
|
4
|
+
data.tar.gz: c2f1a13be87820c5516dd1ce77c02d0ccaa132d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e35325fef8864914c0bd5a21a741b3ad2acdc39654799ee58e48eb637c79105d0b78b5c24525c0ab6b1185f0dc67aa176d282d77224e8a7d8bc6346885da99a
|
7
|
+
data.tar.gz: c99eeecfcacc6d6a3547443ed72bbe3dc132854c5382d6c0e63ea77d7479225b1c45976b6ae361e832ac7a0abdc0276d4e1bad3312a8032f19027c36ea4ae02b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1133
|
data/lib/v20181119/client.rb
CHANGED
@@ -1287,8 +1287,8 @@ module TencentCloud
|
|
1287
1287
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1288
1288
|
end
|
1289
1289
|
|
1290
|
-
#
|
1291
|
-
#
|
1290
|
+
# 本接口支持中国大陆地区及中国港澳台地区、其他国家以及地区的护照识别。识别字段包括护照ID、姓名、出生日期、性别、有效期、发行国、国籍、国家地区代码,具备护照人像照片的裁剪功能和翻拍、复印件告警功能。
|
1291
|
+
# 本接口支持地区范围:可机读护照国家。包括中国大陆地区、中国港澳台地区、新加坡、马来西亚、泰国、美国、韩国、越南、澳大利亚、缅甸、印度尼西亚、日本、加拿大、老挝、巴基斯坦、哈萨克斯坦、法国、英国、德国、菲律宾、新西兰、印度、意大利、蒙古、孟加拉国、尼日利亚、柬埔寨、西班牙、摩洛哥、吉尔吉斯斯坦、埃及、荷兰、塔吉克斯坦、巴西、乌兹别克斯坦、伊拉克、阿尔及利亚、土耳其、南非、墨西哥、尼泊尔、白俄罗斯、叶门、阿富汗、沙特、肯尼亚、波兰、比利时、瑞典、奥地利、坦桑尼亚、委内瑞拉、阿根廷、喀麦隆、斯里兰卡、衣索比亚、约旦、瑞士、加纳、爱尔兰、哥伦比亚、苏丹、匈牙利、罗马尼亚、阿联酋、文莱、希腊、以色列、巴拿马、丹麦、伊朗、乌干达、挪威、秘鲁、葡萄牙、智利、塞尔维亚、芬兰、尚比亚、亚美尼亚、叙利亚、黎巴嫩、斯洛伐克、卡塔尔、古巴、朝鲜。
|
1292
1292
|
|
1293
1293
|
# 默认接口请求频率限制:5次/秒。
|
1294
1294
|
|
data/lib/v20181119/models.rb
CHANGED
@@ -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,
|
3865
|
-
deprecate :Angel=, :none, 2025,
|
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,
|
3972
|
-
deprecate :Angel=, :none, 2025,
|
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,
|
4069
|
-
deprecate :Angel=, :none, 2025,
|
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,
|
4216
|
-
deprecate :Angel=, :none, 2025,
|
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,
|
4451
|
-
deprecate :DetectFake=, :none, 2025,
|
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,
|
4524
|
-
deprecate :FakeDetectResult=, :none, 2025,
|
4525
|
-
deprecate :WarningCode, :none, 2025,
|
4526
|
-
deprecate :WarningCode=, :none, 2025,
|
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,
|
4994
|
-
deprecate :EnableDateVerify=, :none, 2025,
|
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,
|
5945
|
-
deprecate :Warn=, :none, 2025,
|
5946
|
-
deprecate :AdvancedInfo, :none, 2025,
|
5947
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
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,
|
6057
|
-
deprecate :Warn=, :none, 2025,
|
6058
|
-
deprecate :AdvancedInfo, :none, 2025,
|
6059
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
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,
|
9742
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
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.
|
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-
|
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
|