Hi, I'm working on computer vision with openCV in processing.
I am still learning the syntax and functions of open CV.
The idea is when I press keyboard it will read the camera and display it; but I never get current picture. It seems there are a buffer of 3 or 4 photos. The image at which time I hit the keyboard shows after I hit another 2or 3 times.
import hypermedia.video.*;
OpenCV opencv;
void setup() {
size( 100 ,100 );
opencv = new OpenCV( this );
opencv.capture( width, height ); // open video stream