Get font of recognized character with Tesseract-OCR

tesseract

Solution

Tesseract has an API `WordFontAttributes` function defined in `ResultIterator` class that you can use.

Problem

Is it possible to get the font of the recognized characters with Tesseract-OCR, i.e. are they Arial or Times New Roman, either from the command-line or using the API. I'm scanning documents that might have different parts with different fonts, and it would be useful to have this information.

Original source