Tesseract choices

87 views
Skip to first unread message

Theis Borg

unread,
Apr 23, 2022, 5:57:29 AM4/23/22
to tesseract-ocr
I'm very new to tesseract so....

Is it possible to give tesseract an image and some options to choose from and get back a confidence level for each choice?

I.e. input: <image> "XYZ" "ABC"
output: "XYZ" 0.64, "ABC" 0.11

Any pointers to documentation or tutorials would be appreciated.

q:o)           Theis

Martin Brunecky

unread,
May 15, 2022, 4:37:27 PM5/15/22
to tesseract-ocr
The 'ALTO' output (XML) contains word confidences (look for WC=0.95 etc). Other than that, you can get confidences using the base API, but that means coding.
In case you want individual character confidences (as I did), you may have to write your own 'renderer', the information is there... Confidences can be surprising.
Reply all
Reply to author
Forward
0 new messages