Choosing which skeleton to track
Kinect for Windows can track more than one skeleton, hence it is important to identify which skeleton is being tracked or which skeleton is to be used by the application. Each and every skeleton is identified by a unique identification number. The skeleton-tracking engine assigns each skeleton a unique integer identifier to track the skeleton. You can get access to the tracking ID as the Skeleton
class has a property TrackingId
that returns the unique ID for the skeleton.
Skeleton-tracking ID
A TrackingId
property of value zero means an empty skeleton, or that the skeleton is not being tracked. The application uses a collection to store the skeleton information. The collection size is six, as the sensor can track up to six skeletons. When there is a skeleton tracked by the sensor, the skeleton-tracking engine assigns the TrackingId
for that tracked skeleton and pushes the skeleton information within a collection. This TrackingId
will remain the same unless...