Currently OSX only, please feel free to help remove that dependency.
If you don't care for building from source, there are a couple of downloads available.
10.6 - Snow leopard: http://nrocy.github.com/files/kinect20101222.zip
10.5 - Leopard: http://nrocy.github.com/files/kinect20101222_leopard.zip
NativeKinect.init() - initialize the Kinect
NativeKinect.setVideoIR() - output RGB video (default)
NativeKinect.setVideoIR() - output IR video
NativeKinect.start() - tell the Kinect to start streaming data to the library
NativeKinect.getVideo() - pull the latest video frame
NativeKinect.getDepthMap() - pull the latest depthMap frame
NativeKinect.setLed(int) - change the Kinect LED colour (0-6)
import king.kinect.*;
PImage img, depth;
void setup()
{
size(1280, 480);
img = createImage(640,480,RGB);
depth = createImage(640,480,RGB);
NativeKinect.init();
NativeKinect.start();
}
void draw()
{
img.pixels = NativeKinect.getVideo();
img.updatePixels();
depth.pixels = NativeKinect.getDepthMap();
depth.updatePixels();
image(img,0,0,640,480);
image(depth,640,0,640,480);
}
Prebuilt 32-bit libraries are included, so no external deps.
- Xcode
Coming soon.
- More error checking
- Implement motor control methods
- Implement accelerometer methods
- Remove OSX/XCode specific dependencies