Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Run Tesseract using more than 4 threads ? #1600
I am using tesseract-4.0.0-beta.1, and I have a ARM server with 96 CPU cores/threads.
I have tried to modify the parameter "kNumThreads" in the source code : lstm/fullyconnected.cpp, also num_threads() in ccmain/par_control.cpp and re-compiler tesseract. But the execution time is still almost the same. I have searched many web pages for the answer but none of them is satisfied.
Any suggestion and advice is welcome and appreciated.
Short answer: No
As per FAQ
In your case, I would simply split the document/image into multiple files and use GNU Parallel to run multiple instances of tesseract with multithreading disabled.
@KyleBruene What is the difference between GNU parallel and multiprocessing module of python, and which might be faster?