Closed asdf1280 closed 2 years ago
True, that would really be a way to speed up text recognition. I measured the time and it took 381ms to initialize Tesseract. I have to see how I implement your suggestion
I have changed it in the "Tesseract_improvement" branch and I must say it is a big improvement in speed. The recognition is much faster now. Thank you for pointing it out!
Is it ok if I mention your username in the changelog for this improvement?
fine
The TesseractEngine is initialized every time the function is run. TesseractEngine class prepares for every operation related to screen reading and it wouldn't be appropriate to initialize it every time. Consider initializing TesseractEngine on startup and saving it as a class member variable.