If you followed someone tutorial you should complain to its author ;-).
I am not familiar with Mac, but on linux you can do it (in command) this
way:
export TESSDATA_PREFIX=/usr/loca/share/
Maybe it is similar on Mac. Try to google how to set environment variable
on Mac.
Zdenko
2018-04-10 13
Thank you for your reply. I used the command following this guide
https://www.youtube.com/watch?v=QhJiOCwz-_I -- if it's wrong, then I will
not follow this guide anymore.
Yes, I have Fraktur.traineddata in usr/loca/share/tessdata
I do not know how to change "the TESSDATA_PREFIX environment var
First of all: your command if wrong. It should be constructed this way:
tesseract image output [options]
See tesseract --help for more details.
Next: error message is clear:
Error opening data file ./tessdata/Fraktur.traineddata
You (or your installation) instructed to look for trainneddata
I downloaded deu_frak.traineddata Fraktur.traineddata and frk.traineddata
to usr/loca/share/tessdata. But when using
$ tesseract file.tiff -l Fraktur Fraktur
I get the error message
Error opening data file ./tessdata/Fraktur.traineddata
Please make sure the TESSDATA_PREFIX environment variable
4 matches
Mail list logo