tencentcloud-sdk-ocr 3.0.1099 → 3.0.1106
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/models.rb +23 -16
- 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: aa52ca9187eeae4a4c9e7a0471e57955ba177e2a
|
4
|
+
data.tar.gz: 58aae1b0858a6ca6c36152700afda0012f18a041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 488c909c8c00a23169d3b895ee760eeae86f46c160a435c3f99fa6181704ee8c58be64bd7617b281dad1d989febea6e754515167f3d6d53049e8febb862fd3a7
|
7
|
+
data.tar.gz: 4f3bca32cd0fd798077d58ce166432d683cc513840cb1dc1877e748909189a9c4e9b0a2b0a8a96111f1bb74853460d8c2ad315c1c2ecae79ab2fa42f978bb5ae
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1106
|
data/lib/v20181119/models.rb
CHANGED
@@ -3110,10 +3110,13 @@ module TencentCloud
|
|
3110
3110
|
# @type OutputParentKey: Boolean
|
3111
3111
|
# @param ConfigAdvanced: 模版的单个属性配置
|
3112
3112
|
# @type ConfigAdvanced: :class:`Tencentcloud::Ocr.v20181119.models.ConfigAdvanced`
|
3113
|
+
# @param OutputLanguage: cn时,添加的key为中文
|
3114
|
+
# en时,添加的key为英语
|
3115
|
+
# @type OutputLanguage: String
|
3113
3116
|
|
3114
|
-
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ItemNamesShowMode, :ReturnFullText, :ConfigId, :EnableCoord, :OutputParentKey, :ConfigAdvanced
|
3117
|
+
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ItemNamesShowMode, :ReturnFullText, :ConfigId, :EnableCoord, :OutputParentKey, :ConfigAdvanced, :OutputLanguage
|
3115
3118
|
|
3116
|
-
def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, itemnamesshowmode=nil, returnfulltext=nil, configid=nil, enablecoord=nil, outputparentkey=nil, configadvanced=nil)
|
3119
|
+
def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, itemnamesshowmode=nil, returnfulltext=nil, configid=nil, enablecoord=nil, outputparentkey=nil, configadvanced=nil, outputlanguage=nil)
|
3117
3120
|
@ImageUrl = imageurl
|
3118
3121
|
@ImageBase64 = imagebase64
|
3119
3122
|
@PdfPageNumber = pdfpagenumber
|
@@ -3124,6 +3127,7 @@ module TencentCloud
|
|
3124
3127
|
@EnableCoord = enablecoord
|
3125
3128
|
@OutputParentKey = outputparentkey
|
3126
3129
|
@ConfigAdvanced = configadvanced
|
3130
|
+
@OutputLanguage = outputlanguage
|
3127
3131
|
end
|
3128
3132
|
|
3129
3133
|
def deserialize(params)
|
@@ -3140,6 +3144,7 @@ module TencentCloud
|
|
3140
3144
|
@ConfigAdvanced = ConfigAdvanced.new
|
3141
3145
|
@ConfigAdvanced.deserialize(params['ConfigAdvanced'])
|
3142
3146
|
end
|
3147
|
+
@OutputLanguage = params['OutputLanguage']
|
3143
3148
|
end
|
3144
3149
|
end
|
3145
3150
|
|
@@ -4414,15 +4419,9 @@ module TencentCloud
|
|
4414
4419
|
# @type ReturnHeadImage: Boolean
|
4415
4420
|
# @param DetectFake: 是否鉴伪。
|
4416
4421
|
# @type DetectFake: Boolean
|
4417
|
-
# @param ImageBase64: 图片的 Base64
|
4418
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4419
|
-
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4422
|
+
# @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
|
4420
4423
|
# @type ImageBase64: String
|
4421
|
-
# @param ImageUrl: 图片的 Url
|
4422
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4423
|
-
# 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
4424
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4425
|
-
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4424
|
+
# @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4426
4425
|
# @type ImageUrl: String
|
4427
4426
|
|
4428
4427
|
attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
|
@@ -4476,12 +4475,14 @@ module TencentCloud
|
|
4476
4475
|
# 2:真。
|
4477
4476
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4478
4477
|
# @type FakeDetectResult: Integer
|
4479
|
-
# @param HeadImage:
|
4478
|
+
# @param HeadImage: Base64编码的证件左侧人像大图
|
4480
4479
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4481
4480
|
# @type HeadImage: String
|
4482
|
-
# @param
|
4483
|
-
#
|
4484
|
-
#
|
4481
|
+
# @param SmallHeadImage: Base64编码的证件右侧人像小图
|
4482
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4483
|
+
# @type SmallHeadImage: String
|
4484
|
+
# @param WarningCode: 该字段已废弃, 将固定返回空数组,不建议使用。
|
4485
|
+
# This field is deprecated and will always return an empty array. Usage is not recommended.
|
4485
4486
|
# @type WarningCode: Array
|
4486
4487
|
# @param WarnCardInfos: 告警码
|
4487
4488
|
# -9101 证件边框不完整告警
|
@@ -4492,17 +4493,19 @@ module TencentCloud
|
|
4492
4493
|
# -9108 证件模糊告警
|
4493
4494
|
# -9109 告警能力未开通
|
4494
4495
|
# @type WarnCardInfos: Array
|
4496
|
+
# @param WindowEmbeddedText: 证件透明视窗内的文本信息
|
4497
|
+
# @type WindowEmbeddedText: String
|
4495
4498
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4496
4499
|
# @type RequestId: String
|
4497
4500
|
|
4498
|
-
attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :WarningCode, :WarnCardInfos, :RequestId
|
4501
|
+
attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
|
4499
4502
|
extend Gem::Deprecate
|
4500
4503
|
deprecate :FakeDetectResult, :none, 2025, 7
|
4501
4504
|
deprecate :FakeDetectResult=, :none, 2025, 7
|
4502
4505
|
deprecate :WarningCode, :none, 2025, 7
|
4503
4506
|
deprecate :WarningCode=, :none, 2025, 7
|
4504
4507
|
|
4505
|
-
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, warningcode=nil, warncardinfos=nil, requestid=nil)
|
4508
|
+
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)
|
4506
4509
|
@CnName = cnname
|
4507
4510
|
@EnName = enname
|
4508
4511
|
@TelexCode = telexcode
|
@@ -4515,8 +4518,10 @@ module TencentCloud
|
|
4515
4518
|
@CurrentIssueDate = currentissuedate
|
4516
4519
|
@FakeDetectResult = fakedetectresult
|
4517
4520
|
@HeadImage = headimage
|
4521
|
+
@SmallHeadImage = smallheadimage
|
4518
4522
|
@WarningCode = warningcode
|
4519
4523
|
@WarnCardInfos = warncardinfos
|
4524
|
+
@WindowEmbeddedText = windowembeddedtext
|
4520
4525
|
@RequestId = requestid
|
4521
4526
|
end
|
4522
4527
|
|
@@ -4533,8 +4538,10 @@ module TencentCloud
|
|
4533
4538
|
@CurrentIssueDate = params['CurrentIssueDate']
|
4534
4539
|
@FakeDetectResult = params['FakeDetectResult']
|
4535
4540
|
@HeadImage = params['HeadImage']
|
4541
|
+
@SmallHeadImage = params['SmallHeadImage']
|
4536
4542
|
@WarningCode = params['WarningCode']
|
4537
4543
|
@WarnCardInfos = params['WarnCardInfos']
|
4544
|
+
@WindowEmbeddedText = params['WindowEmbeddedText']
|
4538
4545
|
@RequestId = params['RequestId']
|
4539
4546
|
end
|
4540
4547
|
end
|
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.1106
|
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-07-
|
11
|
+
date: 2025-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|