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.
18 lines
466 B
18 lines
466 B
using Microsoft.Kinect;
|
|
using KinectUtils;
|
|
|
|
namespace MyGesturesBank
|
|
{
|
|
public class PostureHandUp : Posture
|
|
{
|
|
protected override bool TestPosture(Body body)
|
|
{
|
|
// Exemple de condition : la main droite est plus haute que l'épaule droite
|
|
return body.Joints[JointType.HandRight].Position.Y > body.Joints[JointType.ShoulderRight].Position.Y;
|
|
}
|
|
|
|
public override string GestureName => "Hand Up";
|
|
}
|
|
|
|
}
|