-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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.js can't load language files on deployed server #618
Comments
I have this problem too, I have 2 VPS with Ubuntu 20.04, 1 server is working fine and the other sometimes get this error even though eng.traineddata already exists. I don't know what happened. Both servers have the same code |
@zerosdev As your issue only occurs "sometimes" it is probably related to the caching error discussed in #666. This should be fixed or significantly mitigated in version 4. In short, it looks like |
I have same issue. I guess this component can only work by running on node.js but not pure javascript. |
@314513535 It is entirely possible to load custom traineddata files using JavaScript in browser. If you are having trouble doing so and want support please provide a reproducible example of your issue in the form of a code snippet (that can be run without additional dependencies) or repository. Here is an example of a program using custom training data in browser: https://github.com/scribeocr/scribeocr/blob/master/main.js#L758 |
This seems to be fixed in version 4. |
Describe the bug
Tesseract throws error when running in a deployed VM (ex: "https://vmdev-01:1000/DocScanner").
But works when running on localhost (ex: "https://localhost/DocScanner").
The code and deployment is the same. Both servers are running windows 10, IIS and ASP.NET Core 3.1 and for Frontend i'm using Angular 12.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should work the same as in localhost.
Screenshots
Error Message:
"assets/scripts/tesseract" folder:
"assets/scripts/tesseract/lang-data" folder:
Package.json tesseract versions:
Desktop:
Additional context
Tesseract.js setup code:
The text was updated successfully, but these errors were encountered: