// }
// cvSetImageROI(imageToProject, cvRect(minX, minY, maxX-minX, maxY-minY));
// }
}
try {
videoToProject = new FFmpegFrameGrabber(virtualSettings.projectorVideoFile);
} catch (Throwable t) {
videoToProject = new OpenCVFrameGrabber(virtualSettings.projectorVideoFile);
}
if (videoToProject != null) {
videoToProject.setColorMode(ColorMode.BGR);