Class: TencentCloud::Ocr::V20181119::TableDetectInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::TableDetectInfo
- Defined in:
- lib/v20181119/models.rb
Overview
表格内容检测
Instance Attribute Summary collapse
-
#Cells ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。.
-
#TableCoordPoint ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。.
-
#Titles ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。.
-
#Type ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(cells = nil, titles = nil, type = nil, tablecoordpoint = nil) ⇒ TableDetectInfo
constructor
A new instance of TableDetectInfo.
Constructor Details
#initialize(cells = nil, titles = nil, type = nil, tablecoordpoint = nil) ⇒ TableDetectInfo
Returns a new instance of TableDetectInfo.
10386 10387 10388 10389 10390 10391 |
# File 'lib/v20181119/models.rb', line 10386 def initialize(cells=nil, titles=nil, type=nil, tablecoordpoint=nil) @Cells = cells @Titles = titles @Type = type @TableCoordPoint = tablecoordpoint end |
Instance Attribute Details
#Cells ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。
10384 10385 10386 |
# File 'lib/v20181119/models.rb', line 10384 def Cells @Cells end |
#TableCoordPoint ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。
10384 10385 10386 |
# File 'lib/v20181119/models.rb', line 10384 def TableCoordPoint @TableCoordPoint end |
#Titles ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。
10384 10385 10386 |
# File 'lib/v20181119/models.rb', line 10384 def Titles @Titles end |
#Type ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。
10384 10385 10386 |
# File 'lib/v20181119/models.rb', line 10384 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 |
# File 'lib/v20181119/models.rb', line 10393 def deserialize(params) unless params['Cells'].nil? @Cells = [] params['Cells'].each do |i| tablecell_tmp = TableCell.new tablecell_tmp.deserialize(i) @Cells << tablecell_tmp end end unless params['Titles'].nil? @Titles = [] params['Titles'].each do |i| tabletitle_tmp = TableTitle.new tabletitle_tmp.deserialize(i) @Titles << tabletitle_tmp end end @Type = params['Type'] unless params['TableCoordPoint'].nil? @TableCoordPoint = [] params['TableCoordPoint'].each do |i| coord_tmp = Coord.new coord_tmp.deserialize(i) @TableCoordPoint << coord_tmp end end end |