failure of PSM --1 in C++ API

25 views
Skip to first unread message

Aditya Aggarwal

unread,
Jan 14, 2022, 12:31:35 AM1/14/22
to tesseract-ocr
Hi Everyone

I was trying to use the PSM 1 option that is Automatic Page Segmentation with Orientation and Script Detection. (OSD).

It works fine from terminal using --psm 1 arguemnt. It detects text correctly from a 90 degree rotated image.
But when I try the same using C++ API using api>SetPageSegMode(tesseract::PSM_AUTO_OSD); It does not works the same way. It produces some bizzare results.

Can someone suggest why this happens. 

Thanks 
Aditya Aggarwal

Zdenko Podobny

unread,
Jan 15, 2022, 1:57:13 PM1/15/22
to tesser...@googlegroups.com
"Terminal" is use the same API (library), so you are doing something else than tesseract executable. 
Read the source or provide a test case (code) including an image for reproducing the problem.

Zdenko


pi 14. 1. 2022 o 6:31 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/1f66706d-353b-4d5d-aeab-199eac69754dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages