bpp = Integer.parseInt(get(prop, "video.bpp", "2"));
switch (get(prop, "video.format", "").toUpperCase()) {
case "YUYV":
- format = Imgproc.COLOR_YUV2RGB_YUYV;
+ format = Imgproc.COLOR_YUV2BGR_YUYV;
break;
case "YVYU":
- format = Imgproc.COLOR_YUV2RGB_YVYU;
+ format = Imgproc.COLOR_YUV2BGR_YVYU;
break;
default:
- format = Imgproc.COLOR_YUV2RGB_UYVY;
+ format = Imgproc.COLOR_YUV2BGR_UYVY;
}
crop = new CropConfiguration(prop);
}