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

TESSDATA_PREFIX seems to be ignored by the compiled program #2

Open
brunoais opened this issue Aug 15, 2018 · 2 comments
Open

TESSDATA_PREFIX seems to be ignored by the compiled program #2

brunoais opened this issue Aug 15, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@brunoais
Copy link

After running (replace [user] with your username)
export TESSDATA_PREFIX=/home/[user]/Downloads/Capture2Text-Prototype/tessdata
if I try to run:
./Capture2Text_CLI --screen-rect "400 200 600 300"
The program outputs:

Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
Unable to initialize OCR language:  "English"
Error, specified OCR language not found.
Installed OCR Languages:
English

Any clues on what I may be doing wrong? I followed the instructions you mention in your README file.
I'm using the latest release.

I'm running on Ubuntu 18 LTS.

@GSam
Copy link
Owner

GSam commented Aug 20, 2018

I don't know what would be required to enable the TESSDATA_PREFIX environment variable to be able to be used.

@GSam GSam added the bug Something isn't working label Aug 20, 2018
@brunoais
Copy link
Author

Oh... Got it. Thanks.

xiaoyifang added a commit to xiaoyifang/Capture2Text that referenced this issue Feb 1, 2022
# This is the 1st commit message:

action:add workflow github

# This is the commit message GSam#2:

action: github workflow

# This is the commit message GSam#3:

action: github workflow

# This is the commit message GSam#4:

action: github workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants