Class: TencentCloud::Bda::V20200324::ImageRect
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Bda::V20200324::ImageRect
- Defined in:
- lib/v20200324/models.rb
Overview
图像坐标信息。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(x = nil, y = nil, width = nil, height = nil, label = nil) ⇒ ImageRect
constructor
A new instance of ImageRect.
Constructor Details
#initialize(x = nil, y = nil, width = nil, height = nil, label = nil) ⇒ ImageRect
Returns a new instance of ImageRect.
1017 1018 1019 1020 1021 1022 1023 |
# File 'lib/v20200324/models.rb', line 1017 def initialize(x=nil, y=nil, width=nil, height=nil, label=nil) @X = x @Y = y @Width = width @Height = height @Label = label end |
Instance Attribute Details
#Height ⇒ Object
1015 1016 1017 |
# File 'lib/v20200324/models.rb', line 1015 def Height @Height end |
#Label ⇒ Object
1015 1016 1017 |
# File 'lib/v20200324/models.rb', line 1015 def Label @Label end |
#Width ⇒ Object
1015 1016 1017 |
# File 'lib/v20200324/models.rb', line 1015 def Width @Width end |
#X ⇒ Object
1015 1016 1017 |
# File 'lib/v20200324/models.rb', line 1015 def X @X end |
#Y ⇒ Object
1015 1016 1017 |
# File 'lib/v20200324/models.rb', line 1015 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
1025 1026 1027 1028 1029 1030 1031 |
# File 'lib/v20200324/models.rb', line 1025 def deserialize(params) @X = params['X'] @Y = params['Y'] @Width = params['Width'] @Height = params['Height'] @Label = params['Label'] end |