Class: TencentCloud::Ocr::V20181119::WordItem

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

Overview

还原文本信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(detectedtext = nil, coord = nil) ⇒ WordItem

Returns a new instance of WordItem.



14835
14836
14837
14838
# File 'lib/v20181119/models.rb', line 14835

def initialize(detectedtext=nil, coord=nil)
  @DetectedText = detectedtext
  @Coord = coord
end

Instance Attribute Details

#CoordObject

Parameters:

  • DetectedText:

    文本块内容

  • Coord:

    四点坐标



14833
14834
14835
# File 'lib/v20181119/models.rb', line 14833

def Coord
  @Coord
end

#DetectedTextObject

Parameters:

  • DetectedText:

    文本块内容

  • Coord:

    四点坐标



14833
14834
14835
# File 'lib/v20181119/models.rb', line 14833

def DetectedText
  @DetectedText
end

Instance Method Details

#deserialize(params) ⇒ Object



14840
14841
14842
14843
14844
14845
14846
# File 'lib/v20181119/models.rb', line 14840

def deserialize(params)
  @DetectedText = params['DetectedText']
  unless params['Coord'].nil?
    @Coord = Polygon.new
    @Coord.deserialize(params['Coord'])
  end
end