tencentcloud-sdk-ocr 3.0.747 → 3.0.748
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 +10 -2
- 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: e8eea3fffbdbfc743ce7bff33e1de83b49236fa6
|
4
|
+
data.tar.gz: 82136e335d108813147a7c07cc4073d747057596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31934d06312b6719b51979277622880dfe0c8e92ea86355fc2266c9388890c573e860597e6540c1002d86534e45fa0fe06e646c9e8fd8d718955006de7e33004
|
7
|
+
data.tar.gz: 960f62549068e90d41439ac292e53887e74ee4be435a5e8f614442ea89ea35736a38c521a40baad67e5ea8a87621f77c9629f08a5ed071be6abf328879c06a07
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.748
|
data/lib/v20181119/models.rb
CHANGED
@@ -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.
|
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-
|
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
|