我正在做我的最后一年项目。关于 Kinect。我想在遇到手势时打印一个flytext。但我来了多帧。下面的列表是我的代码。
public void checkHand(Joint head, Joint rightHand, Joint leftHand)
{
bool action;
int i;
action = (rightHand.Position.Y > head.Position.Y);
if (action == true)
{
for(i=0;i<1;i++)
{
FlyingText.NewFlyingText(this.screenRect.Width / 30, new Point(this.screenRect.Width / 2, this.screenRect.Height / 2), "right Hand!");
}
action = false;
}
}