Class: TencentCloud::Bda::V20200324::KeyPointInfo

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

Overview

人体关键点信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keypointtype = nil, x = nil, y = nil, bodyscore = nil) ⇒ KeyPointInfo

Returns a new instance of KeyPointInfo.



1047
1048
1049
1050
1051
1052
# File 'lib/v20200324/models.rb', line 1047

def initialize(keypointtype=nil, x=nil, y=nil, bodyscore=nil)
  @KeyPointType = keypointtype
  @X = x
  @Y = y
  @BodyScore = bodyscore
end

Instance Attribute Details

#BodyScoreObject

Parameters:

  • KeyPointType:

    代表不同位置的人体关键点信息,返回值为以下集合中的一个 [头部,颈部,右肩,右肘,右腕,左肩,左肘,左腕,右髋,右膝,右踝,左髋,左膝,左踝]

  • X:

    人体关键点横坐标

  • Y:

    人体关键点纵坐标

  • BodyScore:

    关键点坐标置信度,分数取值在0-1之间,阈值建议为0.25,小于0.25认为在图中无人体关键点。



1045
1046
1047
# File 'lib/v20200324/models.rb', line 1045

def BodyScore
  @BodyScore
end

#KeyPointTypeObject

Parameters:

  • KeyPointType:

    代表不同位置的人体关键点信息,返回值为以下集合中的一个 [头部,颈部,右肩,右肘,右腕,左肩,左肘,左腕,右髋,右膝,右踝,左髋,左膝,左踝]

  • X:

    人体关键点横坐标

  • Y:

    人体关键点纵坐标

  • BodyScore:

    关键点坐标置信度,分数取值在0-1之间,阈值建议为0.25,小于0.25认为在图中无人体关键点。



1045
1046
1047
# File 'lib/v20200324/models.rb', line 1045

def KeyPointType
  @KeyPointType
end

#XObject

Parameters:

  • KeyPointType:

    代表不同位置的人体关键点信息,返回值为以下集合中的一个 [头部,颈部,右肩,右肘,右腕,左肩,左肘,左腕,右髋,右膝,右踝,左髋,左膝,左踝]

  • X:

    人体关键点横坐标

  • Y:

    人体关键点纵坐标

  • BodyScore:

    关键点坐标置信度,分数取值在0-1之间,阈值建议为0.25,小于0.25认为在图中无人体关键点。



1045
1046
1047
# File 'lib/v20200324/models.rb', line 1045

def X
  @X
end

#YObject

Parameters:

  • KeyPointType:

    代表不同位置的人体关键点信息,返回值为以下集合中的一个 [头部,颈部,右肩,右肘,右腕,左肩,左肘,左腕,右髋,右膝,右踝,左髋,左膝,左踝]

  • X:

    人体关键点横坐标

  • Y:

    人体关键点纵坐标

  • BodyScore:

    关键点坐标置信度,分数取值在0-1之间,阈值建议为0.25,小于0.25认为在图中无人体关键点。



1045
1046
1047
# File 'lib/v20200324/models.rb', line 1045

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



1054
1055
1056
1057
1058
1059
# File 'lib/v20200324/models.rb', line 1054

def deserialize(params)
  @KeyPointType = params['KeyPointType']
  @X = params['X']
  @Y = params['Y']
  @BodyScore = params['BodyScore']
end