Class: TencentCloud::Ocr::V20181119::ItemCoord
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::ItemCoord
- Defined in:
- lib/v20181119/models.rb
Overview
文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ ItemCoord
constructor
A new instance of ItemCoord.
Constructor Details
#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ ItemCoord
Returns a new instance of ItemCoord.
4976 4977 4978 4979 4980 4981 |
# File 'lib/v20181119/models.rb', line 4976 def initialize(x=nil, y=nil, width=nil, height=nil) @X = x @Y = y @Width = width @Height = height end |
Instance Attribute Details
#Height ⇒ Object
4974 4975 4976 |
# File 'lib/v20181119/models.rb', line 4974 def Height @Height end |
#Width ⇒ Object
4974 4975 4976 |
# File 'lib/v20181119/models.rb', line 4974 def Width @Width end |
#X ⇒ Object
4974 4975 4976 |
# File 'lib/v20181119/models.rb', line 4974 def X @X end |
#Y ⇒ Object
4974 4975 4976 |
# File 'lib/v20181119/models.rb', line 4974 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
4983 4984 4985 4986 4987 4988 |
# File 'lib/v20181119/models.rb', line 4983 def deserialize(params) @X = params['X'] @Y = params['Y'] @Width = params['Width'] @Height = params['Height'] end |