Tesseract gotcha – tif works, tiff doesn’t

Written by James McDonald

November 25, 2008

Problem
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

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

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

0 Comments

Submit a Comment

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

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...

Scribus to PDF Print

Just using Scribus to design and print some lapel cards Regarding Scribus - It seems that the stable version will not...