tencentcloud-sdk-ocr 3.0.746 → 3.0.748

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 +10 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97458a375ec3cc31cccaeb46d221d58e0548d7e7
4
- data.tar.gz: 7a55eb25c543aeb7906e8275c931463ccd5d5390
3
+ metadata.gz: e8eea3fffbdbfc743ce7bff33e1de83b49236fa6
4
+ data.tar.gz: 82136e335d108813147a7c07cc4073d747057596
5
5
  SHA512:
6
- metadata.gz: 952f205f249a2e177bc07e23cc597dcf1426e13300c77bc092696c3bdc9d0c79ac8c8a3580c48d3759988661ff82db00a712bdeff7b8dc16f319e3662b37980c
7
- data.tar.gz: f67f4efae7d3845501b4f7d405fc9937e7e980ed2f9ebe20ce135cf5ed93df34472d9a838711d23e211a4e09224b44fa9a87aa5477ad8c95606891d7b66239d6
6
+ metadata.gz: 31934d06312b6719b51979277622880dfe0c8e92ea86355fc2266c9388890c573e860597e6540c1002d86534e45fa0fe06e646c9e8fd8d718955006de7e33004
7
+ data.tar.gz: 960f62549068e90d41439ac292e53887e74ee4be435a5e8f614442ea89ea35736a38c521a40baad67e5ea8a87621f77c9629f08a5ed071be6abf328879c06a07
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.746
1
+ 3.0.748
@@ -8327,17 +8327,25 @@ module TencentCloud
8327
8327
  # @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
8328
8328
  # 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
8329
8329
  # @type ImageUrl: String
8330
+ # @param EnablePdf: 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
8331
+ # @type EnablePdf: Boolean
8332
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
8333
+ # @type PdfPageNumber: Integer
8330
8334
 
8331
- attr_accessor :ImageBase64, :ImageUrl
8335
+ attr_accessor :ImageBase64, :ImageUrl, :EnablePdf, :PdfPageNumber
8332
8336
 
8333
- def initialize(imagebase64=nil, imageurl=nil)
8337
+ def initialize(imagebase64=nil, imageurl=nil, enablepdf=nil, pdfpagenumber=nil)
8334
8338
  @ImageBase64 = imagebase64
8335
8339
  @ImageUrl = imageurl
8340
+ @EnablePdf = enablepdf
8341
+ @PdfPageNumber = pdfpagenumber
8336
8342
  end
8337
8343
 
8338
8344
  def deserialize(params)
8339
8345
  @ImageBase64 = params['ImageBase64']
8340
8346
  @ImageUrl = params['ImageUrl']
8347
+ @EnablePdf = params['EnablePdf']
8348
+ @PdfPageNumber = params['PdfPageNumber']
8341
8349
  end
8342
8350
  end
8343
8351
 
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.746
4
+ version: 3.0.748
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-10 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common