Handwritten Character Recognizer

Draw in the air with your finger in front of a webcam and a CNN recognizes what you wrote.

MediaPipe hand tracking follows your index fingertip through the webcam and draws its path onto a canvas, with the thumb acting as the pen toggle.
When you are done, the drawing is preprocessed and passed to a convolutional neural network that predicts the digit.

The model, HDRNet, is a small PyTorch CNN: three convolutional layers with batch normalization, max pooling, dropout and global average pooling into a linear classifier.
It was trained on the MNIST dataset with a held-out validation split, with training runs logged to TensorBoard.
OpenCV handles the webcam feed and drawing overlay.
Github Repo