Replies: 1 comment 3 replies
-
Please provide a reproducible example that can be easily run on other systems. This means either (1) a repo that can be cloned and run easily or (2) a snippet that can be pasted into JSFiddle (or a similar environment), along with any necessary image inputs (if this only happens for specific images). While this OP contains code, it does not look like it can be run by others without modification. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am experiencing an issue with Tesseract.js while trying to recognize text from a cropped image. The process stops after certain console logs, and the text recognition does not complete.
Issue:
The code stops executing after logging console.log(7). The createWorker part seems to be the point where the process halts. Despite adding a logger to monitor progress, it does not proceed beyond the worker creation.
Steps to Reproduce:
Load an image.
Crop the image to a specific area.
Try to recognize text from the cropped image using Tesseract.js.
Expected Behavior:
The OCR process should complete successfully, and the recognized text should be set to the state variable recognizedText.
Actual Behavior:
The process stops after certain console logs, and the text recognition does not complete. The worker does not seem to load or initialize correctly.
Environment:
Tesseract.js version: ^5.1.0
Browser: Firefox Developer Edition
Operating System: Windows 11
I would appreciate any insights or suggestions on what might be causing this issue and how to resolve it. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions