Hi, I wasn't sure what to put this under, so I hope I've put it in the right one, anyway, I have few ascii image with numbers from 0 to 999, how to recognize which numbers on this image?
Can anyone help me and provide some links where I can read about it?
Ah yes, sorry I misunderstood the code; I thought you first grabbed the first number, then the second (starting again from the top), and lastly the third (so, column by column) instead of getting all three in one time.
Well, once you can recognize each digit from comparing them to some constant string versions of the digits, you just need to make the number by multiplying each digit by it's place value and adding them all up. Assume, in this example, that Dig1, Dig2, and Dig3 are integers that contain the correct digits: int Num = 100 * Dig1 + 10 * Dig2 + Dig3;
Thus, 100 * 7 + 10 * 9 + 5 = 700 + 90 + 5 = 795