Class: TencentCloud::Ocr::V20181119::TableCell
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::TableCell
- Defined in:
- lib/v20181119/models.rb
Overview
单元格数据
Instance Attribute Summary collapse
-
#AdvancedInfo ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ColBr ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ColTl ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Confidence ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Contents ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Polygon ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RowBr ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RowTl ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Text ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Type ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
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, contents = nil) ⇒ TableCell
constructor
A new instance of TableCell.
Constructor Details
#initialize(coltl = nil, rowtl = nil, colbr = nil, rowbr = nil, text = nil, type = nil, confidence = nil, polygon = nil, advancedinfo = nil, contents = nil) ⇒ TableCell
Returns a new instance of TableCell.
11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 |
# File 'lib/v20181119/models.rb', line 11387 def initialize(coltl=nil, rowtl=nil, colbr=nil, rowbr=nil, text=nil, type=nil, confidence=nil, polygon=nil, advancedinfo=nil, contents=nil) @ColTl = coltl @RowTl = rowtl @ColBr = colbr @RowBr = rowbr @Text = text @Type = type @Confidence = confidence @Polygon = polygon @AdvancedInfo = advancedinfo @Contents = contents end |
Instance Attribute Details
#AdvancedInfo ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def AdvancedInfo @AdvancedInfo end |
#ColBr ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def ColBr @ColBr end |
#ColTl ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def ColTl @ColTl end |
#Confidence ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def Confidence @Confidence end |
#Contents ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def Contents @Contents end |
#Polygon ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def Polygon @Polygon end |
#RowBr ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def RowBr @RowBr end |
#RowTl ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def RowTl @RowTl end |
#Text ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def Text @Text end |
#Type ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11385 11386 11387 |
# File 'lib/v20181119/models.rb', line 11385 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 |
# File 'lib/v20181119/models.rb', line 11400 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'] unless params['Contents'].nil? @Contents = [] params['Contents'].each do |i| cellcontent_tmp = CellContent.new cellcontent_tmp.deserialize(i) @Contents << cellcontent_tmp end end end |