Class: TencentCloud::Ocr::V20181119::TextTable
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::TextTable
- Defined in:
- lib/v20181119/models.rb
Overview
表格识别结果
Instance Attribute Summary collapse
- #AdvancedInfo ⇒ Object
- #ColBr ⇒ Object
- #ColTl ⇒ Object
- #Confidence ⇒ Object
- #Polygon ⇒ Object
- #RowBr ⇒ Object
- #RowTl ⇒ Object
- #Text ⇒ Object
- #Type ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(coltl = nil, rowtl = nil, colbr = nil, rowbr = nil, text = nil, type = nil, confidence = nil, polygon = nil, advancedinfo = nil) ⇒ TextTable
constructor
A new instance of TextTable.
Constructor Details
#initialize(coltl = nil, rowtl = nil, colbr = nil, rowbr = nil, text = nil, type = nil, confidence = nil, polygon = nil, advancedinfo = nil) ⇒ TextTable
Returns a new instance of TextTable.
12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 |
# File 'lib/v20181119/models.rb', line 12356 def initialize(coltl=nil, rowtl=nil, colbr=nil, rowbr=nil, text=nil, type=nil, confidence=nil, polygon=nil, advancedinfo=nil) @ColTl = coltl @RowTl = rowtl @ColBr = colbr @RowBr = rowbr @Text = text @Type = type @Confidence = confidence @Polygon = polygon @AdvancedInfo = advancedinfo end |
Instance Attribute Details
#AdvancedInfo ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def AdvancedInfo @AdvancedInfo end |
#ColBr ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def ColBr @ColBr end |
#ColTl ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def ColTl @ColTl end |
#Confidence ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def Confidence @Confidence end |
#Polygon ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def Polygon @Polygon end |
#RowBr ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def RowBr @RowBr end |
#RowTl ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def RowTl @RowTl end |
#Text ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def Text @Text end |
#Type ⇒ Object
12354 12355 12356 |
# File 'lib/v20181119/models.rb', line 12354 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 |
# File 'lib/v20181119/models.rb', line 12368 def deserialize(params) @ColTl = params['ColTl'] @RowTl = params['RowTl'] @ColBr = params['ColBr'] @RowBr = params['RowBr'] @Text = params['Text'] @Type = params['Type'] @Confidence = params['Confidence'] unless params['Polygon'].nil? @Polygon = [] params['Polygon'].each do |i| coord_tmp = Coord.new coord_tmp.deserialize(i) @Polygon << coord_tmp end end @AdvancedInfo = params['AdvancedInfo'] end |