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

Comments

@ibr123
Copy link

@ibr123 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

This comment has been minimized.

Copy link
Contributor

@amitdo 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
Projects
None yet
2 participants
You can’t perform that action at this time.