Search code examples
c#c#-4.0kinect

mouse click event with c# for kinect


i was wondering how could i emulate a mouse click with c# with kinect. 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.


Solution

  • 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. 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). You could even just use AForge with a camera to detect mouse clicks. For instance (another link) here is an example from one of the AForge developers. Another way to do it would be to use emgucv which I am not familiar with.

    Anyways, good luck! +1 on your question (for what you are trying to do).