I will try to simplify my problem. Lets say i just want to see grayscale images using camera, i do it this way:
public Mat onCameraFrame(CvCameraViewFrame inputF
This is super duper old but I saw it so many times while searching. I solved my issue by using
Imgcodecs.imwrite(fileName,mRgba);
instead of
javaCameraView.takePicture(fileName);
in my onTouch method.