I'm trying to make several action when a (after several) gesture is recognized.
For example, when SwipeToRight is recognized, I want to send something on the serial Port.
But it didn't work.
Do I am on the good class ?
I put this code on the Kinect.Toolbox/Gesture/SwipeGestureDetector
Previons is declared the class : SerialToolbox Serial = new SerialToolbox();
protected override void LookForGesture()
// Swipe to right
if (ScanPositions((p1, p2) => Math.Abs(p2.Y - p1.Y) < SwipeMaximalHeight, // Height
(p1, p2) => p2.X - p1.X > -0.01f, // Progression to right
(p1, p2) => Math.Abs(p2.X - p1.X) > SwipeMinimalLength, // Length
SwipeMininalDuration, SwipeMaximalDuration)) // Duration
Maybe I don't put my code at the good place.
When it will work, I would like to add like 6-8 movements and send a different message on the serial port by a recognized movement.