Downgrade Tess 5 to 3 for performance boost?

352 views
Skip to first unread message

Evon O Smith

unread,
Apr 15, 2022, 7:31:04 PM4/15/22
to tesseract-ocr
I'm experiencing very slow performance since I upgraded from Tess 3 to Tess 5.  Should i downgrade to get better performance?  I won't be converting my handwriting anyway (since Tess is terrible at it) so it shouldn't be an issue right?

Zdenko Podobny

unread,
Apr 16, 2022, 2:59:57 AM4/16/22
to tesser...@googlegroups.com
Hello,

you are not very specific (OS, HW, tesseract version, language data type, how did measure performance, etc), so it is difficult to help you. Seems like you skipped reading docs and searching the issue tracker, so I would suggest solving your problem with reading at least this information 

Zdenko


so 16. 4. 2022 o 1:31 Evon O Smith <strivingf...@gmail.com> napísal(a):
I'm experiencing very slow performance since I upgraded from Tess 3 to Tess 5.  Should i downgrade to get better performance?  I won't be converting my handwriting anyway (since Tess is terrible at it) so it shouldn't be an issue right?

--
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/5151bdcd-fab8-42f3-a99c-ac7e34a1a1ean%40googlegroups.com.

Evon O Smith

unread,
Apr 16, 2022, 9:06:26 AM4/16/22
to tesseract-ocr
Thanks I did read those posts before posting.  I will go through them again.  I don't know how to run a benchmark but I am running Tess on Opensuse Leap 15.3 on a DL320e Gen 8 server.

Zdenko Podobny

unread,
Apr 16, 2022, 1:23:06 PM4/16/22
to tesser...@googlegroups.com
What processor is there? Does it have support for Advanced Vector Extensions [1] , SSE etc?


Zdenko


so 16. 4. 2022 o 15:06 Evon O Smith <strivingf...@gmail.com> napísal(a):

Evon O Smith

unread,
Apr 18, 2022, 9:24:21 AM4/18/22
to tesseract-ocr
This is the processor I have.  Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz.  According to this site https://www.techpowerup.com/cpu-specs/xeon-e3-1220-v2.c1033, it supports AVE. 

Zdenko Podobny

unread,
Apr 18, 2022, 12:29:16 PM4/18/22
to tesser...@googlegroups.com
Well according to that information it should support AVX and SSE4.2, so performance should be similar to 3.x...
Can you provide the output of "tesseract -v" from that server?

Zdenko


po 18. 4. 2022 o 15:24 Evon O Smith <strivingf...@gmail.com> napísal(a):

Evon O Smith

unread,
Apr 18, 2022, 1:12:14 PM4/18/22
to tesseract-ocr
Here's the output of 'tesseract -v'

` tesseract 5.1.0
leptonica-1.78.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 1.0.3
Found AVX
Found SSE4.1
Found OpenMP 201511` 

Zdenko Podobny

unread,
Apr 18, 2022, 1:27:36 PM4/18/22
to tesser...@googlegroups.com
So you should get the same/similar speed of recognition as with 3.x version based on our test.
Maybe try to use OMP_THREAD_LIMIT=1 as most of openmp negative experience comes from linux.

Zdenko


po 18. 4. 2022 o 19:12 Evon O Smith <strivingf...@gmail.com> napísal(a):

Evon O Smith

unread,
Apr 18, 2022, 2:02:50 PM4/18/22
to tesseract-ocr
I get this error when I use that command read_params_file: Can't open OMP_THREAD_LIMIT=1

Is it safe to assume I don't have openmp installed?

Zdenko Podobny

unread,
Apr 18, 2022, 2:32:14 PM4/18/22
to tesser...@googlegroups.com
You wrote:
Found OpenMP 201511

Zdenko


po 18. 4. 2022 o 20:02 Evon O Smith <strivingf...@gmail.com> napísal(a):

Evon O Smith

unread,
Apr 18, 2022, 4:37:45 PM4/18/22
to tesseract-ocr
Don't know what did it but I updated my system and installed a package called openmpi and it works light lightning now.

Zdenko Podobny

unread,
Apr 19, 2022, 9:09:54 AM4/19/22
to tesser...@googlegroups.com
Good to hear. BTW:  OMP_THREAD_LIMIT is the environment variable and not the tesseract parameter.

Zdenko


po 18. 4. 2022 o 22:37 Evon O Smith <strivingf...@gmail.com> napísal(a):
Reply all
Reply to author
Forward
0 new messages