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 Multiple-Threading Issue #1019

Closed
ibr123 opened this issue Jul 3, 2017 · 1 comment
Closed

Tesseract Multiple-Threading Issue #1019

ibr123 opened this issue Jul 3, 2017 · 1 comment
Labels

Comments

@ibr123
Copy link

ibr123 commented Jul 3, 2017

Hi,

I am trying to run multiple concurrent tesseract processes but it seems tesseract is deadlocking and the processes never returns.

I am testing tesseract 4.0, running it from a multi-threaded Java service. The service runs 5 threads and each thread initiates a single tesseract process. When multiple processes of tesseract are running at the same time, all processes hang indefinitely, they never exit nor write anything to the output file. I tried to set a 2 minute timeout for the tesseract process and destroy it afterwards but that complicated the issue as it seems tesseract spawns its own child processes and those remain running and never return. I tried waiting for a full hour and the processes never exited and htop was showing me all cores have 100% of their power consumed by tesseract.

The command is: sudo bash -c tesseract image_list results -l lang -c preserve_interword_spaces=1 --tessdata-dir ./tessdata --oem 1

@amitdo
Copy link
Collaborator

amitdo commented Jul 3, 2017

See #984 #961 #898

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

No branches or pull requests

2 participants