[tesseract-ocr] Using setImage(byte[],width,height,bpp,bpl) instead of setImage(bitmap) doesn't recognise text.

2014-10-01 Thread Umresh
Hi, I have the byte[] in YUV from the vuforia and i wanted to use that data to perform OCR. It doesn't recognise the text correctly. But when I convert that byte[] to bitmap and use it recognises. I tried the byte[] of the RGB too but it didn't work. this is the snippet. setImage(byte[] ,

Re: [tesseract-ocr] Using setImage(byte[],width,height,bpp,bpl) instead of setImage(bitmap) doesn't recognise text.

2014-10-01 Thread zdenko podobny
After SetImage call (tesseract api) function GetThresholdedImage and save result (leptonica PIX) to disk. If the output is wrong you did not set image data to tesseract correctly (e.g. you need to change SetImage parameters). Zdenko On Wed, Oct 1, 2014 at 7:30 AM, Umresh umr...@myingage.com