Introduction
In this chapter, we are going to cover every topic related to hand tracking in NiTE, from finding hand gestures to tracking hand movements and finding which hand belongs to which user.
Unfortunately, the new version of NITE does not have some commands, such as the hand swipe, from the old API.
The nite::HandTracker object
Just as with nite::UserTracker
, which is responsible for giving us information about users, nite::HandTracker
is responsible for giving us information about hand tracking and hand's gestures on the scene. The two main functionalities of nite::HandTracker
are recognizing hand gestures and tracking hands. Let's take a look at the important methods of this class:
nite:HandTracker::startGestureDetection()
: This method starts the process of searching for a specific hand gesture in the scene. It accepts only a single argument from thenite::GestureType
enum
type. Thisenum
type has three predefined members that are the only supported gestures bynite::HandTracker
. It...