-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Enabling openmp leads to 10x performance regression on mingw-w64 #2035
Comments
Your approach is wrong: if something does not work for you it should be turn off? Please try to search before you post issue. Public testing of version 4 last 2 years some there must be more info experiences that yours... e.g: |
Missing info:
There is a tesseract binary for MingW-w64, prepared by @stweil. The old engine is still available in 4.0.0. |
We're building it native on Windows as part of msys2: https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-tesseract-ocr/PKGBUILD (with autotools). This example used the stock |
Is there a benchmarking C++ program that I can link with my build to diagnose the performance? |
Environment
Problem
Updated the R bindings from Tesseract 3 to 4 on Windows and MacOS. However on Windows I noticed an enormous performance regression. Basic OCR examples that took 1sec before now took over 10 sec.
I noticed that the default was now to build with OpenMP which was not the case in Tesseract 3. I was able to solve the problem by rebuilding with
--disable-openmp
. Perhaps that should be the default on WindowsThe text was updated successfully, but these errors were encountered: