OpenCV
index
 
Name flip ( )
Examples
import hypermedia.video.*;

OpenCV opencv;


void setup() {

  size( 640, 240 );

  // open video stream
  opencv = new OpenCV(this);
  opencv.capture( 320, 240 );

}

void draw() {

  // grab frame from camera
  opencv.read();
  // flip vertically and horizontally
  opencv.flip( OpenCV.FLIP_BOTH );
  

  // display images
  image( opencv.image(OpenCV.ORIGINAL), 0, 0 );
  image( opencv.image(), 320, 0 );
}
Description Flip the actual image around vertical, horizontal or both axises.
Syntax
flip(mode);
Parameters
mode   the used axis, FLIP_HORIZONTAL, FLIP_VERTICAL or FLIP_BOTH
Returns None
Usage Web & Application
Related