简体   繁体   English

鼠标点击事件用c#表示kinect

[英]mouse click event with c# for kinect

i was wondering how could i emulate a mouse click with c# with kinect. 我想知道我怎么能用cinect用c#模拟鼠标点击。 I was trying to recognize a certain pattern with my hands in order to click the mouse, but i am not familiar with the mouse event. 我试图用双手识别某个图案以便点击鼠标,但我不熟悉鼠标事件。 Any suggestions would be appreciated. 任何建议,将不胜感激。

I was a bit confused by your question... Trying to call the mouse event, or recognize patterns with your hands? 我对你的问题感到有点困惑......试着用手调用鼠标事件,还是用手识别模式?

For the first option, you can call an OnMouseClick event. 对于第一个选项,您可以调用OnMouseClick事件。 You could probably call it for one object, but you would probably have to make it global (check out this link ). 您可能会为一个对象调用它,但您可能必须将其设置为全局(请查看此链接 )。 For the second, one way would be to use AForge with your kinect (sorry if I use too much links but this is a good one). 对于第二个,一个办法是使用AForge与Kinect的(对不起,如果我用了太多的联系,但这个是一个很好的)。 You could even just use AForge with a camera to detect mouse clicks. 您甚至可以使用AForge和相机来检测鼠标点击。 For instance (another link) here is an example from one of the AForge developers. 例如(另一个链接) 这里是一个AForge开发人员的例子。 Another way to do it would be to use emgucv which I am not familiar with. 另一种方法是使用我不熟悉的emgucv

Anyways, good luck! 无论如何,祝你好运! +1 on your question (for what you are trying to do). 你问题上的+1(你正在尝试做什么)。

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

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