OPENCV



Name jump()
Examples movie
import hypermedia.video.*;


OpenCV opencv;

void setup() {
  size( 640, 480 );
  opencv = new OpenCV( this );
  opencv.movie( "bunny.avi", width, height );    // load movie file
}

void draw() {
  opencv.read();                  // read a new frame
  image( opencv.image(), 0, 0 );  // and display image
}

void mousePressed() {
  float time = mouseX/float(width);
  opencv.jump( time );            // jump to a specified frame
}

Description Jump to a specified movie frame.
Syntax jump(millis);
jump(ratio);
jump(value, type);
Parameters
millis int : the time in milliseconds of the desired frame
ratio float : the time expressed as a ratio (0.0 - 1.0) of the desired frame
value float : the time (according to type) of the desired frame
type int : use: MOVIE_MILLISECONDS, MOVIE_FRAMES or MOVIE_RATIO
Return None
Usage Application