tencentcloud-sdk-ocr 3.0.1193 → 3.0.1195
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 +1 -1
- 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: 027a2caecc4326f80ae213f7c9e1ffb19b0529b6
|
|
4
|
+
data.tar.gz: e9a7ef0f946f545bb320cb36a159d6546a515334
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc85599017478ebe5108a776700c64918bad9bfd9ad39e5b1101fcd8f3b1d82958db54ba70234ebb43882124a0e49e72053b42a4ecb7c5325b919840b37791e4
|
|
7
|
+
data.tar.gz: 9af5ccf13316c1ec379adb5084562964346ea8192d7844528b14b21d36825311b3e6c237eae625ea5a2683cf628125e7eb26e8d52c67a3eb9cdf3b900b5be72a
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1195
|
data/lib/v20181119/client.rb
CHANGED
|
@@ -961,7 +961,7 @@ module TencentCloud
|
|
|
961
961
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
962
962
|
end
|
|
963
963
|
|
|
964
|
-
# <b
|
|
964
|
+
# <b>此接口为通用手写体识别的旧版本服务,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/34937">通用印刷体识别(高精度)识别服务</a>。</b>
|
|
965
965
|
|
|
966
966
|
# 本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
|
|
967
967
|
|
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.1195
|
|
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-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|