Bug #3553 JavaCameraView frame format and cvtColor format inconsistency fixed.

This commit is contained in:
Alexander Smorkalov 2014-03-28 04:56:31 +04:00
parent a1d151924d
commit d17740ec87

View File

@ -288,7 +288,7 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb
} }
public Mat rgba() { public Mat rgba() {
Imgproc.cvtColor(mYuvFrameData, mRgba, Imgproc.COLOR_YUV2BGR_NV12, 4); Imgproc.cvtColor(mYuvFrameData, mRgba, Imgproc.COLOR_YUV2RGBA_NV21, 4);
return mRgba; return mRgba;
} }