Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View kinect_movie_recorder.pde
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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.