Closed GoogleCodeExporter closed 8 years ago
VideoInputFrameGrabber.start() needs at the end:
if (getImageWidth() == 0) {
setImageWidth(myVideoInput.getWidth(deviceNumber));
}
if (getImageHeight() == 0) {
setImageHeight(myVideoInput.getHeight(deviceNumber));
}
Original comment by david.cr...@infotrek.net
on 30 Jun 2011 at 7:49
This may work fine for `FFmpegFrameGrabber` and `VideoInputFrameGrabber`, but
it does not work for `OpenCVFrameGrabber`. Some devices may also change image
resolution at any time. The only reliable way to get the width and height is
simply to take the width and height of the images you get from `grab()`.
Original comment by samuel.a...@gmail.com
on 1 Jul 2011 at 3:48
Original issue reported on code.google.com by
david.cr...@infotrek.net
on 30 Jun 2011 at 6:26