Class: TencentCloud::Iir::V20200417::Location
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iir::V20200417::Location
- Defined in:
- lib/v20200417/models.rb
Overview
检测到的主体在图片中的矩形框位置(四个顶点坐标)
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(xmin = nil, ymin = nil, xmax = nil, ymax = nil) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(xmin = nil, ymin = nil, xmax = nil, ymax = nil) ⇒ Location
Returns a new instance of Location.
33 34 35 36 37 38 |
# File 'lib/v20200417/models.rb', line 33 def initialize(xmin=nil, ymin=nil, xmax=nil, ymax=nil) @XMin = xmin @YMin = ymin @XMax = xmax @YMax = ymax end |
Instance Attribute Details
#XMax ⇒ Object
31 32 33 |
# File 'lib/v20200417/models.rb', line 31 def XMax @XMax end |
#XMin ⇒ Object
31 32 33 |
# File 'lib/v20200417/models.rb', line 31 def XMin @XMin end |
#YMax ⇒ Object
31 32 33 |
# File 'lib/v20200417/models.rb', line 31 def YMax @YMax end |
#YMin ⇒ Object
31 32 33 |
# File 'lib/v20200417/models.rb', line 31 def YMin @YMin end |
Instance Method Details
#deserialize(params) ⇒ Object
40 41 42 43 44 45 |
# File 'lib/v20200417/models.rb', line 40 def deserialize(params) @XMin = params['XMin'] @YMin = params['YMin'] @XMax = params['XMax'] @YMax = params['YMax'] end |