简体   繁体   English

使用kinect(C#和WPF)从深度图像进行指尖检测

[英]fingertip detection from depth Image using kinect (c# and wpf)

I'm making a project for my university, I'm working with kinect and i want to detect the finger tips using microsoft sdk.I made depth segmentation based on the closest object and player so i now have only the hand part in my image. 我正在为我的大学做一个项目,我正在使用kinect,我想使用Microsoft sdk检测指尖。我根据最近的对象和播放器进行了深度分割,所以我的图像中现在只有手部分。 But I have no idea what to do next. 但是我不知道下一步该怎么做。 I'm trying to get the hand's boundary but not finding the method to do it. 我试图获取手的边界,但没有找到做到这一点的方法。 so can anyone help me and suggest some usefull ways or ideas to do that. 因此任何人都可以帮助我,并提出一些有用的方法或想法。 I am using c# and wpf It will be great if anyone can provide a sample code. 我正在使用c#和wpf,如果任何人都可以提供示例代码,那就太好了。 I only want to detect the index finger and the thumb. 我只想检测食指和拇指。 Thanks in advance 提前致谢

Btw about finding the boundaries. 顺便说一句关于寻找界限。 Think about this. 考虑一下。 Kinect gives you position of your hand. Kinect使您的手处于位置。 Your hand is on some Z position. 您的手在某个Z位置上。 It`s the distance from the Kinect device. 距Kinect设备的距离。 Now every pixel (from depth stream) of your hand is almoust on the same Z position as the join of your hand. 现在,您的手的每个像素(来自深度流)都与手的连接处在相同的Z位置。 Your boundarie will be an pixel that is much more in background than your hand. 您的边界将是背景中比您手多得多的像素。 This way you can get boundaries in every direction for your hand. 这样,您就可以在各个方向上获得边界。 You just need to analyze pixel data Hope it helped 您只需要分析像素数据,希望对您有所帮助

Try this download , it is Kinect finger detection, and get the "Recommended" download on the page, I have found the .dll s in it work well. 尝试此下载 ,它是Kinect手指检测,并在页面上获得“推荐”下载,我发现其中的.dll效果很好。 Good Luck! 祝好运!

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

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