|
|
|
@ -9,7 +9,7 @@ namespace KinectUtils
|
|
|
|
|
{
|
|
|
|
|
public abstract class Gesture : BaseGesture
|
|
|
|
|
{
|
|
|
|
|
public bool IsRecognitionRunning { get; set; }
|
|
|
|
|
public bool IsRecognitionRunning { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
protected int MinNbOfFrames = 10; // Exemple de valeur, ajustez selon le geste
|
|
|
|
|
protected int MaxNbOfFrames = 50; // Exemple de valeur, ajustez selon le geste
|
|
|
|
@ -22,7 +22,6 @@ namespace KinectUtils
|
|
|
|
|
if (TestInitialConditions(body))
|
|
|
|
|
{
|
|
|
|
|
IsRecognitionRunning = true;
|
|
|
|
|
Console.WriteLine(GestureName);
|
|
|
|
|
currentFrameCount = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -37,6 +36,7 @@ namespace KinectUtils
|
|
|
|
|
else if (TestEndConditions(body) && currentFrameCount >= MinNbOfFrames)
|
|
|
|
|
{
|
|
|
|
|
OnGestureRecognized(body);
|
|
|
|
|
Console.WriteLine(GestureName);
|
|
|
|
|
IsRecognitionRunning = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|