繁体   English   中英

C#和Kinect手势时间

[英]C# and Kinect gesture time

我目前正在使用Kinect SDK在C#中开发一些手势识别。到目前为止,到目前为止,唯一的问题是手势识别是即时的。

例如:当我将手举过头顶时,我正在使用messageBox进行公告。如果我握住手2秒钟,它将打开数十个messageBox来宣布手势。

有办法阻止这种情况吗?

达伦说实话。 您需要实现一个停止机制。 Kinect一直在实时分析所有内容,因此当您的手在上面时,它就一直存在:)因此,每次触发您的动作时。 按Atuls所说做,或按我喜欢的做。 我更喜欢创建布尔标志。 默认值为false。 当我的动作被触发时,我将其设置为true, t trigger the action again until the flag is false. In your example I would set it to true when I raise my hand above the head and set it to false when I have my hand below my head. That way I ,我t trigger the action again until the flag is false. In your example I would set it to true when I raise my hand above the head and set it to false when I have my hand below my head. That way I t trigger the action again until the flag is false. In your example I would set it to true when I raise my hand above the head and set it to false when I have my hand below my head. That way I t trigger the action again until the flag is false. In your example I would set it to true when I raise my hand above the head and set it to false when I have my hand below my head. That way I ,每次需要时,我只会触发一次操作

我想如果您的手在头顶上方,您只是在触发事件。 这还不够。

只需在识别到手势后触发一次消息框,然后重置检查算法的任何机制即可。 每当您的手移到头顶下方时,您都需要重新启动手势检查。 如何执行此操作取决于实现手势识别的方式。

您可以检查已实现的@Kinect 工具箱中的 MinimumPeriodBetweenGestures。 同样,您可以根据需要定义条件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM