Class: TencentCloud::Bda::V20200324::BodyDetectResult

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

Overview

图中检测出来的人体框。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(confidence = nil, bodyrect = nil, bodyattributeinfo = nil) ⇒ BodyDetectResult

Returns a new instance of BodyDetectResult.



179
180
181
182
183
# File 'lib/v20200324/models.rb', line 179

def initialize(confidence=nil, bodyrect=nil, bodyattributeinfo=nil)
  @Confidence = confidence
  @BodyRect = bodyrect
  @BodyAttributeInfo = bodyattributeinfo
end

Instance Attribute Details

#BodyAttributeInfoObject

误识率百分之十对应的阈值是0.14;误识率百分之五对应的阈值是0.32;误识率百分之二对应的阈值是0.62;误识率百分之一对应的阈值是0.81。通常情况建议使用阈值0.32,可适用大多数情况。

Parameters:

  • Confidence:

    检测出的人体置信度。

  • BodyRect:

    图中检测出来的人体框

  • BodyAttributeInfo:

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



177
178
179
# File 'lib/v20200324/models.rb', line 177

def BodyAttributeInfo
  @BodyAttributeInfo
end

#BodyRectObject

误识率百分之十对应的阈值是0.14;误识率百分之五对应的阈值是0.32;误识率百分之二对应的阈值是0.62;误识率百分之一对应的阈值是0.81。通常情况建议使用阈值0.32,可适用大多数情况。

Parameters:

  • Confidence:

    检测出的人体置信度。

  • BodyRect:

    图中检测出来的人体框

  • BodyAttributeInfo:

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



177
178
179
# File 'lib/v20200324/models.rb', line 177

def BodyRect
  @BodyRect
end

#ConfidenceObject

误识率百分之十对应的阈值是0.14;误识率百分之五对应的阈值是0.32;误识率百分之二对应的阈值是0.62;误识率百分之一对应的阈值是0.81。通常情况建议使用阈值0.32,可适用大多数情况。

Parameters:

  • Confidence:

    检测出的人体置信度。

  • BodyRect:

    图中检测出来的人体框

  • BodyAttributeInfo:

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



177
178
179
# File 'lib/v20200324/models.rb', line 177

def Confidence
  @Confidence
end

Instance Method Details

#deserialize(params) ⇒ Object



185
186
187
188
189
190
191
192
193
194
195
# File 'lib/v20200324/models.rb', line 185

def deserialize(params)
  @Confidence = params['Confidence']
  unless params['BodyRect'].nil?
    @BodyRect = BodyRect.new
    @BodyRect.deserialize(params['BodyRect'])
  end
  unless params['BodyAttributeInfo'].nil?
    @BodyAttributeInfo = BodyAttributeInfo.new
    @BodyAttributeInfo.deserialize(params['BodyAttributeInfo'])
  end
end