"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.aggarwal...@gmail.com> napĂsal(a): > 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 > > -- > 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/1f66706d-353b-4d5d-aeab-199eac69754dn%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/1f66706d-353b-4d5d-aeab-199eac69754dn%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/CAJbzG8yEvdx%3DX1-rtFEjar5TkFR482O%2B1CqoxoP9xaa%3DpYy4QQ%40mail.gmail.com.