Class: TencentCloud::Facefusion::V20220927::FaceInfo

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

Overview

人脸信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of FaceInfo.



93
94
95
96
97
98
# File 'lib/v20220927/models.rb', line 93

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:

    人脸框的高度



91
92
93
# File 'lib/v20220927/models.rb', line 91

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    人脸框的横坐标

  • Y:

    人脸框的纵坐标

  • Width:

    人脸框的宽度

  • Height:

    人脸框的高度



91
92
93
# File 'lib/v20220927/models.rb', line 91

def Width
  @Width
end

#XObject

Parameters:

  • X:

    人脸框的横坐标

  • Y:

    人脸框的纵坐标

  • Width:

    人脸框的宽度

  • Height:

    人脸框的高度



91
92
93
# File 'lib/v20220927/models.rb', line 91

def X
  @X
end

#YObject

Parameters:

  • X:

    人脸框的横坐标

  • Y:

    人脸框的纵坐标

  • Width:

    人脸框的宽度

  • Height:

    人脸框的高度



91
92
93
# File 'lib/v20220927/models.rb', line 91

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



100
101
102
103
104
105
# File 'lib/v20220927/models.rb', line 100

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