Class: TencentCloud::Facefusion::V20181201::FaceRect

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) ⇒ FaceRect

Returns a new instance of FaceRect.



199
200
201
202
203
204
# File 'lib/v20181201/models.rb', line 199

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:

    人脸框高度。



197
198
199
# File 'lib/v20181201/models.rb', line 197

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    人脸框左上角横坐标。

  • Y:

    人脸框左上角纵坐标。

  • Width:

    人脸框宽度。

  • Height:

    人脸框高度。



197
198
199
# File 'lib/v20181201/models.rb', line 197

def Width
  @Width
end

#XObject

Parameters:

  • X:

    人脸框左上角横坐标。

  • Y:

    人脸框左上角纵坐标。

  • Width:

    人脸框宽度。

  • Height:

    人脸框高度。



197
198
199
# File 'lib/v20181201/models.rb', line 197

def X
  @X
end

#YObject

Parameters:

  • X:

    人脸框左上角横坐标。

  • Y:

    人脸框左上角纵坐标。

  • Width:

    人脸框宽度。

  • Height:

    人脸框高度。



197
198
199
# File 'lib/v20181201/models.rb', line 197

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



206
207
208
209
210
211
# File 'lib/v20181201/models.rb', line 206

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