jacklicn / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

name_to_image_type:Error:Unrecognized image type:input.jpg #583

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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)

Original issue reported on code.google.com by nfhm2k on 22 Nov 2011 at 10:36

GoogleCodeExporter commented 9 years ago
please report this to packager(rpmforge). This is problem of how packager 
compiled tesseract.

Original comment by zde...@gmail.com on 22 Nov 2011 at 11:47

GoogleCodeExporter commented 9 years ago
https://github.com/repoforge/rpms/issues/85

Original comment by nfhm2k on 22 Nov 2011 at 11:50