WebbyBoy Member Licensed User Longtime User Oct 5, 2013 #1 Hi, I'm trying to create an app using Tesseract OCR. By default it only takes ARGB_8888 format pics, but my camera takes ARGB_565 Is there a way of converting this is B4A. I've tried to use the bitmapExtended libs & compress, but the output is not writing correctly (or at all). Is there an easy way of doing this?
Hi, I'm trying to create an app using Tesseract OCR. By default it only takes ARGB_8888 format pics, but my camera takes ARGB_565 Is there a way of converting this is B4A. I've tried to use the bitmapExtended libs & compress, but the output is not writing correctly (or at all). Is there an easy way of doing this?
Erel B4X founder Staff member Licensed User Longtime User Oct 6, 2013 #2 Have you tried this library: http://www.b4x.com/android/forum/th...xtended-safer-loadbitmapsample.19110/#content Upvote 0
Have you tried this library: http://www.b4x.com/android/forum/th...xtended-safer-loadbitmapsample.19110/#content
WebbyBoy Member Licensed User Longtime User Oct 8, 2013 #3 Sorry, I'm pretty new to B4A. I see the references to the 565 set, but not how to convert it. Any chance of a cheeky example? Upvote 0
Sorry, I'm pretty new to B4A. I see the references to the 565 set, but not how to convert it. Any chance of a cheeky example?
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2013 #4 I think that you will need a different library. You should create a mutable bitmap with: http://www.b4x.com/android/help/bitmapextended.html#bitmapextended_createbitmap2 Library: http://www.b4x.com/android/forum/threads/bitmapextended-library.11689/#content You will then use a Canvas to draw the original bitmap to this one. Upvote 0
I think that you will need a different library. You should create a mutable bitmap with: http://www.b4x.com/android/help/bitmapextended.html#bitmapextended_createbitmap2 Library: http://www.b4x.com/android/forum/threads/bitmapextended-library.11689/#content You will then use a Canvas to draw the original bitmap to this one.