Closed GoogleCodeExporter closed 9 years ago
Have something to add: I tried the same command with a test file (this time a
.jpg) which worked fine being in the same directory as the .tif. So I'm
thinking maybe there is a problem with the handling of .tif files? Or maybe a
problem in the conversion to .tif using imagemagick(even though it gave me no
errors).
Original comment by claeshj...@gmail.com
on 23 May 2014 at 9:59
Error message is "Cannot open input file" is coming for your OS - is has
nothing to do with tesseract or image format. E.g. Windows 8 was not able to
open file for reading... You are the only one who find why.
tiff and tif are equivalents (as jpg and jpeg).
leptonica (library that is used for image opening) is able to work with most of
tif format, but it would report other error message than "Cannot open input
file" if there is problem with image format.
IMO using spaces in filename is very bad habit especially if the filename is
used in console.
Original comment by zde...@gmail.com
on 24 May 2014 at 2:25
Issue 1221 has been merged into this issue.
Original comment by zde...@gmail.com
on 28 May 2014 at 1:30
We have run into the same problem.
It seems the issue has something to do with imagemagick. For some reason the
generated tiff cannot be read by tesseract.
I tried opening the image in a viewer (irfanview), which works fine. I then
saved the image again using irfanview, with the default options. This resulted
in a tiff half the size, which could be read by tesseract.
So I'm guessing there is something exoctic in the way imagemagick save's a
tiff. Maybe this can be solved by changing imagemagick settings, but i'm not
sure exactly how.
Original comment by dimitri....@gmail.com
on 10 Apr 2015 at 8:04
Original issue reported on code.google.com by
claeshj...@gmail.com
on 23 May 2014 at 12:03