You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

using Microsoft.Kinect;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KinectUtils
{
abstract class Gesture : BaseGesture
{
protected int _maxNbOfFrames;
protected int _minNbOfFrames;
private int currentFrameCount;
public bool isRecognitionRunning { get; set; }
public int MinNbOfFrames {
get { return _minNbOfFrames; }
private set { _minNbOfFrames = value; }
}
public int MaxNbOfFrames
{
get { return _maxNbOfFrames; }
private set { _maxNbOfFrames = value; }
}
public bool TestGesture(Body body)
{
TestInitialConditions(body);
TestPosture(body);
TestRunningGesture(body);
TestEndConditions(body);
}
abstract protected bool TestInitialConditions(Body body);
abstract protected bool TestPosture(Body body);
abstract protected bool TestRunningGesture(Body body);
abstract protected bool TestEndConditions(Body body);
}
}