here is the code that I have. I am trying to get the pulsating circle to be evenly placed all over the screen rather than just pulsating from the origin. I think my problem is with translate but it could also be my understanding of and use of the sin function. Any help or suggestions are great.
// contrast/brightness values int contrast_value = 0; int brightness_value = 0;
void setup() {
size( 500, 500 );
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"
// print usage println( "Drag mouse on X-axis inside this sketch window to change contrast" ); println( "Drag mouse on Y-axis inside this sketch window to change brightness" ); }
public void stop() { opencv.stop(); super.stop(); }
void draw() { opencv.flip( OpenCV.FLIP_HORIZONTAL ); // grab a new frame // and convert to gray opencv.read(); //opencv.convert( GRAY ); opencv.contrast( contrast_value ); opencv.brightness( brightness_value );
// contrast/brightness values int contrast_value = 0; int brightness_value = 0;
void setup() {
size( 500, 500 );
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"
// print usage println( "Drag mouse on X-axis inside this sketch window to change contrast" ); println( "Drag mouse on Y-axis inside this sketch window to change brightness" ); }
public void stop() { opencv.stop(); super.stop(); }
void draw() { opencv.flip( OpenCV.FLIP_HORIZONTAL ); // grab a new frame // and convert to gray opencv.read(); //opencv.convert( GRAY ); opencv.contrast( contrast_value ); opencv.brightness( brightness_value );