Kinect v2相对光标位置 [英] Kinect v2 Relative Cursor Location

查看:64
本文介绍了Kinect v2相对光标位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将已完成的Kinect 1.8项目迁移到Kinect 2.0 SDK。在这个程序中,我有一个WPF前端,但99%的代码是用SharpDX for C#编写的。该程序隐藏了KinectRegions光标,并使用光标位置和夹点数据作为SharpDX代码的
输入。然而,使用这个新版本的Kinect SDK,我找不到任何方法来获取相对光标数据(相对于用户的手位置)。我尝试使用骨架数据来推断光标位置,只是一个简单的主肩
位置 - 主手位置。这有一个问题,当手遮住肩膀时,光标会射击。如果我在遮挡发生时通过脊柱反射来切换肩膀,我会瞬间跳跃。我可以想办法让
这个起作用,但这需要相当多的代码。在我深入研究之前,我想确保没有别的办法。预先感谢您的帮助!

I am migrating a completed Kinect 1.8 project to the Kinect 2.0 SDK. In this program I have a WPF front end, but 99% of the code is written in SharpDX for C#. The program hides the KinectRegions cursor and uses the cursor location and grip data as the input to the SharpDX code. With this new version of the Kinect SDK however, I can't find any way to get the relative cursor data (hand position relative to the user). I tried using skeleton data to extrapolate the cursor location, just a simple primary shoulder location - primary hand location. This has the issue of when the hand occludes the shoulder, the cursor would shoot around. If I switch shoulders by reflecting across the spine when the occlusion occurs, I get a momentary jump. I can think of a way to get this to work but it will take quite a bit of code. I want to make sure there is no other way before I dive into that. Thanks in advance for any help!

推荐答案

查看Controls Basics示例,尤其是DX版本。这提供了一种更通用的方法来获取更适合不使用XAML控件的应用程序的KinectPointerPoint数据。
Have a look at the Controls Basics samples, especially the DX version. This provides a more generic way of tapping into the KinectPointerPoint data that is better suited for applications that do not use XAML controls.


这篇关于Kinect v2相对光标位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆