If the image is from a screen dump... Make the image BIGGER....
tesseract is designed for scanned documents at about 600dpi, but displays are typically only 90 to 100dpi so scaling by 600% often works wonders.
I also find some fonts make go bad. For example a 'serif f' will often be thought of as a P
Then there is confusion about Il1 or QO0 which can be solve by limiting the character set tesseract is using.
PS: the last paragraph when screen captured from my web browser display produced...
I also find some fonts make go bad. For example a 'serif f' will often be thought of as a P
Then there is confusion about III or Q00 which can be solve by limiting the character set tesseract is using.
PS: not all the bars came out as letter 'I' and the letter O's as digit zero 0. In another run the 'I's came out a "1
The 'f' had no problem as my web browser is not using a serif font.
Basically tesseract results can need some luck to work well. I am certainly no expert in its use.
Some links I have
http://community.aiim.org/blogs/richard ... d-indexing
https://mathieularose.com/decoding-captchas/