Class: TencentCloud::Ocr::V20181119::Polygon
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::Polygon
- Defined in:
- lib/v20181119/models.rb
Overview
文本的坐标,以四个顶点坐标表示注意:此字段可能返回 null,表示取不到有效值
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(lefttop = nil, righttop = nil, rightbottom = nil, leftbottom = nil) ⇒ Polygon
constructor
A new instance of Polygon.
Constructor Details
#initialize(lefttop = nil, righttop = nil, rightbottom = nil, leftbottom = nil) ⇒ Polygon
Returns a new instance of Polygon.
7734 7735 7736 7737 7738 7739 |
# File 'lib/v20181119/models.rb', line 7734 def initialize(lefttop=nil, righttop=nil, rightbottom=nil, leftbottom=nil) @LeftTop = lefttop @RightTop = righttop @RightBottom = rightbottom @LeftBottom = leftbottom end |
Instance Attribute Details
#LeftBottom ⇒ Object
7732 7733 7734 |
# File 'lib/v20181119/models.rb', line 7732 def LeftBottom @LeftBottom end |
#LeftTop ⇒ Object
7732 7733 7734 |
# File 'lib/v20181119/models.rb', line 7732 def LeftTop @LeftTop end |
#RightBottom ⇒ Object
7732 7733 7734 |
# File 'lib/v20181119/models.rb', line 7732 def RightBottom @RightBottom end |
#RightTop ⇒ Object
7732 7733 7734 |
# File 'lib/v20181119/models.rb', line 7732 def RightTop @RightTop end |
Instance Method Details
#deserialize(params) ⇒ Object
7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 |
# File 'lib/v20181119/models.rb', line 7741 def deserialize(params) unless params['LeftTop'].nil? @LeftTop = Coord.new @LeftTop.deserialize(params['LeftTop']) end unless params['RightTop'].nil? @RightTop = Coord.new @RightTop.deserialize(params['RightTop']) end unless params['RightBottom'].nil? @RightBottom = Coord.new @RightBottom.deserialize(params['RightBottom']) end unless params['LeftBottom'].nil? @LeftBottom = Coord.new @LeftBottom.deserialize(params['LeftBottom']) end end |