On 18/11/2015 05:32, Jonathan Warrick wrote:
I have written a script that utilizes Tesseract to extract simple text
from a |.tif| file, which works perfectly as expected when using OSX,
but does not seem to work at all when I try and run the command on a
Windows machine (Windows 7; OS of machine it will eventually be run on
unknown currently). The image is very straight-forward and has no
problem being interpreted using the command |tesseract tmp.tif out -psm
7| on OSX.
On Windows, I have installed Tesseract 3.02 and tried to run this same
command; after prompting me for permission to run, the command executes
and outputs a file, but it is completely empty (0 bytes). The other
strange thing I've noticed is that there is no output that gets printed
to |STDOUT|when running on Windows; this line always outputs on OSX:
|Tesseract Open Source OCR Engine v3.02.02 with Leptonica|.
Any ideas what's going on? The file is exactly the same, so I don't see
how it could be related to image quality. Any help is much appreciated!
No idea, may be some permission issue on the directory.
However using the cygwin package from Cygwin Terminal it works fine:
$ tesseract tmp.tif out -psm 7
Tesseract Open Source OCR Engine v3.04.00 with Leptonica
$ cat out.txt
90
Regards
Marco
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
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/564C52D8.2020806%40gmail.com.
For more options, visit https://groups.google.com/d/optout.