Class: TencentCloud::Bda::V20200324::ImageRect

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, 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

#HeightObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。

  • Label:

    分割选项名称。



1015
1016
1017
# File 'lib/v20200324/models.rb', line 1015

def Height
  @Height
end

#LabelObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。

  • Label:

    分割选项名称。



1015
1016
1017
# File 'lib/v20200324/models.rb', line 1015

def Label
  @Label
end

#WidthObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。

  • Label:

    分割选项名称。



1015
1016
1017
# File 'lib/v20200324/models.rb', line 1015

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。

  • Label:

    分割选项名称。



1015
1016
1017
# File 'lib/v20200324/models.rb', line 1015

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    人体宽度。

  • Height:

    人体高度。

  • Label:

    分割选项名称。



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