Error during using tesseract-ocr

6,997 views
Skip to first unread message

Ivan Mushketik

unread,
Mar 6, 2012, 9:42:27 AM3/6/12
to tesseract-ocr
Hello.

I tried to run tesseract-ocr v 3.02 with the following params:
tesseract phototest.tif output

but received:
Tesseract Open Source OCR Engine v3.02 with Leptonica
Error in findTiffCompression: function not present
Error in pixReadStreamTiff: function not present
Error in pixReadStream: tiff: no pix returned
Error in pixRead: pix not read
Unsupported image type.

I also tried to use png file, but received similar output.

Leptonica and libtiff are libraries installed.
How can I fix this problem?

I am using Ubuntu 11.10

Thank you in advance.

Esteban Bordón

unread,
Mar 6, 2012, 11:49:43 AM3/6/12
to tesser...@googlegroups.com
Hi.

I think that you have to change the extension of the image file. It
have to be .tiff instead .tif.

cheers,
Esteban.

2012/3/6 Ivan Mushketik <ivan.mu...@gmail.com>:

> --
> You received this message because you are subscribed to the Google
> Groups "tesseract-ocr" group.
> To post to this group, send email to tesser...@googlegroups.com
> To unsubscribe from this group, send email to
> tesseract-oc...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/tesseract-ocr?hl=en

Zdenko Podobný

unread,
Mar 6, 2012, 12:14:04 PM3/6/12
to tesser...@googlegroups.com
This is leptonica error message that indicate problem with image support.
If you have version from today, please send output of:
tesseract -v

Zdenko

Ivan Mushketik

unread,
Mar 6, 2012, 12:17:15 PM3/6/12
to tesser...@googlegroups.com
Hello.

I tried to change extension of the file, but it did not help.

2012/3/6 Esteban Bordón <ebo...@gmail.com>

Ivan Mushketik

unread,
Mar 6, 2012, 12:20:52 PM3/6/12
to tesser...@googlegroups.com
Here is my output:
$ tesseract -v
tesseract 3.02
 leptonica-1.68


2012/3/6 Zdenko Podobný <zde...@gmail.com>

zdenko podobny

unread,
Mar 7, 2012, 2:31:57 AM3/7/12
to tesser...@googlegroups.com
On Tue, Mar 6, 2012 at 6:20 PM, Ivan Mushketik <ivan.mu...@gmail.com> wrote:
Here is my output:
$ tesseract -v
tesseract 3.02
 leptonica-1.68

This means your leptonica have no support for image files. For good installation of leptonica you would see something like this:
tesseract 3.02
 leptonica-1.68 (Mar 14 2011, 10:43:03) [MSC v.1500 LIB Release 32 bit]
  libgif 4.1.6 : libjpeg 8c : libpng 1.4.3 : libtiff 3.9.4 : zlib 1.2.5

You must re-install leptonica (and probably before that you have to install devel packages of image libraries)

Ivan Mushketik

unread,
Mar 7, 2012, 1:09:51 PM3/7/12
to tesser...@googlegroups.com
Thank you very much.
I've installed devel packages and used this tutorial:
http://ubuntuforums.org/showthread.php?t=1647350

to install tesseract.

2012/3/7 zdenko podobny <zde...@gmail.com>

Murat Sabuncu

unread,
Jul 7, 2014, 4:24:44 AM7/7/14
to tesser...@googlegroups.com, ivan.mu...@gmail.com
I have the same problem although everything seem to be ok.

Tesseract -v output is :

tesseract 3.02
 leptonica-1.68 (Mar 14 2011, 10:43:03) [MSC v.1500 LIB Release 32 bit]
  libgif 4.1.6 : libjpeg 8c : libpng 1.4.3 : libtiff 3.9.4 : zlib 1.2.5

What might be the reason?

7 Mart 2012 Çarşamba 20:09:51 UTC+2 tarihinde Ivan Mushketik yazdı:

zdenko podobny

unread,
Jul 7, 2014, 12:38:15 PM7/7/14
to tesser...@googlegroups.com
Please provide testing image that cause error.

Zdenko


To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/5df9939d-8a33-4057-99a9-4736669058b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Murat Sabuncu

unread,
Jul 9, 2014, 4:28:14 AM7/9/14
to tesser...@googlegroups.com
I found the problem is the tif image. The following conversion solves the problem

convert test.tif new_test.pbm 
convert new_test.pbm new_test.tif 


Thanks
Murat


--
You received this message because you are subscribed to a topic in the Google Groups "tesseract-ocr" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tesseract-ocr/UEjyyg_j8Xc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tesseract-oc...@googlegroups.com.

To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.

Nalin Linux

unread,
Nov 16, 2016, 5:49:55 AM11/16/16
to tesseract-ocr
I solved this via compiling leptonica(1.73) with libtiff5-dev 

sudo apt-get install libtiff5-dev
cd leptonica-1.73
./configure --with-libtiff
make
sudo make install
Reply all
Reply to author
Forward
0 new messages