Kinect selection progress RRS feed

  • Question

  • Hi,


    I need to develop one wpf application.

    In which contains 10 button control.

    I need to know how we can select particular button in the screen by using right or left hand using kinect sdk device.




    Thursday, June 30, 2011 11:59 AM


  • Hi Subash,

    I made something which I think is similar to what you described:

    It's quite straightforward:

    1. Lay out your WPF elements (buttons, images, video, whatever)
    2. Read the window-relative locations of those elements and store them in some array. This defines your 'hot spot' areas, i.e. if you have a square button at the top left of your window its coordinates might be (0,0), (100,100)
    3. Create a new skeleton tracker (SDK samples have all the code you need for this) and track the hand(s). Work out the window-relative location of the hand you're tracking.
    4. Continually assess whether your hand is over a hot spot (i.e. if the hand's coordinates are within the hotspot's start and end coordinates).
    5. If the hand stays over a hot spot for x seconds then do some action.

    I'll gladly post my code, but you'll have to wait a few days for it as I'll be away from my computer from this evening. Also I have no doubt that there are better ways of doing it than my technique. There are some very clever people on this forum...


    Thursday, June 30, 2011 12:08 PM