tencentcloud-sdk-ocr 3.0.663 → 3.0.665
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/models.rb +15 -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: a28e583223f2ab6227e88a7e7d486dffb0fbccf2
|
4
|
+
data.tar.gz: 1657e9cb9e54b7d54a427ed5c4ba27dd96cd818e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ac6f0e50fbf62571613fdf0b143d757f6c729e1e713fdc7a8905066f53203fa079052d76b5be1a90dc1044b0b2136447f30acd94aac283054c3e7bd72242b1d
|
7
|
+
data.tar.gz: e454824d119fe9adcce32c05df1715b8620ff46f9ed062914b7bbf9c6da300473ba34783736bcb3687c5b31e94d626e5ee55324a0eed9ce992a140c5af5ff260
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.665
|
data/lib/v20181119/models.rb
CHANGED
@@ -2185,16 +2185,19 @@ module TencentCloud
|
|
2185
2185
|
# @type IsPdf: Boolean
|
2186
2186
|
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
2187
2187
|
# @type PdfPageNumber: Integer
|
2188
|
+
# @param EnableDetectText: 文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。
|
2189
|
+
# @type EnableDetectText: Boolean
|
2188
2190
|
|
2189
|
-
attr_accessor :ImageBase64, :ImageUrl, :IsWords, :EnableDetectSplit, :IsPdf, :PdfPageNumber
|
2191
|
+
attr_accessor :ImageBase64, :ImageUrl, :IsWords, :EnableDetectSplit, :IsPdf, :PdfPageNumber, :EnableDetectText
|
2190
2192
|
|
2191
|
-
def initialize(imagebase64=nil, imageurl=nil, iswords=nil, enabledetectsplit=nil, ispdf=nil, pdfpagenumber=nil)
|
2193
|
+
def initialize(imagebase64=nil, imageurl=nil, iswords=nil, enabledetectsplit=nil, ispdf=nil, pdfpagenumber=nil, enabledetecttext=nil)
|
2192
2194
|
@ImageBase64 = imagebase64
|
2193
2195
|
@ImageUrl = imageurl
|
2194
2196
|
@IsWords = iswords
|
2195
2197
|
@EnableDetectSplit = enabledetectsplit
|
2196
2198
|
@IsPdf = ispdf
|
2197
2199
|
@PdfPageNumber = pdfpagenumber
|
2200
|
+
@EnableDetectText = enabledetecttext
|
2198
2201
|
end
|
2199
2202
|
|
2200
2203
|
def deserialize(params)
|
@@ -2204,6 +2207,7 @@ module TencentCloud
|
|
2204
2207
|
@EnableDetectSplit = params['EnableDetectSplit']
|
2205
2208
|
@IsPdf = params['IsPdf']
|
2206
2209
|
@PdfPageNumber = params['PdfPageNumber']
|
2210
|
+
@EnableDetectText = params['EnableDetectText']
|
2207
2211
|
end
|
2208
2212
|
end
|
2209
2213
|
|
@@ -2213,14 +2217,20 @@ module TencentCloud
|
|
2213
2217
|
# @type TextDetections: Array
|
2214
2218
|
# @param Angel: 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
2215
2219
|
# @type Angel: Float
|
2220
|
+
# @param Angle: 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
2221
|
+
# @type Angle: Float
|
2216
2222
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2217
2223
|
# @type RequestId: String
|
2218
2224
|
|
2219
|
-
attr_accessor :TextDetections, :Angel, :RequestId
|
2225
|
+
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
2226
|
+
extend Gem::Deprecate
|
2227
|
+
deprecate :Angel, :none, 2023, 9
|
2228
|
+
deprecate :Angel=, :none, 2023, 9
|
2220
2229
|
|
2221
|
-
def initialize(textdetections=nil, angel=nil, requestid=nil)
|
2230
|
+
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
2222
2231
|
@TextDetections = textdetections
|
2223
2232
|
@Angel = angel
|
2233
|
+
@Angle = angle
|
2224
2234
|
@RequestId = requestid
|
2225
2235
|
end
|
2226
2236
|
|
@@ -2234,6 +2244,7 @@ module TencentCloud
|
|
2234
2244
|
end
|
2235
2245
|
end
|
2236
2246
|
@Angel = params['Angel']
|
2247
|
+
@Angle = params['Angle']
|
2237
2248
|
@RequestId = params['RequestId']
|
2238
2249
|
end
|
2239
2250
|
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.665
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|