Class: TencentCloud::Bda::V20200324::BoundRect

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200324/models.rb

Overview

人体框

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ BoundRect

Returns a new instance of BoundRect.



273
274
275
276
277
278
# File 'lib/v20200324/models.rb', line 273

def initialize(x=nil, y=nil, width=nil, height=nil)
  @X = x
  @Y = y
  @Width = width
  @Height = height
end

Instance Attribute Details

#HeightObject

Parameters:

  • X:

    人体框左上角横坐标。

  • Y:

    人体框左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。



271
272
273
# File 'lib/v20200324/models.rb', line 271

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    人体框左上角横坐标。

  • Y:

    人体框左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。



271
272
273
# File 'lib/v20200324/models.rb', line 271

def Width
  @Width
end

#XObject

Parameters:

  • X:

    人体框左上角横坐标。

  • Y:

    人体框左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。



271
272
273
# File 'lib/v20200324/models.rb', line 271

def X
  @X
end

#YObject

Parameters:

  • X:

    人体框左上角横坐标。

  • Y:

    人体框左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。



271
272
273
# File 'lib/v20200324/models.rb', line 271

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



280
281
282
283
284
285
# File 'lib/v20200324/models.rb', line 280

def deserialize(params)
  @X = params['X']
  @Y = params['Y']
  @Width = params['Width']
  @Height = params['Height']
end