I am trying to convert inputframe received in onCameraFrame into greyscale so that i can apply gaussianblur and adaptivethreshold. But moment i create gaussian mat and apply blur it sort of hang does not display any kind of real frame. mGrayMat = new Mat(height, width, CvType.CV_8UC1);
Where as inputFrame received from onCameraFrame . inputFrame.copyTo(mGrayMat); mGaussianMat.create(mGrayMat.size(), mGrayMat.type()); Imgproc.GaussianBlur(mGrayMat, mGaussianMat, new Size(7,7), 0.0);
Not sure is this a right way of doing it ??