Skip to content

TESSDATA_PREFIX environment variable issue #4

Description

@hamzarezgui

Hi,

I added "TESSDATA_PREFIX" environment variable into Intelij to the the parent directory of your "tessdata" directory but I have the folwinf issue :

`TESSDATA_PREFIX: C:\Users\hamza\IdeaProjects\check-rendez-vous\src\main\resources

Exception in thread "main" java.lang.IllegalStateException: Could not initialize tesseract.
at org.example.CaptchaSolver.(CaptchaSolver.java:73)
at org.example.CaptchaSolver.(CaptchaSolver.java:60)
at org.example.App.main(App.java:23)
Error opening data file /C:/Users/hamza/IdeaProjects/check-rendez-vous/target/classes/tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!

Process finished with exit code 1`

Any help please ?

Thanks.

Hamza

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions