Tesseract gotcha – tif works, tiff doesn’t

Problem tesseract mytiff.tiff myout Tesseract…

Login

Blog History

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 *

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.