Anderstanding of the frame Format on Android

asked 2016-08-09 10:22:00 -0600

hterrolle gravatar image

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.

edit retag flag offensive close merge delete

Comments

I am surprise that nobody know how OpencV work on android. Many million of smartphone and OpenCv does not care of Android. I am surprised with this stratégie.

hterrolle gravatar imagehterrolle ( 2016-08-10 05:35:14 -0600 )edit

It look like nobody can answer why Java OpenCL on android crash using ARGB_8888

So the question very simple.

Can we use ARGB_8888 with Opencl or not. It lokk like not but it would be nice to be sure.

does openCL support 32 bit format.

hterrolle gravatar imagehterrolle ( 2016-08-17 06:52:22 -0600 )edit