1 | initial version |
I recommend you to pass to native code and return Mat
objects. Mat
object has Mat.nativeObj
that holds pointer to native OpenCV Mat
object you can pass it to native methods. After that you can call Utils.matToBitmap()
method from OpenCV to convert OpenCV Mat object to Android Bitmap. See tutorial-2-mixedprocessing for details.