Credit to nasami for the idea of making a digit recognition project! Use the mouse to draw a digit from 0 to 9 on the screen. After a brief pause, the project will scan your image and try and figure out what digit you drew. It's pretty accurate if you draw carefully. My version uses a 3x5 scanning grid to sample the image. It auto-scales so you can draw the digit anywhere on the screen with a wide range of sizes. After sampling your image, over 40 template sprites are asked to compare themselves to the sample and calculate how close they come to the sample. The closest match is found and the digit is then reported. If there are only 10 digits, why are there over 40 templates? Because of variations in the way the digits can be drawn and because the scanning grid is so crude. Give it a try and have fun :) Thanks to ffred for showing me some bugs in the original project.