Ask Your Question

a242133's profile - activity

2013-09-13 02:39:09 -0600 commented question capture image to slow with java

Never used c++, so it gonna take a while

2013-09-09 14:22:57 -0600 commented question capture image to slow with java

No, it doesn't help.

2013-09-06 10:45:26 -0600 commented question capture image to slow with java

@Monster You're right. I did add more information

2013-09-06 10:44:20 -0600 received badge  Editor (source)
2013-09-05 13:54:56 -0600 asked a question capture image to slow with java

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;