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 couldn't load any languages #462

Closed
cheeck97 opened this issue Jun 23, 2020 · 3 comments
Closed

Tesseract couldn't load any languages #462

cheeck97 opened this issue Jun 23, 2020 · 3 comments

Comments

@cheeck97
Copy link

Hello, I recently encountered such a problem that a tesseract cannot load / initialize * .traineddata.
image
But by the time I start receiving this message, the tesseract already recognized about 50 iterations in 1-2 hours. *.traineddata is in two places: in the root of the launch and in the TESSDATA_PREFIX environment (/usr/local/share/tessdata).
image
If I reload * .traineddata, the problem will be solved only temporarily
Help me solve the problem please

OS : Ubuntu 18.04.3
NodeJS: 13.8.0
NPM: 6.13.6
Tesseract.js: 2.1.1

@Balearica
Copy link
Member

Balearica commented Sep 18, 2022

If this issue is still active, can you post a snippet of the code your were running and/or link to the code in a repo? There seems to be similar issues stemming from multiple processes writing to the same .trainneddata file, so I'm wondering if this is related (see #576).

@Balearica
Copy link
Member

Balearica commented Sep 18, 2022

I was able to reproduce this bug in version 2, but not the current version (v3). If this issue is still active, please confirm you still encounter this bug in the latest version and provide a reproducible example. Other users confirmed still an issue in v3.

@Balearica
Copy link
Member

I implemented changes that should resolve this in Version 4. Specifically, the cache used to be overwritten with each recognize job, which I believe lead to it being randomly corrupted seemingly at random (often after hours of recognition jobs). If anybody encounters this error using v4, please open a new issue.

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

No branches or pull requests

2 participants