Class: TencentCloud::Ocr::V20181119::DetectedWordCoordPoint
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::DetectedWordCoordPoint
- Defined in:
- lib/v20181119/models.rb
Overview
单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(wordcoordinate = nil) ⇒ DetectedWordCoordPoint
constructor
A new instance of DetectedWordCoordPoint.
Constructor Details
#initialize(wordcoordinate = nil) ⇒ DetectedWordCoordPoint
Returns a new instance of DetectedWordCoordPoint.
1579 1580 1581 |
# File 'lib/v20181119/models.rb', line 1579 def initialize(wordcoordinate=nil) @WordCoordinate = wordcoordinate end |
Instance Attribute Details
#WordCoordinate ⇒ Object
1577 1578 1579 |
# File 'lib/v20181119/models.rb', line 1577 def WordCoordinate @WordCoordinate end |
Instance Method Details
#deserialize(params) ⇒ Object
1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 |
# File 'lib/v20181119/models.rb', line 1583 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 |