Class: TencentCloud::Bda::V20200324::Age

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

Overview

人体年龄信息。AttributesType 不含 Age 或检测超过 5 个人体时,此参数仍返回,但不具备参考意义。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, probability = nil) ⇒ Age

Returns a new instance of Age.



30
31
32
33
# File 'lib/v20200324/models.rb', line 30

def initialize(type=nil, probability=nil)
  @Type = type
  @Probability = probability
end

Instance Attribute Details

#ProbabilityObject

Parameters:

  • Type:

    人体年龄信息,返回值为以下集合中的一个小孩,青年,中年,老年。

  • Probability:

    Type识别概率值,,代表判断正确的概率。如0.8则代表有Type值有80%概率正确。



28
29
30
# File 'lib/v20200324/models.rb', line 28

def Probability
  @Probability
end

#TypeObject

Parameters:

  • Type:

    人体年龄信息,返回值为以下集合中的一个小孩,青年,中年,老年。

  • Probability:

    Type识别概率值,,代表判断正确的概率。如0.8则代表有Type值有80%概率正确。



28
29
30
# File 'lib/v20200324/models.rb', line 28

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



35
36
37
38
# File 'lib/v20200324/models.rb', line 35

def deserialize(params)
  @Type = params['Type']
  @Probability = params['Probability']
end