You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: