kinectkinect-sdkskeleton-code

the value of joint if the body was out of range


i am trying to make the Kinect able to adjust its angle automatically to be able to detect all skeleton joints, i used loop that go through all the joint and check their value, however i don't know what is the value that stored in -for example:"skeleton.Joints[JointID.HandRight]" - if no joint was detected. Could some one help me with that using official Kinect SDK?


Solution

  • Using the JointTrackingState enum on each of the joints will allow you to determine if a particular Joint is being tracked or not.

    For example: skeleton.Joints[JointID.HandRight].TrackingState will tell you if the joint is:

    You can cycle through each of the joints and check their status. Based on if it is Tracked, Inferred or NotTracked you can take appropriate action.

    The "Skeleton Basics" example in the Kinect for Windows Developer Toolkit demonstrates how to adjust a drawn skeleton based on these values.