Skip to content

@atduskgreg /kinect_movie_recorder.pde
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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.