tencentcloud-sdk-ocr 3.0.557 → 3.0.559
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 +42 -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: 0d7f42cac0691609d9958cca825ae881db4e7ce8
|
4
|
+
data.tar.gz: 92aee53991e8d977b6f0f2005bde4ad687d4d7df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b8cf4b9f2ebbbcc2966f69d78bb1ea262af54027ef86a56e8a388e934c2054779b28776ecfb8027079069dd96ad74671c63b0e336303bb481dcbb51244446d0
|
7
|
+
data.tar.gz: a45a4982c2b9e0c05e713209b5bcd12fd561c4668666e62e27380023e3231f3bdb1d1a7150d51ae62dfb4691b483706200741b9e468b625c029793d889a35497
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.559
|
data/lib/v20181119/models.rb
CHANGED
@@ -6453,15 +6453,18 @@ module TencentCloud
|
|
6453
6453
|
# 若客户只想返回姓名、性别两个字段的识别结果,则输入
|
6454
6454
|
# ItemNames=["姓名","性别"]
|
6455
6455
|
# @type ItemNames: Array
|
6456
|
+
# @param ReturnFullText: 是否开启全文字段识别
|
6457
|
+
# @type ReturnFullText: Boolean
|
6456
6458
|
|
6457
|
-
attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :ItemNames
|
6459
|
+
attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :ItemNames, :ReturnFullText
|
6458
6460
|
|
6459
|
-
def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, itemnames=nil)
|
6461
|
+
def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, itemnames=nil, returnfulltext=nil)
|
6460
6462
|
@ImageUrl = imageurl
|
6461
6463
|
@ImageBase64 = imagebase64
|
6462
6464
|
@IsPdf = ispdf
|
6463
6465
|
@PdfPageNumber = pdfpagenumber
|
6464
6466
|
@ItemNames = itemnames
|
6467
|
+
@ReturnFullText = returnfulltext
|
6465
6468
|
end
|
6466
6469
|
|
6467
6470
|
def deserialize(params)
|
@@ -6470,6 +6473,7 @@ module TencentCloud
|
|
6470
6473
|
@IsPdf = params['IsPdf']
|
6471
6474
|
@PdfPageNumber = params['PdfPageNumber']
|
6472
6475
|
@ItemNames = params['ItemNames']
|
6476
|
+
@ReturnFullText = params['ReturnFullText']
|
6473
6477
|
end
|
6474
6478
|
end
|
6475
6479
|
|
@@ -6480,14 +6484,17 @@ module TencentCloud
|
|
6480
6484
|
# @type Angle: Float
|
6481
6485
|
# @param StructuralList: 配置结构化文本信息
|
6482
6486
|
# @type StructuralList: Array
|
6487
|
+
# @param WordList: 还原文本信息
|
6488
|
+
# @type WordList: Array
|
6483
6489
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6484
6490
|
# @type RequestId: String
|
6485
6491
|
|
6486
|
-
attr_accessor :Angle, :StructuralList, :RequestId
|
6492
|
+
attr_accessor :Angle, :StructuralList, :WordList, :RequestId
|
6487
6493
|
|
6488
|
-
def initialize(angle=nil, structurallist=nil, requestid=nil)
|
6494
|
+
def initialize(angle=nil, structurallist=nil, wordlist=nil, requestid=nil)
|
6489
6495
|
@Angle = angle
|
6490
6496
|
@StructuralList = structurallist
|
6497
|
+
@WordList = wordlist
|
6491
6498
|
@RequestId = requestid
|
6492
6499
|
end
|
6493
6500
|
|
@@ -6501,6 +6508,14 @@ module TencentCloud
|
|
6501
6508
|
@StructuralList << groupinfo_tmp
|
6502
6509
|
end
|
6503
6510
|
end
|
6511
|
+
unless params['WordList'].nil?
|
6512
|
+
@WordList = []
|
6513
|
+
params['WordList'].each do |i|
|
6514
|
+
worditem_tmp = WordItem.new
|
6515
|
+
worditem_tmp.deserialize(i)
|
6516
|
+
@WordList << worditem_tmp
|
6517
|
+
end
|
6518
|
+
end
|
6504
6519
|
@RequestId = params['RequestId']
|
6505
6520
|
end
|
6506
6521
|
end
|
@@ -9463,6 +9478,29 @@ module TencentCloud
|
|
9463
9478
|
end
|
9464
9479
|
end
|
9465
9480
|
|
9481
|
+
# 还原文本信息
|
9482
|
+
class WordItem < TencentCloud::Common::AbstractModel
|
9483
|
+
# @param DetectedText: 文本块内容
|
9484
|
+
# @type DetectedText: String
|
9485
|
+
# @param Coord: 四点坐标
|
9486
|
+
# @type Coord: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
|
9487
|
+
|
9488
|
+
attr_accessor :DetectedText, :Coord
|
9489
|
+
|
9490
|
+
def initialize(detectedtext=nil, coord=nil)
|
9491
|
+
@DetectedText = detectedtext
|
9492
|
+
@Coord = coord
|
9493
|
+
end
|
9494
|
+
|
9495
|
+
def deserialize(params)
|
9496
|
+
@DetectedText = params['DetectedText']
|
9497
|
+
unless params['Coord'].nil?
|
9498
|
+
@Coord = Polygon.new
|
9499
|
+
@Coord.deserialize(params['Coord'])
|
9500
|
+
end
|
9501
|
+
end
|
9502
|
+
end
|
9503
|
+
|
9466
9504
|
# 识别出来的单词信息包括单词(包括单词Character和单词置信度confidence)
|
9467
9505
|
class Words < TencentCloud::Common::AbstractModel
|
9468
9506
|
# @param Confidence: 置信度 0 ~100
|
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.559
|
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-04-
|
11
|
+
date: 2023-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|