changeHandNone
The gesture changeHandNone is triggered when no hand is raised or alternatively when the gesture changes from at least one hand present (ie.,seen by the sensors) to none been captured (for example when no hands are raised).
Let’s see a simple example to understand how it works!
We are going to create a simple application which changes the text on the screen when changeHandNone is triggered. It is shown the skeletons for visual inspection and better understanding of the gesture itself.
In order to trigger the function from Javascript we are going to create a message called “msg” in the HTML code, this by default is set to show on the top left of the screen the text ‘Awaiting Change Hand None to be triggered!’ and will change when the action is captured by the sensors.
The text in blue shows the line added onto the HTML code:
HTML
<html>
<head>
</head>
<body>
<h1><h1 id="msg">Awaiting changeHandNone to be triggered!</h1></h1>
<canvas id="skeletonsCanvas" width="640" height="480"></canvas>
</body>
</html>
Now, within the changeHandNone function on JAVASCRIPT we are going to add the line which calls “msg” created on the HTML code, and will show on the screen the message “changeHandNone Triggered!” when the action is captured by the sensors.
JAVASCRIPT (UBOX EVENTS Tab)
function changeHandNone() {
console.debug('Hand None');
document.getElementById("msg").innerHTML = "changeHandNone triggered!";
}
If you are not using the uboxPlayer on the PC with the Kinect sensor you can test it out on the web. For doing so, open the following link, right click on the mouse and select “New User” from the dropdown menu. It will change as mentioned.
BUILT-IN GESTURES
- newUser
- noUser
- grip
- release
- getSkeletons
- next
- prior
- changeHandNone
- changeHandRight
- changeHandLeft
- msgFromArduino
- allBuiltinGestures