Class: TencentCloud::Ocr::V20181119::TableCellInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::TableCellInfo
- Defined in:
- lib/v20181119/models.rb
Overview
单元格数据
Instance Attribute Summary collapse
- #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) ⇒ TableCellInfo
constructor
A new instance of TableCellInfo.
Constructor Details
#initialize(coltl = nil, rowtl = nil, colbr = nil, rowbr = nil, text = nil, type = nil, confidence = nil, polygon = nil) ⇒ TableCellInfo
Returns a new instance of TableCellInfo.
11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 |
# File 'lib/v20181119/models.rb', line 11171 def initialize(coltl=nil, rowtl=nil, colbr=nil, rowbr=nil, text=nil, type=nil, confidence=nil, polygon=nil) @ColTl = coltl @RowTl = rowtl @ColBr = colbr @RowBr = rowbr @Text = text @Type = type @Confidence = confidence @Polygon = polygon end |
Instance Attribute Details
#ColBr ⇒ Object
11169 11170 11171 |
# File 'lib/v20181119/models.rb', line 11169 def ColBr @ColBr end |
#ColTl ⇒ Object
11169 11170 11171 |
# File 'lib/v20181119/models.rb', line 11169 def ColTl @ColTl end |
#Confidence ⇒ Object
11169 11170 11171 |
# File 'lib/v20181119/models.rb', line 11169 def Confidence @Confidence end |
#Polygon ⇒ Object
11169 11170 11171 |
# File 'lib/v20181119/models.rb', line 11169 def Polygon @Polygon end |
#RowBr ⇒ Object
11169 11170 11171 |
# File 'lib/v20181119/models.rb', line 11169 def RowBr @RowBr end |
#RowTl ⇒ Object
11169 11170 11171 |
# File 'lib/v20181119/models.rb', line 11169 def RowTl @RowTl end |
#Text ⇒ Object
11169 11170 11171 |
# File 'lib/v20181119/models.rb', line 11169 def Text @Text end |
#Type ⇒ Object
11169 11170 11171 |
# File 'lib/v20181119/models.rb', line 11169 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 |
# File 'lib/v20181119/models.rb', line 11182 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 end |