Movement Recognizing SDK v1.5 RRS feed

  • Question

  • Hello,

    I'm working on a code which can detect different (simple) movements of a hand. I have used a samples' ("Slide Show Gestures") reference called Microsoft.Samples.Kinect.SwipeGestureRecognizer.dll. But this reference just recognize two gestures : swip left and swip right. I would like to regonize other gestures like moving the hand back to front. I have noticed that these gestures existed in some exemples given for a past version of SDK (Kinect Keyboard Simulation) but I didn't succeed to do the migration. Do you know if there are new exemples (adapted to v1.5) which are doing the same? Or maybe other dll references which contain more gestures?

    Thanks for your help

    Tuesday, June 19, 2012 4:19 PM

All replies

  • Hi,

    I used kinect.toolbox library for gesture recognition (, it works good for swipe right and left gestures, but it does not implement other gestures. I used this tutorial to add back to front (click) gesture to it:

    This tutorial works with the kinect SDK beta version, so, there is the need to adapt to SDK 1 and 1.5.

    here are my codes which work for me, however I think it needs improvements, because for example when I move toward the kinect it also recognized as click!!!

    OK, anyways: I added this code to Sources/Gestures/SwipeGestureDetector.cs

     protected override void LookForGesture()
                // Swipe to right
                // Swipe to left
                // From back to front
                if (ScanPositions((p1, p2) => Math.Abs(p2.Y - p1.Y) < 0.15f,
                    (p1, p2) => p2.Z - p1.Z < 0.01f, (p1, p2) =>
                        Math.Abs(p2.Z - p1.Z) > 0.2f, 250, 2500))

    I built the Solution to get the updated .dll file, I used the .dll file as reference in my project. And I followed the instructions in the url I provided to recognize the gesture.

    For adapting the code to SDK v1.0 or v1.5 you can use:

    I did a general explanation here. Because you can find the detailes in the links I shared. If you needed more help let me know. I'll be happy to help. Also if you could find a solution for optimizing the gesture recognition please share it. :)

    Thursday, August 30, 2012 11:19 AM