简体   繁体   English

Kinect v2手对鼠标的位置会随手关闭

[英]Kinect v2 Hand to Mouse position drops on hand close

I am developing a WPF App that uses Kinect v2, and I use the hand to simulate the mouse. 我正在开发使用Kinect v2的WPF应用程序,并且用一只手来模拟鼠标。 It works but I have a little problem - when I close the hand I simulate a click but the cursor drops its position a little bit relative to when the hand was open and sometimes it will end in a click in the wrong button or place. 它可以工作,但是我有一个小问题-当我合上手时,我模拟了一次点击,但是相对于手打开时,光标的位置略有下降,有时它会以错误的按钮或位置点击结束。

Any ideas on how can I solve this? 关于如何解决这个问题的任何想法?

I already tried to track the wrist and the thumbs instead of the hand but the problem still happens. 我已经尝试跟踪手腕和拇指而不是手,但是问题仍然存在。

Thanks! 谢谢!

Here are some ideas: 这里有一些想法:

  • Filter and smooth the hand position data a bit more. 进一步过滤和平滑手位置数据。 For a UI/menu system, it should be acceptable to have some latency as it doesn't require reduced latency as much as other uses. 对于UI /菜单系统,应该有一些延迟,因为它不需要像其他用途那样减少延迟。
  • Modify the hand position based on the hand's open/close state. 根据手的打开/关闭状态修改手的位置。 Introduce a constant to bump up the hand position when the hand is closed, with appropriate smoothing to get this to feel and look correct 引入一个常数以在闭合手时使其升起,并进行适当的平滑处理以使其感觉和外观正确
  • Keep a list of hand positions and use the data from a few frames before (though it might be tricky to get this to feel and look correct) 保留手的位置列表并使用之前几帧中的数据(尽管要使它感觉和看起来正确可能很棘手)

As a note, also consider these points: 注意,请注意以下几点:

  • Use bigger buttons. 使用更大的按钮。 Buttons should have appropriate spacing, placement, and sizes. 按钮应具有适当的间距,位置和大小。 The app's UI should be specifically designed for a Kinect application. 该应用程序的用户界面应专门为Kinect应用程序设计。
  • Use a different gesture for a mouse click, such as push or press which is the recommended approach in the Kinect Human Interface Guidelines 2.0 使用其他手势进行鼠标单击,例如推或按,这是Kinect人机界面指南2.0中的推荐方法

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

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