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.
11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 |
# File 'lib/v20181119/models.rb', line 11115 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
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def AdvancedInfo @AdvancedInfo end |
#ColBr ⇒ Object
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def ColBr @ColBr end |
#ColTl ⇒ Object
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def ColTl @ColTl end |
#Confidence ⇒ Object
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def Confidence @Confidence end |
#Polygon ⇒ Object
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def Polygon @Polygon end |
#RowBr ⇒ Object
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def RowBr @RowBr end |
#RowTl ⇒ Object
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def RowTl @RowTl end |
#Text ⇒ Object
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def Text @Text end |
#Type ⇒ Object
11113 11114 11115 |
# File 'lib/v20181119/models.rb', line 11113 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 |
# File 'lib/v20181119/models.rb', line 11127 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 |