Hi,
I have been using the OpenCV library to adapt some of my examples that used JMyron (OpenCV does background subtraction and thresholding) but I've run across a problem:
OpenCV maximum framerate seems to be 15 fps!
I've simplified my code to this:
Code:
import hypermedia.video.*;
OpenCV opencv;
void setup() {
opencv = new OpenCV( this );
opencv.capture(320,240);
}
void draw () {
opencv.read();
println(frameRate);
}
and compared it to this:
Code:
import JMyron.*;
JMyron m;
void setup() {
m = new JMyron();
m.start(320, 240);
}
void draw () {
m.update();
println(frameRate);
}
I tested three different webcams (2 brands) and the OpenCV version got only about 12-15 fps while the JMyron version got 25-35 fps.
Anyone knows why this is happening and if there's a way to make OpenCV faster?
I was really looking forward to using OpenCV since it has a lot of code I used to do manually because I thought it would be faster...
thanks