public
Last active

  • Download Gist
kinect_movie_recorder.pde
Processing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
import org.openkinect.*;
import org.openkinect.processing.*;
import processing.video.*;
 
MovieMaker mm;
 
Kinect kinect;
 
void setup() {
size(640,480);
frameRate(24);
kinect = new Kinect(this);
kinect.start();
kinect.enableDepth(true);
mm = new MovieMaker(this, width, height, "kinect_movie.mov", 24, MovieMaker.ANIMATION, MovieMaker.HIGH);
}
 
void draw() {
image(kinect.getDepthImage(),0,0);
mm.addFrame();
}
 
void keyPressed() {
if (key == ' ') {
mm.finish(); // Finish the movie if space bar is pressed!
}
}
 
void stop() {
kinect.quit();
super.stop();
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.