Draw a digit, then click Guess.
Train as:
Training samples: 0

How to Use

  1. Draw a digit (0–9) on the canvas
  2. Click Guess to see what the app thinks it is
  3. To train: draw a digit, then click its number below
  4. Trained samples save automatically in your browser

How It Works

Your drawing is converted into a 28×28 grid of pixel values. When you click Guess, the app compares it to every saved example using Euclidean distance and picks the closest match (k-NN with k=3). The pre-trained dataset (217 samples) is embedded in the js file from my python project. Any new drawings you train are saved to your browser's localStorage and persist across page loads.