tencentcloud-sdk-ocr 3.0.1191 → 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 +44 -32
- 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
|
|
|
@@ -9711,15 +9719,17 @@ module TencentCloud
|
|
|
9711
9719
|
# @type AdvancedInfo: String
|
|
9712
9720
|
# @param CardCount: 卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)
|
|
9713
9721
|
# @type CardCount: Integer
|
|
9722
|
+
# @param IsComplete: 卡证字段是否完整,true:完整;false:不完整
|
|
9723
|
+
# @type IsComplete: Boolean
|
|
9714
9724
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9715
9725
|
# @type RequestId: String
|
|
9716
9726
|
|
|
9717
|
-
attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
|
|
9727
|
+
attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :IsComplete, :RequestId
|
|
9718
9728
|
extend Gem::Deprecate
|
|
9719
|
-
deprecate :AdvancedInfo, :none,
|
|
9720
|
-
deprecate :AdvancedInfo=, :none,
|
|
9729
|
+
deprecate :AdvancedInfo, :none, 2026, 1
|
|
9730
|
+
deprecate :AdvancedInfo=, :none, 2026, 1
|
|
9721
9731
|
|
|
9722
|
-
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)
|
|
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)
|
|
9723
9733
|
@ID = id
|
|
9724
9734
|
@ThaiName = thainame
|
|
9725
9735
|
@EnFirstName = enfirstname
|
|
@@ -9738,6 +9748,7 @@ module TencentCloud
|
|
|
9738
9748
|
@WarnCardInfos = warncardinfos
|
|
9739
9749
|
@AdvancedInfo = advancedinfo
|
|
9740
9750
|
@CardCount = cardcount
|
|
9751
|
+
@IsComplete = iscomplete
|
|
9741
9752
|
@RequestId = requestid
|
|
9742
9753
|
end
|
|
9743
9754
|
|
|
@@ -9760,6 +9771,7 @@ module TencentCloud
|
|
|
9760
9771
|
@WarnCardInfos = params['WarnCardInfos']
|
|
9761
9772
|
@AdvancedInfo = params['AdvancedInfo']
|
|
9762
9773
|
@CardCount = params['CardCount']
|
|
9774
|
+
@IsComplete = params['IsComplete']
|
|
9763
9775
|
@RequestId = params['RequestId']
|
|
9764
9776
|
end
|
|
9765
9777
|
end
|
|
@@ -11316,8 +11328,8 @@ module TencentCloud
|
|
|
11316
11328
|
|
|
11317
11329
|
attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
|
|
11318
11330
|
extend Gem::Deprecate
|
|
11319
|
-
deprecate :PdfPageNumber, :none,
|
|
11320
|
-
deprecate :PdfPageNumber=, :none,
|
|
11331
|
+
deprecate :PdfPageNumber, :none, 2026, 1
|
|
11332
|
+
deprecate :PdfPageNumber=, :none, 2026, 1
|
|
11321
11333
|
|
|
11322
11334
|
def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
|
|
11323
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
|