c# - Get JointType from Body class Kinect -
i know in old sdk, there skeleton
class , can
public void compare(skeleton skeleton) { var leftshoulderposition = skeleton.joints.where(j => j.jointtype == jointtype.shoulderleft); }
however, new sdk came out , skeleton
class replaced body
class. now, code throwing error @ j.jointtype
.
is there workaround problem?
with microsoft kinect sdk v2.0, can shoulderleft
joint (and, similarly, other skeletal joint) follows:
body.joints[jointtype.shoulderleft]
where body
instance of body
class refer.
Comments
Post a Comment