From d17740ec87a8c443b649dfece33ed85bea7ac897 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Fri, 28 Mar 2014 04:56:31 +0400 Subject: [PATCH] Bug #3553 JavaCameraView frame format and cvtColor format inconsistency fixed. --- modules/java/generator/src/java/android+JavaCameraView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/java/generator/src/java/android+JavaCameraView.java b/modules/java/generator/src/java/android+JavaCameraView.java index 0acd85c19..c29ba2b6f 100644 --- a/modules/java/generator/src/java/android+JavaCameraView.java +++ b/modules/java/generator/src/java/android+JavaCameraView.java @@ -288,7 +288,7 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb } public Mat rgba() { - Imgproc.cvtColor(mYuvFrameData, mRgba, Imgproc.COLOR_YUV2BGR_NV12, 4); + Imgproc.cvtColor(mYuvFrameData, mRgba, Imgproc.COLOR_YUV2RGBA_NV21, 4); return mRgba; }