Page Segmentation Modes in Tesseract C++ API

509 views
Skip to first unread message

Aditya Aggarwal

unread,
Jan 13, 2022, 6:01:01 AM1/13/22
to tesseract-ocr
Hi Everyone
I have come across the differnt PSM modes available in tesseract which are quite easy to use from the terminal by specifying --psm 0-13.
I didnt find much documentation for the same in C++ API. I could find that I need to use something like api->SetPageSegMode(tesseract::PSM_AUTO_OSD) for psm 1. But my issue what is the syntax of other PSMs instead of PSM_AUTO_OSD. To be particular I am looking for PSM 4 syntax.

Thanks 
Aditya Aggarwal

Zdenko Podobny

unread,
Jan 13, 2022, 6:04:16 AM1/13/22
to tesser...@googlegroups.com

št 13. 1. 2022 o 7:00 Aditya Aggarwal <aditya.ag...@gmail.com> napísal(a):
--
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/13c0e1e7-db4a-43f8-b11b-43b5ad2e8f1an%40googlegroups.com.

Aditya Aggarwal

unread,
Jan 13, 2022, 6:07:50 AM1/13/22
to tesser...@googlegroups.com
Thanks, Zdenko!

You received this message because you are subscribed to a topic in the Google Groups "tesseract-ocr" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tesseract-ocr/-EmLjGcmJI4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8wBffrk4Tc9daGmcw3NWuf%3D4VB%3D7uxe%2BDfiUsrLAgoBhA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages