-
-
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
Parallel processing is not working correctly. #884
Comments
This code is written in a way that runs recognition jobs one at a time, despite using a scheduler. The function |
Thankyou for pointing out the error, I'll try resolving this, and close the issue soon |
Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
v5.0.4
Describe the bug
I am running node js v20 and I am trying parallel processing on multiple images at once, but the code assigns the workers linearly, one by one and only a single worker gets used even if i assign 7 of them.
To Reproduce
Steps to reproduce the behavior:
This is the code:
Maybe I have messed up the worker assigning logic.
The code above initiates recognition, and then stores the words and their corresponding confidence value in an array and then finally dumps them into a json file with bbox data for further processing and manipulation.
Expected behavior
Parallel processing running successfully on the images in the folder.
Device Version:
The text was updated successfully, but these errors were encountered: