tencentcloud-sdk-ocr 3.0.663 → 3.0.664

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20181119/models.rb +15 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a0226b9839c6b6f5eb9d07115a29a32536807cb
4
- data.tar.gz: 36ab78d619e33271dfee7be59c33b77dbd01262f
3
+ metadata.gz: c7e4dd7be944813b501b9cf746141b29958b0b07
4
+ data.tar.gz: 80828cc6ab983258f25a60b326db20a34f9b5d33
5
5
  SHA512:
6
- metadata.gz: a6d1db2d6eb309d13193ece526d3e3faaf36c72c72e84107b404cfb5179690169a38a08d1886959810b7e743663d273d8730f92f663f9eb704e80fd44c9f5bc4
7
- data.tar.gz: d1c9b678e3a13fe101aec20d57a754537f7e5e43f69794037d44e78eeecb570db4faf9c2eca5b040aac29814d3d0943791fd86ac8959cf852953fe7769762d41
6
+ metadata.gz: 8991219ef159f8bb863745cfcc22e7196d5d01af229bf271c4f11b07ad68f4b710183cd2a3da50b6a1e8118e872480ffb66e3496d68c181e50037af454978a2b
7
+ data.tar.gz: 1e4d10e392f374fc5b11e9ecf18694a474aef816c57674fc27ad79946b4c6f993d45c2dcd7fe96415122fdc32534ea169b48a903a382fe71f2de16f4e2fc32af
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.663
1
+ 3.0.664
@@ -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.663
4
+ version: 3.0.664
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-20 00:00:00.000000000 Z
11
+ date: 2023-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common