1) we get the frame in RGBA format via inputFrame.rgba();
2) we must transform to Imgproc.COLOR_RGB2GRAY to process Imgproc methode.
3) We got a destination Mat in output of a lot of method. Witch are in the COLOR_RGB2GRAY
How to come back from Dest output to the RGBA format.
I use
Bitmap bitmap = Bitmap.createBitmap(cols, rows, Bitmap.Config.ARGB_8888);
Utils.matToBitmap(rgba, bitmap);
But if i do Utils.matToBitmap(dst output, bitmap); everything crash.
It would be nice to at least explain the user how transform OpencV format to Android One. It is the minimum.
I hope that i will get the answer. If not there is no use of OpenCV on Android. It is not very clear how to use it. And specially the release method. We do not anderstand why we need to use it.