So, I have an image like this: https://i.stack.imgur.com/4zWVL.jpg
It always looks like that, although the numbers might differ. It’s a gif, the background is transparent, and the numbers white.
I need some way to parse it to numbers to be used in a script. Any ideas how I can solve this?
If the font is monospace and the position of the number in the image is constant, it should be trivial to break down the image into individual digits. Then, output each image to some format (PNG is probably best) and compare the files.
This works best if you have the same script save known digits and then compare them to the actual case data. If this is not possible, you will have to do a pixel-for-pixel comparison, which isn’t that big of a problem on such small images.
Essentially you’re making an extremely primitive OCR by having a program that’s along the lines of “this is what the digits look like, so what number is this?”