What is the correct way to convert a Mat to a Bitmap ?
I am working with OpenCV Android, I need to use a Java OCR library that works on bitmaps. Please, how can I convert my RGBA Mat (which by the way comes from Mat org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame.rgba()) to a Bitmap ? Thanks
EDIT : I think I found the answer in the Utils class. But how to properly initialize the type of the Bitmap object so that it will be compatible with my Mat ?