Deep Learning · 2025
MNIST Digit Classifier
Draw a digit and get real-time CNN predictions.
Model
- Small CNN (conv → pool → dense) in TensorFlow/Keras
- Input: 28x28 grayscale, centered digit
- Softmax over 10 classes with per-class probabilities shown
Dataset
MNIST — 60,000 training and 10,000 test handwritten digits.
Results & metrics
- Test accuracy
- ~0.99
- Classes
- 10 digits
- Interface
- draw + live predict
Deployment steps
- 1Train the CNN on MNIST and save the Keras model
- 2Build the Streamlit canvas drawing UI
- 3Preprocess the drawn image exactly like MNIST inputs
- 4Deploy to Streamlit Cloud
Tech stack
- CNN
- TensorFlow
- Streamlit