Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tesseract doesn't have any languages installed #31

Closed
ruebot opened this issue Apr 7, 2015 · 3 comments
Closed

Tesseract doesn't have any languages installed #31

ruebot opened this issue Apr 7, 2015 · 3 comments
Assignees

Comments

@ruebot
Copy link
Contributor

ruebot commented Apr 7, 2015

Download some default languages:

@ruebot ruebot self-assigned this Apr 7, 2015
@whikloj
Copy link
Contributor

whikloj commented Apr 7, 2015

Because we have defined the TESSDATA directory as /usr/local/share/tessdata, I found the easiest is to download the files (caching them), copy them to that directory and do.
tar -xf tesseract-ocr-3.02.eng.tar.gz --strip-components 2
That will strip the 2 sub-directory hierarchy in the tar and dump the contents right in tessdata

@whikloj
Copy link
Contributor

whikloj commented Apr 7, 2015

While you are in there, can you modify these lines from

if [ ! -d "$TESSDATA_HOME" ]; then
  mkdir $TESSDATA_HOME
fi

to

if [ ! -d "$TESSDATA_HOME" ]; then
  mkdir $TESSDATA_HOME
  chmod 755 $TESSDATA_HOME
fi

On mine it has 744 for some reason.

@ruebot ruebot closed this as completed in e0b3139 Apr 7, 2015
@ruebot
Copy link
Contributor Author

ruebot commented Apr 7, 2015

Needed cd3659b as a prerequisite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants