bernardorufino / python-tesseract

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

error running on tif file #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When run on the attach file, eurotext.tif got the following error.

Error in fopenTiff: invalid file descriptor
Error in findTiffCompression: tif not opened
Error in pixReadStream: Unknown format: no pix returned
Error in pixGetDimensions: pix not defined
Error in pixGetColormap: pix not defined
Error in pixClone: pixs not defined
Error in pixGetDepth: pix not defined
Error in pixGetWpl: pix not defined
Error in pixGetYRes: pix not defined
Please call SetImage before attempting recognition.Segmentation fault

Original issue reported on code.google.com by oaung...@gmail.com on 12 Dec 2011 at 6:19

Attachments:

GoogleCodeExporter commented 8 years ago
it means that leptonica is not able to open file. Please check you leptonica 
installation

Original comment by zde...@gmail.com on 12 Dec 2011 at 1:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
try with a jpg image... i have check it with jpg image... its working fine...

Original comment by hiran.pe...@gmail.com on 14 Dec 2011 at 8:08

GoogleCodeExporter commented 8 years ago
it works also with attached tiff if your/his/her leptonica installation 
(dependencies) is ok. 

Original comment by zde...@gmail.com on 14 Dec 2011 at 12:37

GoogleCodeExporter commented 8 years ago
Yes It work with other photo type such as jpeg, png,...

How do I solve leptonica dependencies? 

I install leptonica from source.

http://www.leptonica.org/download.html

Original comment by oaung...@gmail.com on 15 Dec 2011 at 6:50

GoogleCodeExporter commented 8 years ago
Tesseract-ocr is now included in the download list
http://code.google.com/p/python-tesseract/downloads/list

Original comment by FreeT...@gmail.com on 3 Feb 2012 at 4:19