- Categories:
- computer vision, technology
- Tags:
- cycling74, kinect, maxmsp, motion tracking, nite, opensource, osc, osx, primesense
This guide will help to get you running PrimeSense NITE’s Skeleton Tracking inside XCode on your OSX. It will also help you stream that data in case you’d like to use it in another environment such as Max. An example Max patch is also available.
PrimeSense NITE Skeletonization and Motion Capture to Max/MSP via OSC from pkmital on Vimeo.
Prerequisites:
0.) 1 Microsoft Kinect or other PrimeSense device.
1.) Install XCode and Java Developer Package located here: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719 – if you require a Mac OSX Developer account, just register at developer.apple.com since it is free.
2.) Install Macports: http://www.macports.org/
3.) Install libtool and libusb > 1.0.8:
$ sudo port install libusb-devel +universal
4.) Get the OpenNI Binaries for Mac OSX: http://www.openni.org/downloadfiles
5.) Install OpenNI by unzipping the file OpenNI-Bin-MacOSX (-v1.0.0.25 at the time of writing) and running,
$ sudo ./install.sh
6.) Get SensorKinect from avin2: https://github.com/avin2/SensorKinect/tree/unstable/Bin
7.) Install SensorKinect by unzipping and running
$ sudo ./install.sh
8.) Install OpenNI Compliant Middleware NITE from Primesense for Mac OSX: http://www.openni.org/downloadfiles
9.) Install NITE by unzipping and running
$ sudo ./install.sh
When prompted for a key, enter the key listed on the openni website.
Getting it up and running:
1.) Download the OSC example from here: https://github.com/pkmital/StickFigureOSC – you can still download the project without having git, just look for the “Downloads” link to the right of the screen.
2.) After downloading (and extracting if you downloaded the zip file), navigate to ./StickFigure
and open the XCode Project file.
3.) Compile and run, and hopefully there are no problems…
Optional:
1.) Try and visualize the data in Max/MSP using the Max patch bundled inside the git repository mentioned in step 10: https://github.com/pkmital/StickFigureOSC/blob/master/kinect_skeleton.zip
With this, you can also do multiple person skeletonization and motion tracking, though if you are using the OSC information, you might want to include an OSC Tag for which person’s joint are being sent.