Class: TencentCloud::Facefusion::V20181201::FaceInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181201/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.



171
172
173
174
175
176
# File 'lib/v20181201/models.rb', line 171

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:

    人脸框的高度



169
170
171
# File 'lib/v20181201/models.rb', line 169

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    人脸框的横坐标

  • Y:

    人脸框的纵坐标

  • Width:

    人脸框的宽度

  • Height:

    人脸框的高度



169
170
171
# File 'lib/v20181201/models.rb', line 169

def Width
  @Width
end

#XObject

Parameters:

  • X:

    人脸框的横坐标

  • Y:

    人脸框的纵坐标

  • Width:

    人脸框的宽度

  • Height:

    人脸框的高度



169
170
171
# File 'lib/v20181201/models.rb', line 169

def X
  @X
end

#YObject

Parameters:

  • X:

    人脸框的横坐标

  • Y:

    人脸框的纵坐标

  • Width:

    人脸框的宽度

  • Height:

    人脸框的高度



169
170
171
# File 'lib/v20181201/models.rb', line 169

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



178
179
180
181
182
183
# File 'lib/v20181201/models.rb', line 178

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