tencentcloud-sdk-ocr 3.0.1193 → 3.0.1199
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 -3
- data/lib/v20181119/models.rb +38 -30
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: feba38bc946526d6391f9ee45722fffc68127cc8
|
|
4
|
+
data.tar.gz: e7194ef073d5ff639a079456a3d673e64a23ef33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4be62c6e2b2fbdb30632663894a4bf93ec69c8a62392d85e67bb299822f041774e2dd8eab87f154e786fbe95a4e2e1b64b7271d783243a65884f260fc73fc2da
|
|
7
|
+
data.tar.gz: 9b7fd7df3ee34a5c6b8e67723a3d395eb05895c7ad518323e51b7aceb2fea86bffdbbd7c70233f99c7a94e80c4bf5b842c321d697d650f2af03318a21073b15d
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1199
|
data/lib/v20181119/client.rb
CHANGED
|
@@ -29,8 +29,6 @@ module TencentCloud
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
# <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/33526">通用印刷体识别</a>。</b>
|
|
33
|
-
|
|
34
32
|
# 支持广告商品图片内文字的检测和识别,返回文本框位置与文字内容。支持中英文、横排、竖排以及倾斜场景文字识别,支持90度、180度、270度翻转以及倾斜场景文字识别,具有较高召回率和准确率。
|
|
35
33
|
|
|
36
34
|
# 默认接口请求频率限制:20次/秒。
|
|
@@ -771,6 +769,7 @@ module TencentCloud
|
|
|
771
769
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
772
770
|
end
|
|
773
771
|
|
|
772
|
+
# **建议您使用识别效果更好的[通用文字识别(高精度版](https://cloud.tencent.com/document/product/866/34937 ))**
|
|
774
773
|
# 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
|
775
774
|
|
|
776
775
|
# 适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
@@ -961,7 +960,7 @@ module TencentCloud
|
|
|
961
960
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
962
961
|
end
|
|
963
962
|
|
|
964
|
-
# <b
|
|
963
|
+
# <b>此接口为通用手写体识别的旧版本服务,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/34937">通用印刷体识别(高精度)识别服务</a>。</b>
|
|
965
964
|
|
|
966
965
|
# 本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
|
|
967
966
|
|
data/lib/v20181119/models.rb
CHANGED
|
@@ -4130,8 +4130,8 @@ module TencentCloud
|
|
|
4130
4130
|
|
|
4131
4131
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
4132
4132
|
extend Gem::Deprecate
|
|
4133
|
-
deprecate :Angel, :none,
|
|
4134
|
-
deprecate :Angel=, :none,
|
|
4133
|
+
deprecate :Angel, :none, 2026, 1
|
|
4134
|
+
deprecate :Angel=, :none, 2026, 1
|
|
4135
4135
|
|
|
4136
4136
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
4137
4137
|
@TextDetections = textdetections
|
|
@@ -4237,8 +4237,8 @@ module TencentCloud
|
|
|
4237
4237
|
|
|
4238
4238
|
attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
|
|
4239
4239
|
extend Gem::Deprecate
|
|
4240
|
-
deprecate :Angel, :none,
|
|
4241
|
-
deprecate :Angel=, :none,
|
|
4240
|
+
deprecate :Angel, :none, 2026, 1
|
|
4241
|
+
deprecate :Angel=, :none, 2026, 1
|
|
4242
4242
|
|
|
4243
4243
|
def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
|
|
4244
4244
|
@TextDetections = textdetections
|
|
@@ -4334,8 +4334,8 @@ module TencentCloud
|
|
|
4334
4334
|
|
|
4335
4335
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
4336
4336
|
extend Gem::Deprecate
|
|
4337
|
-
deprecate :Angel, :none,
|
|
4338
|
-
deprecate :Angel=, :none,
|
|
4337
|
+
deprecate :Angel, :none, 2026, 1
|
|
4338
|
+
deprecate :Angel=, :none, 2026, 1
|
|
4339
4339
|
|
|
4340
4340
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
4341
4341
|
@TextDetections = textdetections
|
|
@@ -4481,8 +4481,8 @@ module TencentCloud
|
|
|
4481
4481
|
|
|
4482
4482
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
4483
4483
|
extend Gem::Deprecate
|
|
4484
|
-
deprecate :Angel, :none,
|
|
4485
|
-
deprecate :Angel=, :none,
|
|
4484
|
+
deprecate :Angel, :none, 2026, 1
|
|
4485
|
+
deprecate :Angel=, :none, 2026, 1
|
|
4486
4486
|
|
|
4487
4487
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
4488
4488
|
@TextDetections = textdetections
|
|
@@ -4683,8 +4683,8 @@ module TencentCloud
|
|
|
4683
4683
|
|
|
4684
4684
|
attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
|
|
4685
4685
|
extend Gem::Deprecate
|
|
4686
|
-
deprecate :DetectFake, :none,
|
|
4687
|
-
deprecate :DetectFake=, :none,
|
|
4686
|
+
deprecate :DetectFake, :none, 2026, 1
|
|
4687
|
+
deprecate :DetectFake=, :none, 2026, 1
|
|
4688
4688
|
|
|
4689
4689
|
def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
|
|
4690
4690
|
@ReturnHeadImage = returnheadimage
|
|
@@ -4749,10 +4749,10 @@ module TencentCloud
|
|
|
4749
4749
|
|
|
4750
4750
|
attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
|
|
4751
4751
|
extend Gem::Deprecate
|
|
4752
|
-
deprecate :FakeDetectResult, :none,
|
|
4753
|
-
deprecate :FakeDetectResult=, :none,
|
|
4754
|
-
deprecate :WarningCode, :none,
|
|
4755
|
-
deprecate :WarningCode=, :none,
|
|
4752
|
+
deprecate :FakeDetectResult, :none, 2026, 1
|
|
4753
|
+
deprecate :FakeDetectResult=, :none, 2026, 1
|
|
4754
|
+
deprecate :WarningCode, :none, 2026, 1
|
|
4755
|
+
deprecate :WarningCode=, :none, 2026, 1
|
|
4756
4756
|
|
|
4757
4757
|
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)
|
|
4758
4758
|
@CnName = cnname
|
|
@@ -5213,8 +5213,8 @@ module TencentCloud
|
|
|
5213
5213
|
|
|
5214
5214
|
attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
|
|
5215
5215
|
extend Gem::Deprecate
|
|
5216
|
-
deprecate :EnableDateVerify, :none,
|
|
5217
|
-
deprecate :EnableDateVerify=, :none,
|
|
5216
|
+
deprecate :EnableDateVerify, :none, 2026, 1
|
|
5217
|
+
deprecate :EnableDateVerify=, :none, 2026, 1
|
|
5218
5218
|
|
|
5219
5219
|
def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
|
|
5220
5220
|
@ImageBase64 = imagebase64
|
|
@@ -6141,10 +6141,10 @@ module TencentCloud
|
|
|
6141
6141
|
|
|
6142
6142
|
attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
|
|
6143
6143
|
extend Gem::Deprecate
|
|
6144
|
-
deprecate :Warn, :none,
|
|
6145
|
-
deprecate :Warn=, :none,
|
|
6146
|
-
deprecate :AdvancedInfo, :none,
|
|
6147
|
-
deprecate :AdvancedInfo=, :none,
|
|
6144
|
+
deprecate :Warn, :none, 2026, 1
|
|
6145
|
+
deprecate :Warn=, :none, 2026, 1
|
|
6146
|
+
deprecate :AdvancedInfo, :none, 2026, 1
|
|
6147
|
+
deprecate :AdvancedInfo=, :none, 2026, 1
|
|
6148
6148
|
|
|
6149
6149
|
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)
|
|
6150
6150
|
@ID = id
|
|
@@ -6246,10 +6246,10 @@ module TencentCloud
|
|
|
6246
6246
|
|
|
6247
6247
|
attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
|
|
6248
6248
|
extend Gem::Deprecate
|
|
6249
|
-
deprecate :Warn, :none,
|
|
6250
|
-
deprecate :Warn=, :none,
|
|
6251
|
-
deprecate :AdvancedInfo, :none,
|
|
6252
|
-
deprecate :AdvancedInfo=, :none,
|
|
6249
|
+
deprecate :Warn, :none, 2026, 1
|
|
6250
|
+
deprecate :Warn=, :none, 2026, 1
|
|
6251
|
+
deprecate :AdvancedInfo, :none, 2026, 1
|
|
6252
|
+
deprecate :AdvancedInfo=, :none, 2026, 1
|
|
6253
6253
|
|
|
6254
6254
|
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)
|
|
6255
6255
|
@ID = id
|
|
@@ -7687,10 +7687,13 @@ module TencentCloud
|
|
|
7687
7687
|
# @type HolderNum: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
|
|
7688
7688
|
# @param Nationality: 国籍,外国人永久居留证 返回该字段
|
|
7689
7689
|
# @type Nationality: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
|
|
7690
|
+
# @param EnName: 英文名
|
|
7691
|
+
# 示例值:Ming Li
|
|
7692
|
+
# @type EnName: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
|
|
7690
7693
|
|
|
7691
|
-
attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :WarnInfos, :CardImage, :PortraitImage, :HolderNum, :Nationality
|
|
7694
|
+
attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :WarnInfos, :CardImage, :PortraitImage, :HolderNum, :Nationality, :EnName
|
|
7692
7695
|
|
|
7693
|
-
def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, warninfos=nil, cardimage=nil, portraitimage=nil, holdernum=nil, nationality=nil)
|
|
7696
|
+
def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, warninfos=nil, cardimage=nil, portraitimage=nil, holdernum=nil, nationality=nil, enname=nil)
|
|
7694
7697
|
@Name = name
|
|
7695
7698
|
@Sex = sex
|
|
7696
7699
|
@Nation = nation
|
|
@@ -7704,6 +7707,7 @@ module TencentCloud
|
|
|
7704
7707
|
@PortraitImage = portraitimage
|
|
7705
7708
|
@HolderNum = holdernum
|
|
7706
7709
|
@Nationality = nationality
|
|
7710
|
+
@EnName = enname
|
|
7707
7711
|
end
|
|
7708
7712
|
|
|
7709
7713
|
def deserialize(params)
|
|
@@ -7759,6 +7763,10 @@ module TencentCloud
|
|
|
7759
7763
|
@Nationality = ContentInfo.new
|
|
7760
7764
|
@Nationality.deserialize(params['Nationality'])
|
|
7761
7765
|
end
|
|
7766
|
+
unless params['EnName'].nil?
|
|
7767
|
+
@EnName = ContentInfo.new
|
|
7768
|
+
@EnName.deserialize(params['EnName'])
|
|
7769
|
+
end
|
|
7762
7770
|
end
|
|
7763
7771
|
end
|
|
7764
7772
|
|
|
@@ -9718,8 +9726,8 @@ module TencentCloud
|
|
|
9718
9726
|
|
|
9719
9727
|
attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :IsComplete, :RequestId
|
|
9720
9728
|
extend Gem::Deprecate
|
|
9721
|
-
deprecate :AdvancedInfo, :none,
|
|
9722
|
-
deprecate :AdvancedInfo=, :none,
|
|
9729
|
+
deprecate :AdvancedInfo, :none, 2026, 1
|
|
9730
|
+
deprecate :AdvancedInfo=, :none, 2026, 1
|
|
9723
9731
|
|
|
9724
9732
|
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, iscomplete=nil, requestid=nil)
|
|
9725
9733
|
@ID = id
|
|
@@ -11320,8 +11328,8 @@ module TencentCloud
|
|
|
11320
11328
|
|
|
11321
11329
|
attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
|
|
11322
11330
|
extend Gem::Deprecate
|
|
11323
|
-
deprecate :PdfPageNumber, :none,
|
|
11324
|
-
deprecate :PdfPageNumber=, :none,
|
|
11331
|
+
deprecate :PdfPageNumber, :none, 2026, 1
|
|
11332
|
+
deprecate :PdfPageNumber=, :none, 2026, 1
|
|
11325
11333
|
|
|
11326
11334
|
def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
|
|
11327
11335
|
@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.1199
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-08 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
36
|
- lib/v20181119/client.rb
|
|
38
37
|
- lib/v20181119/models.rb
|
|
38
|
+
- lib/tencentcloud-sdk-ocr.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|