I don't have the answers to your questions but we pass a binary image
to Tesseract like you do, with values set to either 0 or 255.
Tesseract will threshold the image so we experiment with modifying
Tesseract to short-circuit the thresholding for performance reasons -
but then realized the performance saving is minimal in this case and
we are not doing that any longer.

Patrick

On May 5, 6:48 am, Mike <[email protected]> wrote:
> Hi again,
> * Binary images of 1 bit per pixel may also be given but they must be
> * byte packed with the MSB of the first byte being the first pixel,
> and a
> * 1 represents WHITE. For binary images set bytes_per_pixel=0.
> This is from function TesseractRect()
> Can I also use this on SetImage()?
> Reason is that I already have a gray scale image (1 byte per pixel)
> but the image only holds 2 values, white (255) and black (0).
> I was wondering if in my case tesseract still converts it to a binary
> image or does it use the grey scale directly.
> If it makes a binary image first can I tell it not to do so or do I
> have call the SetImage function in binary mode?
> And in binary mode will one byte be interpreted as 8 pixels?
> Regards,
> Mike

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to