Class: TencentCloud::Ocr::V20181119::WordCoordPoint
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::WordCoordPoint
- Defined in:
- lib/v20181119/models.rb
Overview
英文OCR识别出的单词在原图中的四点坐标数组
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(wordcoordinate = nil) ⇒ WordCoordPoint
constructor
A new instance of WordCoordPoint.
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
#WordCoordinate ⇒ Object
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 |