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.
12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 |
# File 'lib/v20181119/models.rb', line 12340 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
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def AdvancedInfo @AdvancedInfo end |
#ColBr ⇒ Object
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def ColBr @ColBr end |
#ColTl ⇒ Object
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def ColTl @ColTl end |
#Confidence ⇒ Object
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def Confidence @Confidence end |
#Polygon ⇒ Object
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def Polygon @Polygon end |
#RowBr ⇒ Object
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def RowBr @RowBr end |
#RowTl ⇒ Object
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def RowTl @RowTl end |
#Text ⇒ Object
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def Text @Text end |
#Type ⇒ Object
12338 12339 12340 |
# File 'lib/v20181119/models.rb', line 12338 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 |
# File 'lib/v20181119/models.rb', line 12352 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 |