Well, I would suggest making a replicable case that prove the problem if you want the help. Based on the description you provided nobody can help you (neither charlessw) The problem could be somewhere in your code, in C#, in the tesseract, or even in your environment/OS... You observed the problem => you need to narrow down where is the source of the problem.
Zdenko so 25. 5. 2024 o 12:28 Kassim Papa <kassimp...@gmail.com> napísal(a): > I do not claim anything. > > Thank you for your proposition. We will test that and post on their github > (charlessw, the guy who made the wrapper) > > Stephan weil closed the issue on the github of tesseract saying : > > "The Tesseract for Windows which is provided by UB Mannheim does not have > this issue: it runs always single-threaded because it was built with OpenMP > disabled. You did not say what Tesseract binary and which version you used." > > So I guess you must be right, this is where our effort should go. > > But I didn't even know that, I don't understand all those openmp changes > that have been made. COuld you explain them to me? Since the issue is > closed I cannot talk to stephan weil anymore. > > > Le samedi 25 mai 2024 à 12:12:21 UTC+2, zdenop a écrit : > >> You need to replicate it with the tesseract executable if you want to >> claim it is Tesseract problem.... >> >> Zdenko >> >> >> so 25. 5. 2024 o 12:05 Kassim Papa <kassi...@gmail.com> napísal(a): >> >>> We use a C# wrapper. >>> This .net library found on nugget : >>> https://github.com/charlesw/tesseract >>> >>> >>> >>> Le samedi 25 mai 2024 à 11:14:36 UTC+2, zdenop a écrit : >>> >>>> How did you install tesseract? >>>> >>>> What is the output of `tesseract -v`? >>>> >>>> >>>> Zdenko >>>> >>>> >>>> so 25. 5. 2024 o 11:03 Kassim Papa <kassi...@gmail.com> napísal(a): >>>> >>>>> Current Behavior : >>>>> >>>>> Despite putting omp_thread_limit=1 tesseract still use all cores on my >>>>> machine (i7-7th - windows 10). >>>>> >>>>> We used this (at the beginning of the code) : >>>>> Environment.SetEnvironmentVariable("OMP_THREAD_LIMIT", "1"); >>>>> >>>>> And this ( a batch) : >>>>> @echo off >>>>> set OMP_THREAD_LIMIT=1 >>>>> start "" "path_to_your_application.exe >>>>> >>>>> We have 1 big image Tesseract takes 7 second when we go over it at >>>>> once. >>>>> >>>>> When we divide the image in 4 and run 4 instances of tesseract in >>>>> parallel it take 7 second too : no changes at all. >>>>> >>>>> Expected Behavior : >>>>> >>>>> We should see in the task manager that tesseract only use 1 cores >>>>> >>>>> there should be a significant improvement when running 4 images in >>>>> parallel. Multiple people had success with this method. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "tesseract-ocr" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to tesseract-oc...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/tesseract-ocr/008e9795-877c-4638-af08-0dc7e3af00ecn%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/tesseract-ocr/008e9795-877c-4638-af08-0dc7e3af00ecn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "tesseract-ocr" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to tesseract-oc...@googlegroups.com. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/tesseract-ocr/2ca978b6-0061-425a-aa2e-a7065fa5acc4n%40googlegroups.com >>> <https://groups.google.com/d/msgid/tesseract-ocr/2ca978b6-0061-425a-aa2e-a7065fa5acc4n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tesseract-ocr+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/6479e4ae-c496-4061-971c-c51c15999325n%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/6479e4ae-c496-4061-971c-c51c15999325n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8wzUkXGtvgsokp2C4K-Wp3hxz_ZpPq-qp1zKW7Pq%3DmoRA%40mail.gmail.com.