Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I implement a wave gesture in kinect?

I would like to use a gesture, so the kinect can select the person with the gesture as the main player. After this he can control the PC. Selecting the person and giving them control is done. Now i have to implement a gesture, but i dont know how to start.

Can anyone help me?

like image 834
Letoir Avatar asked Dec 09 '11 15:12

Letoir


3 Answers

I guess that is what you want (if you like to recognize gestures by yourself):
MS explains how to recognize a wave gesture with a full code example here: http://blogs.msdn.com/b/mcsuksoldev/archive/2011/08/08/writing-a-gesture-service-with-the-kinect-for-windows-sdk.aspx

By now there are also some gesture recognizer toolkits available.
See this for example:
http://kinecttoolbox.codeplex.com/

You can also surf on http://channel9.msdn.com for similar projects, like that one: http://channel9.msdn.com/coding4fun/kinect/Gestures-and-Tools-for-Kinect-and-matching-Toolkit-too

like image 182
juergen d Avatar answered Nov 17 '22 20:11

juergen d


Did you get as far that you have the skeleton? The easiest is to check how many times the hand changed velocity direction

+x --> -X means it went left and is now coming back right, you can do a distance check between these points to determine if the wave gesture is obvious enough (omits very tiny waves/jitter)

like image 2
Giel Avatar answered Nov 17 '22 22:11

Giel


Take some reference for hand have - say elbow - and store it into a variable and take some reference distance for the hand move such that whenever the hand moves on both sides beyond the reference distance on both sides, calculate the number of waves with the waves you require in your program. If both match select that person for your program

like image 1
ravithejag Avatar answered Nov 17 '22 21:11

ravithejag