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.

20 lines
536 B

using Microsoft.Kinect;
using KinectUtils;
namespace MyGesturesBank
{
public class PostureHandUp : Posture
{
protected override bool TestPosture(Body body)
{
var handRight = body.Joints[JointType.HandRight].Position;
var handLeft = body.Joints[JointType.HandLeft].Position;
var head = body.Joints[JointType.Head].Position;
return handRight.Y > head.Y || handLeft.Y > head.Y;
}
public override string GestureName => "Posture Hand Up";
}
}