Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

kinect - fingertip detection

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
39,381
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 21, 2010

algorithm (implemented with openCV) works as follows:

1. depth thresholding
2. contour extraction
3. approximate contours
4. assume vertices of convex hull to be fingertips if their interior angle is small enough

code can be found here:
http://dl.dropbox.com/u/5505209/FingertipTuio3d.zip


===================================

update 28.07.2011:

I actually have a new version running with openNI / NITE (on linux) using sekelton tracking as well:
http://dl.dropbox.com/u/5505209/kinectfingertip.zip
(currently uses OpenNI-Bin-Linux64-v1.1.0.41)

note: to avoid initial skeleton calibration, it loads a calibration from a file called "UserCalibration.bin". i did not include it into the zip file as its not compatible between different versions of NITE. you can create your own calibration file by calibrating with the openNI user tracker example and press Shift+S (this will generate a UserCalibration.bin, just copy it to the working directory of your binary)

after that your skeleton will be tracked instantly as you step in front of the kinect. this also works quite well with different people that actually were not calibrated!

Link to this comment:

Share to:

Uploader Comments (RobbeOfficial)

  • when i try to run your code (openNI version)

    i get no values in skeletonJointPosition?

  • @solCruiser did you put a valid UserCalibration.bin into the working directory?

  • To the one wondering why it doesn't work on MacOS or Linux :

    this program is using CL NUI, a windows only, closed source driver. It can't be used on any other OS than windows without remplacing by OpenNI.

    By the way, the use of the skeleton tracking from OpenNI (or Microsoft SDK) would allow to limit detection around the hand, and prevent interferences.

  • @Skeeeebl good point! :)

    see updated video description!

see all

All Comments (45)

Sign In or Sign Up now to post a comment!
  • Hi,

    Could you please tell me the necessary softwares required to install to run your application???

  • Would you be able to work on mac version? please??

  • Well, I tried the new version (on Linux: ubuntu 10.10) with Openni / NITE, I've already copied the UserCalibration.bin to the local folder. I do this, "./build.sh" and then "./run.sh". (I suppose that the second has the same effect that "./KinectFingertip" or with sudo before). The thing is that the process is way to slow, and once the window (depthMatBgr) is finally showing something, it is not what i expected, it is like the raw image and very slow. Any recomendation?

  • absolutely amaizing, thank you for showing your source code !

  • shits scary when your high....

  • hello, do you have the code for kinect sdk???

    thanks

  • wow, that was awesome... nice work... just a question, Is it possible to make this to work like multitouch screen like? like win&i 2 beta??

  • Hi, can it run on win7, using opencv2.1 and VS 2010. Thank you very much.

  • @RobbeOfficial i used the UserCalibration file generated by NIUserTracker-Sample.

    It seems to be a Problem with the ConvertRealWorldToProjective() method

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more