Class: TencentCloud::Vclm::V20240523::FaceRect

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



664
665
666
667
668
669
# File 'lib/v20240523/models.rb', line 664

def initialize(x=nil, y=nil, width=nil, height=nil)
  @X = x
  @Y = y
  @Width = width
  @Height = height
end

Instance Attribute Details

#Height ⇒ Object

Parameters:

  • X: —

    人脸框左上角横坐标。

  • Y: —

    人脸框左上角纵坐标。

  • Width: —

    人脸框宽度。

  • Height: —

    人脸框高度。



662
663
664
# File 'lib/v20240523/models.rb', line 662

def Height
  @Height
end

#Width ⇒ Object

Parameters:

  • X: —

    人脸框左上角横坐标。

  • Y: —

    人脸框左上角纵坐标。

  • Width: —

    人脸框宽度。

  • Height: —

    人脸框高度。



662
663
664
# File 'lib/v20240523/models.rb', line 662

def Width
  @Width
end

#X ⇒ Object

Parameters:

  • X: —

    人脸框左上角横坐标。

  • Y: —

    人脸框左上角纵坐标。

  • Width: —

    人脸框宽度。

  • Height: —

    人脸框高度。



662
663
664
# File 'lib/v20240523/models.rb', line 662

def X
  @X
end

#Y ⇒ Object

Parameters:

  • X: —

    人脸框左上角横坐标。

  • Y: —

    人脸框左上角纵坐标。

  • Width: —

    人脸框宽度。

  • Height: —

    人脸框高度。



662
663
664
# File 'lib/v20240523/models.rb', line 662

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



671
672
673
674
675
676
# File 'lib/v20240523/models.rb', line 671

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