open webcam, read and releas takes about 600ms. Is there a way to speed-up?
1 | initial version |
open webcam, read and releas takes about 600ms. Is there a way to speed-up?
2 | added more info and code snippet |
open webcam, read and releas takes about 600ms. Is there a way to speed-up?speed-up? Using it on Windows 7 with latest java and recent opencv:
VideoCapture webcam = new VideoCapture();
boolean opened = webcam.opened();
if (opened) {
return null;
}
try {
webcam.open(0);
} catch (Exception e) {
return null;
}
if (!webcam.opened()) {
return null;
}
try {
Mat frame = new Mat();
webcam.read(frame);
//do somethinig
webcam.release();
} catch (Exception e) {
null
}
return null;
3 | tags update |
open webcam, read and releas takes about 600ms. Is there a way to speed-up? Using it on Windows 7 with latest java and recent opencv:
VideoCapture webcam = new VideoCapture();
boolean opened = webcam.opened();
if (opened) {
return null;
}
try {
webcam.open(0);
} catch (Exception e) {
return null;
}
if (!webcam.opened()) {
return null;
}
try {
Mat frame = new Mat();
webcam.read(frame);
//do somethinig
webcam.release();
} catch (Exception e) {
null
}
return null;
4 | Update tags. |
open webcam, read and releas takes about 600ms. Is there a way to speed-up? Using it on Windows 7 with latest java and recent opencv:
VideoCapture webcam = new VideoCapture();
boolean opened = webcam.opened();
if (opened) {
return null;
}
try {
webcam.open(0);
} catch (Exception e) {
return null;
}
if (!webcam.opened()) {
return null;
}
try {
Mat frame = new Mat();
webcam.read(frame);
//do somethinig
webcam.release();
} catch (Exception e) {
null
}
return null;