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.
12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 |
# File 'lib/v20181119/models.rb', line 12306 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
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def AdvancedInfo @AdvancedInfo end |
#ColBr ⇒ Object
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def ColBr @ColBr end |
#ColTl ⇒ Object
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def ColTl @ColTl end |
#Confidence ⇒ Object
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def Confidence @Confidence end |
#Polygon ⇒ Object
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def Polygon @Polygon end |
#RowBr ⇒ Object
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def RowBr @RowBr end |
#RowTl ⇒ Object
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def RowTl @RowTl end |
#Text ⇒ Object
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def Text @Text end |
#Type ⇒ Object
12304 12305 12306 |
# File 'lib/v20181119/models.rb', line 12304 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 |
# File 'lib/v20181119/models.rb', line 12318 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 |