Did you try have a look at https://github.com/tesseract-ocr/tesseract/wiki/APIExample#example-of-iterator-over-the-classifier-choices-for-a-single-symbol ?
PS: I am not sure how it works with 4.00, but it in 3.0x era it provided alternative option for symbols... Zdenko st 2. 1. 2019 o 7:56 Daniel Rembiszewski <gilth...@gmail.com> napĂsal(a): > Hey, > I have a use-case where I have a way to detect when a specific word is > definitely wrong (can't appear in specific contexts). Mostly useful for > numbers, where 8 and 0 are often confused. > I would like to display the next best option given by tesseract in this > case. > > Is there a way to get a descending list of top X options, with their > confidences, using the programmatic API? > > -- > 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 post to this group, send email to tesseract-ocr@googlegroups.com. > Visit this group at https://groups.google.com/group/tesseract-ocr. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/b07a5eda-c95c-426b-8786-b1206f172775%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/b07a5eda-c95c-426b-8786-b1206f172775%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to tesseract-ocr@googlegroups.com. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8xnU32ZsVdC3krCxTza-eGkj-9q4zQQbU8gfjCt%3D%3D%3D6%2Bw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.