Tracking users
The application flow for tracking users is very similar to the process we described in the color frame and depth frame management:
Firstly, we need to ensure that at least one Kinect sensor is connected.
Secondly, we have to enable the stream (in this case the skeleton one).
And finally, we need to handle the frames that the sensor is streaming through the relevant SDK APIs.
In this chapter we will mention only the code that is relevant to skeletal tracking. The source code attached to the book does include all the detailed code and we can refer to the previous chapter to refresh ourselves on how to address step 1.
To enable the skeleton stream, we simply invoke the KinectSensor.SkeletonStream.Enable()
method.
The Kinect sensor streams out in the skeleton stream's skeleton tracking data. This data is structured in the Skeleton
class as a collection of joints. A
joint is a point at which two skeleton bones are joined. This point is defined by the SkeletonPoint
structure, which defines...