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.
11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 |
# File 'lib/v20181119/models.rb', line 11353 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,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def AdvancedInfo @AdvancedInfo end |
#ColBr ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def ColBr @ColBr end |
#ColTl ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def ColTl @ColTl end |
#Confidence ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def Confidence @Confidence end |
#Contents ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def Contents @Contents end |
#Polygon ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def Polygon @Polygon end |
#RowBr ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def RowBr @RowBr end |
#RowTl ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def RowTl @RowTl end |
#Text ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def Text @Text end |
#Type ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11351 11352 11353 |
# File 'lib/v20181119/models.rb', line 11351 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 |
# File 'lib/v20181119/models.rb', line 11366 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 |