Tesseract gotcha – tif works, tiff doesn’t

Written by James McDonald

November 25, 2008

tesseract mytiff.tiff myout
Tesseract Open Source OCR Engine
name_to_image_type:Error:Unrecognized image type:mytiff.tiff
IMAGE::read_header:Error:Can't read this image type:mytiff.tiff
tesseract:Error:Read of file failed:mytiff.tiff
Signal_exit 31 ABORT. LocCode: 3 AbortCode: 3

For some reason tesseract is weird about the tiff extension. It needs to be “filename.tif”

mv mytiff.tiff mytiff.tif
Then you can run tesseract and it will work
tesseract mytiff.tif myout
Tesseract Open Source OCR Engine


Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

PDF Poster

PDF Poster

Start with a wide long image. This is just a screen shot of my desktop. widescreen.png Convert it to postscript using...