none
Detect shoulder press / swipe up gesture RRS feed

  • Question

  • Using the kinect.toolbox library from "kinecttoolbox.codeplex"

    I am trying to create a gesture for a 'shoulder press exercise motion" where it should start with the hand near the shoulder and detect a upward progression path as the hand moves above past the head.

    I have sort of found a way to detect from above head going down to the shoulder:

               

                if (ScanPositions((p1, p2) => Math.Abs(p2.Y - p1.Y) < SwipeMaximalHeight,  // Height
                    (p1, p2) => p2.Y - p1.Y < 0.01f, // Progression down
                    (p1, p2) => Math.Abs(p2.Y - p1.Y) > SwipeMinimalLength, // Length
                    SwipeMininalDuration, SwipeMaximalDuration))// Duration
                {
                    RaiseGestureDetected("SwipeUp");
                    return;
                }

    But unable to reverse this gesture to detect upwards.

    if > -0.01f is applied on the second line it still doesnt work

    Wednesday, February 12, 2014 4:10 PM

Answers

  • You may want to post on the CodePlex project discussion page for help, since this is a general Kinect for Windows SDK forum. Someone here might be able to help, but the developers of the project may not be monitoring this forum.


    Carmine Sirignano - MSFT

    Thursday, February 13, 2014 6:55 PM