Valerio Messina wrote:
can you post the value of TESSDATA_PREFIX environment variable:

echo $TESSDATA_PREFIX

it is EMPTY.


and the directory containing "eng.traineddata" file

$ find /c/msys64/ -name "*traineddata"
/c/msys64/mingw64/share/tessdata/eng.traineddata
/c/msys64/mingw64/share/tessdata/ita.traineddata
/c/msys64/mingw64/share/tessdata/osd.traineddata


As you see the *.traineddata files live in \msys64\mingw64\share\tessdata\ AND NOT in \msys64\mingw64\bin\tessdata\

I did the same test on WSL and there it works fine. Notice that even in WSL

echo $ TESSDATA_PREFIX
EMPTY

So I think TESSDATA_PREFIX value does not matter. I think the tesseract packages have built wrong. Maybe TESSDATA_PREFIX should be defined at build time...


Il 05/08/2017 02:03, Angelo Graziosi ha scritto:
$ pacman -Ss tessera | grep install
mingw64/mingw-w64-x86_64-tesseract-data-ita 3.04.00-1 (tesseract-data) [installato]
mingw64/mingw-w64-x86_64-tesseract-ocr 3.05.01-1 [installato]

$ tesseract -l ita -psm 3 foo-0001.tmppage.tiff foo-0001.tmppageocr pdf Error opening data file \msys64\mingw64\bin\tessdata/ita.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
Failed loading language 'ita'
Tesseract couldn't load any languages!
Could not initialize tesseract.

$ tesseract -psm 3 foo-0001.tmppage.tiff foo-0001.tmppageocr pdf
Error opening data file \msys64\mingw64\bin\tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
Could not initialize tesseract.


It seems that 'tesseract' package is not working..

Please, fix or remove it. It does not make sense to continue to have a no-working package in the distro..

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to