tencentcloud-sdk-ocr 3.0.1178 → 3.0.1182
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 +11 -4
- 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: b08aa10540d8cdf034bb9fd3a2eb61a7ba5acc30
|
|
4
|
+
data.tar.gz: ef8c32b9c6d4b1ec1e0c40bc2b11b4dbe96000d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81b349ee663e4db6f40e007b34a21448c94368209fa5591351046d069d161fdde5a4fc6bff217dea1b3f119083b9ce04045277e3f4c597ae474fc0c53905344e
|
|
7
|
+
data.tar.gz: b283133f9887ab9f12f0a4b53bf353bda0104040159e9bb96bcd670ef506044a9933c2c6fa11ed7382e172794633af6c5caf8f277a56f8ae769a0a37e5ffc5df
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1182
|
data/lib/v20181119/models.rb
CHANGED
|
@@ -4005,7 +4005,7 @@ module TencentCloud
|
|
|
4005
4005
|
# @type ImageBase64: String
|
|
4006
4006
|
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
4007
4007
|
# @type ImageUrl: String
|
|
4008
|
-
# @param IsWords:
|
|
4008
|
+
# @param IsWords: 是否返回单字信息,默认值为false,注:仅ConfigID配置为OCR时支持。
|
|
4009
4009
|
# @type IsWords: Boolean
|
|
4010
4010
|
# @param EnableDetectSplit: 是否开启原图切图检测功能,开启后可提升“整图面积大,但单字符占比面积小”(例如:试卷)场景下的识别效果,默认关,注:仅ConfigID配置为OCR时支持。
|
|
4011
4011
|
# @type EnableDetectSplit: Boolean
|
|
@@ -4015,7 +4015,7 @@ module TencentCloud
|
|
|
4015
4015
|
# @type PdfPageNumber: Integer
|
|
4016
4016
|
# @param EnableDetectText: 文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。
|
|
4017
4017
|
# @type EnableDetectText: Boolean
|
|
4018
|
-
# @param ConfigID: 配置ID支持:
|
|
4018
|
+
# @param ConfigID: 配置ID支持: OCR -- 通用场景 MulOCR--多语种场景,默认值为OCR
|
|
4019
4019
|
# @type ConfigID: String
|
|
4020
4020
|
|
|
4021
4021
|
attr_accessor :ImageBase64, :ImageUrl, :IsWords, :EnableDetectSplit, :IsPdf, :PdfPageNumber, :EnableDetectText, :ConfigID
|
|
@@ -8911,12 +8911,14 @@ module TencentCloud
|
|
|
8911
8911
|
# @type Overlap: :class:`Tencentcloud::Ocr.v20181119.models.GeneralCardWarnInfo`
|
|
8912
8912
|
# @param Watermark: 是否水印
|
|
8913
8913
|
# @type Watermark: :class:`Tencentcloud::Ocr.v20181119.models.GeneralCardWarnInfo`
|
|
8914
|
+
# @param Electron: 是否电子证照(目前仅支持电子身份证、电子营业执照识别
|
|
8915
|
+
# @type Electron: :class:`Tencentcloud::Ocr.v20181119.models.GeneralCardWarnInfo`
|
|
8914
8916
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8915
8917
|
# @type RequestId: String
|
|
8916
8918
|
|
|
8917
|
-
attr_accessor :CardType, :Blur, :BorderIncomplete, :Copy, :Ps, :Reflection, :Reprint, :Screenshot, :Cover, :Overlap, :Watermark, :RequestId
|
|
8919
|
+
attr_accessor :CardType, :Blur, :BorderIncomplete, :Copy, :Ps, :Reflection, :Reprint, :Screenshot, :Cover, :Overlap, :Watermark, :Electron, :RequestId
|
|
8918
8920
|
|
|
8919
|
-
def initialize(cardtype=nil, blur=nil, borderincomplete=nil, copy=nil, ps=nil, reflection=nil, reprint=nil, screenshot=nil, cover=nil, overlap=nil, watermark=nil, requestid=nil)
|
|
8921
|
+
def initialize(cardtype=nil, blur=nil, borderincomplete=nil, copy=nil, ps=nil, reflection=nil, reprint=nil, screenshot=nil, cover=nil, overlap=nil, watermark=nil, electron=nil, requestid=nil)
|
|
8920
8922
|
@CardType = cardtype
|
|
8921
8923
|
@Blur = blur
|
|
8922
8924
|
@BorderIncomplete = borderincomplete
|
|
@@ -8928,6 +8930,7 @@ module TencentCloud
|
|
|
8928
8930
|
@Cover = cover
|
|
8929
8931
|
@Overlap = overlap
|
|
8930
8932
|
@Watermark = watermark
|
|
8933
|
+
@Electron = electron
|
|
8931
8934
|
@RequestId = requestid
|
|
8932
8935
|
end
|
|
8933
8936
|
|
|
@@ -8973,6 +8976,10 @@ module TencentCloud
|
|
|
8973
8976
|
@Watermark = GeneralCardWarnInfo.new
|
|
8974
8977
|
@Watermark.deserialize(params['Watermark'])
|
|
8975
8978
|
end
|
|
8979
|
+
unless params['Electron'].nil?
|
|
8980
|
+
@Electron = GeneralCardWarnInfo.new
|
|
8981
|
+
@Electron.deserialize(params['Electron'])
|
|
8982
|
+
end
|
|
8976
8983
|
@RequestId = params['RequestId']
|
|
8977
8984
|
end
|
|
8978
8985
|
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.1182
|
|
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-12-
|
|
11
|
+
date: 2025-12-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|