Class: TencentCloud::Tiia::V20190529::AttributesForBody
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tiia::V20190529::AttributesForBody
- Defined in:
- lib/v20190529/models.rb
Overview
属性检测到的人体
Instance Attribute Summary collapse
-
#Attributes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#DetectConfidence ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Rect ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rect = nil, detectconfidence = nil, attributes = nil) ⇒ AttributesForBody
constructor
A new instance of AttributesForBody.
Constructor Details
#initialize(rect = nil, detectconfidence = nil, attributes = nil) ⇒ AttributesForBody
Returns a new instance of AttributesForBody.
125 126 127 128 129 |
# File 'lib/v20190529/models.rb', line 125 def initialize(rect=nil, detectconfidence=nil, attributes=nil) @Rect = rect @DetectConfidence = detectconfidence @Attributes = attributes end |
Instance Attribute Details
#Attributes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
123 124 125 |
# File 'lib/v20190529/models.rb', line 123 def Attributes @Attributes end |
#DetectConfidence ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
123 124 125 |
# File 'lib/v20190529/models.rb', line 123 def DetectConfidence @DetectConfidence end |
#Rect ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
123 124 125 |
# File 'lib/v20190529/models.rb', line 123 def Rect @Rect end |
Instance Method Details
#deserialize(params) ⇒ Object
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/v20190529/models.rb', line 131 def deserialize(params) unless params['Rect'].nil? @Rect = ImageRect.new @Rect.deserialize(params['Rect']) end @DetectConfidence = params['DetectConfidence'] unless params['Attributes'].nil? @Attributes = [] params['Attributes'].each do |i| bodyattributes_tmp = BodyAttributes.new bodyattributes_tmp.deserialize(i) @Attributes << bodyattributes_tmp end end end |