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
1 | initial version |
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
2 | No.2 Revision |
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 my Bitmap objects o that it will be compatible with my Mat ?
3 | No.3 Revision |
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 my the type of the Bitmap objects o object so that it will be compatible with my Mat ?