Class: TencentCloud::Bda::V20200324::BodyJointsResult
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Bda::V20200324::BodyJointsResult
- Defined in:
- lib/v20200324/models.rb
Overview
人体框和人体关键点信息。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(boundbox = nil, bodyjoints = nil, confidence = nil) ⇒ BodyJointsResult
constructor
A new instance of BodyJointsResult.
Constructor Details
#initialize(boundbox = nil, bodyjoints = nil, confidence = nil) ⇒ BodyJointsResult
Returns a new instance of BodyJointsResult.
209 210 211 212 213 |
# File 'lib/v20200324/models.rb', line 209 def initialize(boundbox=nil, bodyjoints=nil, confidence=nil) @BoundBox = boundbox @BodyJoints = bodyjoints @Confidence = confidence end |
Instance Attribute Details
#BodyJoints ⇒ Object
207 208 209 |
# File 'lib/v20200324/models.rb', line 207 def BodyJoints @BodyJoints end |
#BoundBox ⇒ Object
207 208 209 |
# File 'lib/v20200324/models.rb', line 207 def BoundBox @BoundBox end |
#Confidence ⇒ Object
207 208 209 |
# File 'lib/v20200324/models.rb', line 207 def Confidence @Confidence end |
Instance Method Details
#deserialize(params) ⇒ Object
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/v20200324/models.rb', line 215 def deserialize(params) unless params['BoundBox'].nil? @BoundBox = BoundRect.new @BoundBox.deserialize(params['BoundBox']) end unless params['BodyJoints'].nil? @BodyJoints = [] params['BodyJoints'].each do |i| keypointinfo_tmp = KeyPointInfo.new keypointinfo_tmp.deserialize(i) @BodyJoints << keypointinfo_tmp end end @Confidence = params['Confidence'] end |