repoforge/rpms — Issue #85: tesseract: name_to_image_type:Error:Unrecognized image type:input.jpg
Author: hm2k
Created: 2011-11-22 11:50:09+00:00
State: open

Prerequisites
=============

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.i386.rpm
rpm -i rpmforge-release-0.5.2-2.el4.rf.i386.rpm

yum install tesseract --enable=rpmforge
yum install tesseract-en --enable=rpmforge

wget http://i.imgur.com/jtrr2.jpg -O input.jpg

Error
=====

root@svr [~]# tesseract input.jpg output.txt
Tesseract Open Source OCR Engine
name_to_image_type:Error:Unrecognized image type:input.jpg
IMAGE::read_header:Error:Can't read this image type:input.jpg
tesseract:Error:Read of file failed:input.jpg
Segmentation fault (core dumped)

Debug
=====

root@svr [~]# uname -a
Linux svr.example.com 2.6.9-023stab040.1-smp #1 SMP Tue Jan 16 00:54:22 MSK 2007 i686 i686 i386 GNU/Linux
root@svr [~]# cat /etc/redhat-release
CentOS release 4.9 (Final)

Also see
=======
http://code.google.com/p/tesseract-ocr/issues/detail?id=583