Tesseract crashes while converting image on win7 machine

237 views
Skip to first unread message

Kristaps

unread,
Oct 18, 2011, 11:28:03 AM10/18/11
to tesseract-ocr
Can someone please tell me if there is anything wrong with this
particular image?
http://www.mediafire.com/?nol2h4oppycii0p
Ive installed tesseract 3.01 on win7 machine. First i tried to read
phototest.tif from tessdata folder and got result txt file. But when i
am trying to read my a.tif i get "tesseract has stopped working"
message.
The command i am using is: tesseract a.tif aresult -l eng

Any help will be apriciated.

zdenko podobny

unread,
Oct 18, 2011, 12:45:56 PM10/18/11
to tesser...@googlegroups.com
unsupported image type.
On windows only debug version of Leptonica library produces error messages to terminal (e.g. you should build tesseract against debug version of leptonica if you want to see error messages produced by leptonica). Have a look at [1].

On linux I see this:

Tesseract Open Source OCR Engine v3.01 with Leptonica
Error in pixReadFromTiffStream: spp not in set {1,3,4}
Error in pixReadStreamTiff: pix not read
Error in pixReadStream: tiff: no pix returned
Error in pixRead: pix not read
Unsupported image type.



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

Kristaps

unread,
Oct 19, 2011, 4:35:13 AM10/19/11
to tesseract-ocr
It look like there are problems with either reading tif image with
tesseract or in image conversion process with ImageMagick.
The image is generated from pdf file and is cropped. I changed from
tif to png format and it looks like the problem is solved.

On Oct 18, 7:45 pm, zdenko podobny <zde...@gmail.com> wrote:
> unsupported image type.
> On windows only debug version of Leptonica library produces error messages
> to terminal (e.g. you should build tesseract against debug version of
> leptonica if you want to see error messages produced by leptonica). Have a
> look at [1].
>
> On linux I see this:
>
> Tesseract Open Source OCR Engine v3.01 with Leptonica
> Error in pixReadFromTiffStream: spp not in set {1,3,4}
> Error in pixReadStreamTiff: pix not read
> Error in pixReadStream: tiff: no pix returned
> Error in pixRead: pix not read
> Unsupported image type.
>
> [1]http://code.google.com/p/leptonica/issues/detail?id=42&can=1
>
Reply all
Reply to author
Forward
0 new messages