opencv = new OpenCV( this ); opencv.capture( width, height ); // open video stream opencv.cascade( OpenCV.CASCADE_FRONTALFACE_ALT ); // load detection description, here-> front face detection : "haarcascade_frontalface_alt.xml"
myMovies[0] = new Movie(this, "1_intimidating.m4v"); // load movie myMovies[1] = new Movie(this, "2_faltering.m4v"); // load movie myMovies[2] = new Movie(this, "3_defeated.m4v"); // load movie myMovies[0].play(); myMovies[1].play(); myMovies[2].play(); myMovies[0].loop(); myMovies[1].loop(); myMovies[2].loop(); }
// image(myMovie, 0, 0, width, height); // draws movie on the screen // image(myMovie, 0, 0, width, height); // draws movie on the screen // image(myMovie, 0, 0, width, height); // draws movie on the screen
// Called every time a new frame is available to read void mousePressed() { counter++; // pushes video forward }