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 cannot find the tessdata file for the second language #3635

Closed
oleg-st opened this issue Nov 10, 2021 · 3 comments
Closed

Tesseract cannot find the tessdata file for the second language #3635

oleg-st opened this issue Nov 10, 2021 · 3 comments
Assignees
Milestone

Comments

@oleg-st
Copy link

oleg-st commented Nov 10, 2021

Environment

  • Tesseract Version: 5.0.0-rc1
  • Commit Number: 8b63908
  • Platform: Linux 3.10.0-1127.19.1.el7.x86_64

Current Behavior:

Tesseract cannot find the tessdata file for the second language.

/opt/tesseract5/bin/tesseract /tmp/2021-11-10_12-50-02.png /tmp/1 --oem 1 -l 'rus+eng' 
Error opening data file eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Estimating resolution as 145

Expected Behavior:

Tesseract looks for data for the second language in the same directory as for the first.

Suggested Fix:

It looks like it was broken in this commit d6de055

@stweil stweil added the bug label Nov 10, 2021
@stweil stweil added this to the 5.0.0 milestone Nov 10, 2021
@stweil stweil self-assigned this Nov 10, 2021
@stweil
Copy link
Contributor

stweil commented Nov 10, 2021

Thank for reporting this issue. This is a regression which must be fixed for 5.0.0. I'll have a look.

stweil added a commit that referenced this issue Nov 10, 2021
Modernize also a for loop statement.

Fixes: d6de055 ("Set default language for tesseract only if required")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
@stweil
Copy link
Contributor

stweil commented Nov 10, 2021

This issue is fixed in commit 9091055. Please confirm the fix and close this issue.

@oleg-st
Copy link
Author

oleg-st commented Nov 11, 2021

It works now. Thank you.

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

3 participants