I want to extract numbers from an image. Usually the numbers are around some figure and sometimes within the figure. I'm using Tesseract for this task. Tesseract works quite well for documents with a lot of text but I have not really found the right parameters to get good results for this task. I tried different page segmentation modes (PSM_SPARSE_TEXT should in theory work best here), all different engine modes, character whitelist, disabled table detection, disabled dictionary and so on.
Usually the images look like the attached 'NumbersWithFigure'.

But also using a 'cleaned' image like the attached 'OnlyNumbers' didn't really bring better results.

I'm using Tess4j to access Tesseract with Java like this:
Any ideas (parameters and/or links to specialized training data)?