Kinectable pipe

kinectable_pipe

Download as .zip Download as .tar.gz View on GitHub

kinectable_pipe

kinectable_pipe is a command-line utility that dumps user skeleton data from a Microsoft Kinect device to a standard Unix pipe.

Why?

To bring Unix-y goodness to the world of Microsoft Kinect programming!

No, really, why?

Because Kinect programming is a pain in the neck, and by trivializing the device's output into a simple text format, it becomes infinitely easier to digest in the scripting language of your choice.

This seems simple to the point of being almost useless

Yes, that's the point. Do One Thing and Do It Well. There's an accompanying rubygem that will add all the smart stuff like advanced gesture recognition, events, etc.

USAGE

% kinectable_pipe | ruby some_other_script.rb

INSTALLATION (OS X / homebrew)

# must have universal binary for libusb
brew uninstall libusb
brew install libusb --universal

brew tap marshally/alt

brew install kinectable_pipe

# now plug in your kinect
# and run this command in the terminal

kinectable_pipe

# step back from the sensor, wave your arms like a lunatic
# until it recognizes you and starts pumping out skeleton data
# to STDOUT

TODO

  1. Recognize all available xn::GestureGenerator
  2. Fix output to work with non-interactive terminal sessions.
  3. Add CLI argument -r to change output framerate.
  4. Improve Ruby sample app.
  5. Add sample apps for other scripting languages.
  6. Add CLI argument for alternate output encodings (XML, msgpack, BERT, whatever).