Capture2Text icon indicating copy to clipboard operation
Capture2Text copied to clipboard

TESSDATA_PREFIX seems to be ignored by the compiled program

Open brunoais opened this issue 7 years ago • 2 comments

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.

brunoais avatar Aug 15 '18 18:08 brunoais

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

GSam avatar Aug 20 '18 04:08 GSam

Oh... Got it. Thanks.

brunoais avatar Aug 20 '18 06:08 brunoais