Class: TencentCloud::Aiart::V20221229::Rect

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

Overview

人脸框坐标

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Rect.



942
943
944
945
946
947
# File 'lib/v20221229/models.rb', line 942

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:

    人脸框高度。



940
941
942
# File 'lib/v20221229/models.rb', line 940

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    人脸框左上角横坐标。

  • Y:

    人脸框左上角纵坐标。

  • Width:

    人脸框宽度。

  • Height:

    人脸框高度。



940
941
942
# File 'lib/v20221229/models.rb', line 940

def Width
  @Width
end

#XObject

Parameters:

  • X:

    人脸框左上角横坐标。

  • Y:

    人脸框左上角纵坐标。

  • Width:

    人脸框宽度。

  • Height:

    人脸框高度。



940
941
942
# File 'lib/v20221229/models.rb', line 940

def X
  @X
end

#YObject

Parameters:

  • X:

    人脸框左上角横坐标。

  • Y:

    人脸框左上角纵坐标。

  • Width:

    人脸框宽度。

  • Height:

    人脸框高度。



940
941
942
# File 'lib/v20221229/models.rb', line 940

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



949
950
951
952
953
954
# File 'lib/v20221229/models.rb', line 949

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