Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (25 sloc) 540 Bytes
/*
Thomas Sanchez Lengeling.
http://codigogenerativo.com/
KinectPV2, Kinect for Windows v2 library for processing
Simple HD Color test
*/
import KinectPV2.*;
KinectPV2 kinect;
void setup() {
size(1920, 1080);
kinect = new KinectPV2(this);
kinect.enableColorImg(true);
kinect.init();
}
void draw() {
background(0);
//obtain the color image from the kinect v2
image(kinect.getColorImage(), 0, 0, 1920, 1080);
fill(255, 0, 0);
text(frameRate, 50, 50);
}
void mousePressed() {
println(frameRate);
saveFrame();
}