Help reading data from a game (Diablo II) or analyzing an image from it for text recognition

Because you only care about 10 character – 0-9 – and they are in a wacky low-rez font, you could collect character streams using template matching.

BoofCV for Processing already supports template matching.

Use the provided Template example from the BoofCV library, Crop copies of the numbers into 10 files with 10 masks, and bam – bespoke OCR data. Since your matches are on a single line, you can just sort hits by their x coordinates to reconstruct the string.

Screen Shot 2020-06-11 at 12.54.35 PM

Example template (crop) and mask (black and white, e.g. in Gimp or Paint / Photoshop):

4
4_mask

Edit caveat–you need scores for template matching to work like this, and I haven’t tested whether they were added to the library yet. See the thread I linked above.