AI · web app · free and open source

Ink

Draw a digit and a neural network recognises it live, in the browser.

model
PyTorch CNN → ONNX, 225,034 parameters
accuracy
99.55% (MNIST test set)
runtime
ONNX Runtime Web, WebAssembly
Ink: a hand-drawn digit recognised live

What it does

01

Recognition on every stroke

The drawing is preprocessed like MNIST (crop, scale, centre of mass) and sent to the network, with no server.

02

A view inside the network

The neural view shows each layer's activations for the current drawing, from the first filter to the ten digit scores.

03

Trained for mouse and finger

Rotation, shift, zoom and thicker strokes during training, so the model also handles freehand drawings.

Anatomy

How it is built, layer by layer.

  1. TrainingTwo 3 × 3 convolutions (32 then 64 filters), max-pooling, a 128-unit dense layer with dropout, trained in PyTorch on augmented MNIST.
  2. ExportThe graph is exported to ONNX with extra outputs that expose intermediate activations to the interface.
  3. InferenceONNX Runtime Web runs the model in WebAssembly. The evaluation (confusion matrix, errors) is versioned in the repository.

Frequently asked questions

Are my drawings sent to a server?

No. The model runs entirely in your browser.

How accurate is the model?

99.55% on the MNIST test set.

An internship, a project, a role?

I answer every message. Describe the problem, the data and the deadline, and I will tell you plainly whether I can help.

bonaventureOuedraogo@outlook.com