tencentcloud-sdk-ocr 3.0.557 → 3.0.558

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 +42 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: def5516e517dc70e6c9bf7aa033b798d9187a191
4
- data.tar.gz: b448d549324eccb49dc98a6e1c9b24d213fa4f7a
3
+ metadata.gz: a031c4fcf50f03e97781eaa6f7c24eb610edc53b
4
+ data.tar.gz: f999005ac85eba91ab7c789805ce0b6a59ffd064
5
5
  SHA512:
6
- metadata.gz: f59d20bd6c12599900e09e9a6a13efa5af98256b1a71a647202bff39a75b97a33023e87ef497bd0d4ad72aa897de5ec2c7b8ff24d1c6f9b5e3fb224525e983ba
7
- data.tar.gz: 54988f5f95bcb9ec880a06df6d6c9068ddbfc335b6893acbe528b47566fcc955946fb4133d07e2798121e29814a212c3b34324e650de2a9ab5078502467b7fb3
6
+ metadata.gz: 331e24108d044080c702b6b5257896f58557a321f4c5b22ea77294114ac4dd5dcf1dcc05731f7535447862fb80c7d34f4fb58c23197d870bf0d0e03339e1d3d8
7
+ data.tar.gz: 59a9bf35929e82001c2331e0c8e53831f717843bd69bca3d028dafbcc58a95cb292982be6d85c058919f43ff6aef4335f929b28d66c036a8489b8c11986b4a51
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.557
1
+ 3.0.558
@@ -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.557
4
+ version: 3.0.558
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-21 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common