Class: TencentCloud::Bda::V20200324::AttributesOptions

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

Overview

返回人体属性选项,此值不填则为不需要返回,可以选择的值为以下六个。Age、Bag、Gender、Orientation、UpperBodyCloth、LowerBodyCloth,详细的解释请看对象描述需注意本接口最多返回面积最大的 5 个人体属性信息,超过 5 个人体(第 6 个及以后的人体)的人体属性不具备参考意义。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(age = nil, bag = nil, gender = nil, orientation = nil, upperbodycloth = nil, lowerbodycloth = nil) ⇒ AttributesOptions

Returns a new instance of AttributesOptions.



60
61
62
63
64
65
66
67
# File 'lib/v20200324/models.rb', line 60

def initialize(age=nil, bag=nil, gender=nil, orientation=nil, upperbodycloth=nil, lowerbodycloth=nil)
  @Age = age
  @Bag = bag
  @Gender = gender
  @Orientation = orientation
  @UpperBodyCloth = upperbodycloth
  @LowerBodyCloth = lowerbodycloth
end

Instance Attribute Details

#AgeObject

Parameters:

  • Age:

    返回年龄信息

  • Bag:

    返回随身挎包信息

  • Gender:

    返回性别信息

  • Orientation:

    返回朝向信息

  • UpperBodyCloth:

    返回上装信息

  • LowerBodyCloth:

    返回下装信息



58
59
60
# File 'lib/v20200324/models.rb', line 58

def Age
  @Age
end

#BagObject

Parameters:

  • Age:

    返回年龄信息

  • Bag:

    返回随身挎包信息

  • Gender:

    返回性别信息

  • Orientation:

    返回朝向信息

  • UpperBodyCloth:

    返回上装信息

  • LowerBodyCloth:

    返回下装信息



58
59
60
# File 'lib/v20200324/models.rb', line 58

def Bag
  @Bag
end

#GenderObject

Parameters:

  • Age:

    返回年龄信息

  • Bag:

    返回随身挎包信息

  • Gender:

    返回性别信息

  • Orientation:

    返回朝向信息

  • UpperBodyCloth:

    返回上装信息

  • LowerBodyCloth:

    返回下装信息



58
59
60
# File 'lib/v20200324/models.rb', line 58

def Gender
  @Gender
end

#LowerBodyClothObject

Parameters:

  • Age:

    返回年龄信息

  • Bag:

    返回随身挎包信息

  • Gender:

    返回性别信息

  • Orientation:

    返回朝向信息

  • UpperBodyCloth:

    返回上装信息

  • LowerBodyCloth:

    返回下装信息



58
59
60
# File 'lib/v20200324/models.rb', line 58

def LowerBodyCloth
  @LowerBodyCloth
end

#OrientationObject

Parameters:

  • Age:

    返回年龄信息

  • Bag:

    返回随身挎包信息

  • Gender:

    返回性别信息

  • Orientation:

    返回朝向信息

  • UpperBodyCloth:

    返回上装信息

  • LowerBodyCloth:

    返回下装信息



58
59
60
# File 'lib/v20200324/models.rb', line 58

def Orientation
  @Orientation
end

#UpperBodyClothObject

Parameters:

  • Age:

    返回年龄信息

  • Bag:

    返回随身挎包信息

  • Gender:

    返回性别信息

  • Orientation:

    返回朝向信息

  • UpperBodyCloth:

    返回上装信息

  • LowerBodyCloth:

    返回下装信息



58
59
60
# File 'lib/v20200324/models.rb', line 58

def UpperBodyCloth
  @UpperBodyCloth
end

Instance Method Details

#deserialize(params) ⇒ Object



69
70
71
72
73
74
75
76
# File 'lib/v20200324/models.rb', line 69

def deserialize(params)
  @Age = params['Age']
  @Bag = params['Bag']
  @Gender = params['Gender']
  @Orientation = params['Orientation']
  @UpperBodyCloth = params['UpperBodyCloth']
  @LowerBodyCloth = params['LowerBodyCloth']
end