-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unable to set langPath to a blob url #965
Comments
The argument
Edit: It looks like this question was answered in #794, however that was for an older version, and the answer may no longer be applicable. Would need to think about whether this is possible with the current interface. |
I wouldn't mind using an older version as long as it supports word-level OCR and it is mostly stable. If it is possible with the newest version I would prefer that, but beggers can't be choosers. Thanks for your help, I've tried doing a bunch of experiments trying to hot replace the code in the minimized file with a blob link to download it locally, but it didn't work. |
The solution linked in #794 works with v4, however no longer works due to the consolidation of the |
Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
Describe the bug
When running tesseract js in the browser, I'd like to pass the language data via a blob URL because of the restrictions of the environment the code will be running on. However, when I pass the URL to langPath it fails to load the file.
To Reproduce
Steps to reproduce the behavior:
Please attach any input image required to replicate this behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Device Version:
Chrome Browser
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: