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.
24 lines
556 B
24 lines
556 B
using KinectUtils;
|
|
using Microsoft.Kinect;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MyGesturesBank
|
|
{
|
|
public class RightHandUp : Posture
|
|
{
|
|
protected override bool TestPosture(Body body)
|
|
{
|
|
var handRight = body.Joints[JointType.HandRight].Position;
|
|
var head = body.Joints[JointType.Head].Position;
|
|
|
|
return handRight.Y > head.Y;
|
|
}
|
|
public override string GestureName => "Right Hand Up";
|
|
}
|
|
|
|
}
|