Class: TencentCloud::Bda::V20200324::BodyAttributeInfo

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

Overview

图中检测出的人体属性信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BodyAttributeInfo.



129
130
131
132
133
134
135
136
# File 'lib/v20200324/models.rb', line 129

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

AttributesType 不含 Age 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Bag 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Gender 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 UpperBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Orientation 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 LowerBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Age:

    人体年龄信息。

  • Bag:

    人体是否挎包。

  • Gender:

    人体性别信息。

  • Orientation:

    人体朝向信息。

  • UpperBodyCloth:

    人体上衣属性信息。

  • LowerBodyCloth:

    人体下衣属性信息。



127
128
129
# File 'lib/v20200324/models.rb', line 127

def Age
  @Age
end

#BagObject

AttributesType 不含 Age 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Bag 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Gender 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 UpperBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Orientation 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 LowerBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Age:

    人体年龄信息。

  • Bag:

    人体是否挎包。

  • Gender:

    人体性别信息。

  • Orientation:

    人体朝向信息。

  • UpperBodyCloth:

    人体上衣属性信息。

  • LowerBodyCloth:

    人体下衣属性信息。



127
128
129
# File 'lib/v20200324/models.rb', line 127

def Bag
  @Bag
end

#GenderObject

AttributesType 不含 Age 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Bag 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Gender 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 UpperBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Orientation 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 LowerBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Age:

    人体年龄信息。

  • Bag:

    人体是否挎包。

  • Gender:

    人体性别信息。

  • Orientation:

    人体朝向信息。

  • UpperBodyCloth:

    人体上衣属性信息。

  • LowerBodyCloth:

    人体下衣属性信息。



127
128
129
# File 'lib/v20200324/models.rb', line 127

def Gender
  @Gender
end

#LowerBodyClothObject

AttributesType 不含 Age 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Bag 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Gender 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 UpperBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Orientation 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 LowerBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Age:

    人体年龄信息。

  • Bag:

    人体是否挎包。

  • Gender:

    人体性别信息。

  • Orientation:

    人体朝向信息。

  • UpperBodyCloth:

    人体上衣属性信息。

  • LowerBodyCloth:

    人体下衣属性信息。



127
128
129
# File 'lib/v20200324/models.rb', line 127

def LowerBodyCloth
  @LowerBodyCloth
end

#OrientationObject

AttributesType 不含 Age 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Bag 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Gender 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 UpperBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Orientation 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 LowerBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Age:

    人体年龄信息。

  • Bag:

    人体是否挎包。

  • Gender:

    人体性别信息。

  • Orientation:

    人体朝向信息。

  • UpperBodyCloth:

    人体上衣属性信息。

  • LowerBodyCloth:

    人体下衣属性信息。



127
128
129
# File 'lib/v20200324/models.rb', line 127

def Orientation
  @Orientation
end

#UpperBodyClothObject

AttributesType 不含 Age 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Bag 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Gender 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 UpperBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 Orientation 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。AttributesType 不含 LowerBodyCloth 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Age:

    人体年龄信息。

  • Bag:

    人体是否挎包。

  • Gender:

    人体性别信息。

  • Orientation:

    人体朝向信息。

  • UpperBodyCloth:

    人体上衣属性信息。

  • LowerBodyCloth:

    人体下衣属性信息。



127
128
129
# File 'lib/v20200324/models.rb', line 127

def UpperBodyCloth
  @UpperBodyCloth
end

Instance Method Details

#deserialize(params) ⇒ Object



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/v20200324/models.rb', line 138

def deserialize(params)
  unless params['Age'].nil?
    @Age = Age.new
    @Age.deserialize(params['Age'])
  end
  unless params['Bag'].nil?
    @Bag = Bag.new
    @Bag.deserialize(params['Bag'])
  end
  unless params['Gender'].nil?
    @Gender = Gender.new
    @Gender.deserialize(params['Gender'])
  end
  unless params['Orientation'].nil?
    @Orientation = Orientation.new
    @Orientation.deserialize(params['Orientation'])
  end
  unless params['UpperBodyCloth'].nil?
    @UpperBodyCloth = UpperBodyCloth.new
    @UpperBodyCloth.deserialize(params['UpperBodyCloth'])
  end
  unless params['LowerBodyCloth'].nil?
    @LowerBodyCloth = LowerBodyCloth.new
    @LowerBodyCloth.deserialize(params['LowerBodyCloth'])
  end
end