All projects
Personal & student projectsMachine Learning · 2026 · Completed

Handwritten Digit Recognition App

Interactive PyTorch app that classifies single handwritten digits from 0 to 9 using a CNN trained on the MNIST dataset.

View source on GitHub
Handwritten Digit Recognition App projectEnlarge image
Handwritten Digit Recognition App

The challenge

I wanted to build a beginner-friendly machine learning project that went beyond training a common MNIST model by turning it into a usable app with real-time drawing input.

What I built

I trained a convolutional neural network in PyTorch on MNIST, saved the trained model, and built a Gradio interface where users can draw a digit. The app preprocesses the drawing by converting it to grayscale, inverting it, cropping and centering the digit, resizing it to 28x28, and normalizing it before sending it into the model.

My role

I built the training pipeline, model architecture, saved-model loading flow, preprocessing pipeline, Gradio interface, and GitHub-ready project structure.

The result

Completed a working machine learning demo that predicts single handwritten digits and displays the model confidence scores along with the processed 28x28 image the model receives.

Additional project image
Handwritten Digit Recognition App original portfolio visual
Project visual from the original portfolio.
Keep exploring

Arduino Smart Garage Door Opener

View next project