Class: TencentCloud::Ocr::V20181119::WordCoordPoint

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

Overview

英文OCR识别出的单词在原图中的四点坐标数组

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wordcoordinate = nil) ⇒ WordCoordPoint

Returns a new instance of WordCoordPoint.



14810
14811
14812
# File 'lib/v20181119/models.rb', line 14810

def initialize(wordcoordinate=nil)
  @WordCoordinate = wordcoordinate
end

Instance Attribute Details

#WordCoordinateObject

Parameters:

  • WordCoordinate:

    英文OCR识别出的每个单词在原图中的四点坐标。



14808
14809
14810
# File 'lib/v20181119/models.rb', line 14808

def WordCoordinate
  @WordCoordinate
end

Instance Method Details

#deserialize(params) ⇒ Object



14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
# File 'lib/v20181119/models.rb', line 14814

def deserialize(params)
  unless params['WordCoordinate'].nil?
    @WordCoordinate = []
    params['WordCoordinate'].each do |i|
      coord_tmp = Coord.new
      coord_tmp.deserialize(i)
      @WordCoordinate << coord_tmp
    end
  end
end