Class: TencentCloud::Ocr::V20181119::TableDetectInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

表格内容检测

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CellsObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Cells:

    单元格内容

  • Titles:

    表格标题

  • Type:

    图像中的文本块类型,0 为非表格文本,

  • TableCoordPoint:

    表格主体四个顶点坐标(依次为左上角,



10384
10385
10386
# File 'lib/v20181119/models.rb', line 10384

def Cells
  @Cells
end

#TableCoordPointObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Cells:

    单元格内容

  • Titles:

    表格标题

  • Type:

    图像中的文本块类型,0 为非表格文本,

  • TableCoordPoint:

    表格主体四个顶点坐标(依次为左上角,



10384
10385
10386
# File 'lib/v20181119/models.rb', line 10384

def TableCoordPoint
  @TableCoordPoint
end

#TitlesObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Cells:

    单元格内容

  • Titles:

    表格标题

  • Type:

    图像中的文本块类型,0 为非表格文本,

  • TableCoordPoint:

    表格主体四个顶点坐标(依次为左上角,



10384
10385
10386
# File 'lib/v20181119/models.rb', line 10384

def Titles
  @Titles
end

#TypeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 1 为有线表格,2 为无线表格 (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) 注意:此字段可能返回 null,表示取不到有效值。 右上角,右下角,左下角) 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Cells:

    单元格内容

  • Titles:

    表格标题

  • Type:

    图像中的文本块类型,0 为非表格文本,

  • TableCoordPoint:

    表格主体四个顶点坐标(依次为左上角,



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