How vinay10100/handwritten-digit-recognition works
This repository is a Streamlit handwritten-digit recognizer. A user draws a digit, requests a prediction, and the app preprocesses the drawing, loads a trained CNN, predicts a class, and displays it. The README also describes the MNIST training workflow and CNN architecture; the notebook is present, but its contents were not sampled, so training details and artifact production are documented rather than verified from its code. The app source directly supports the inference and image-staging relationships shown below.
Main entry points: App.py Image preprocessing · handwritten.h5 Trained CNN · Main_Model.ipynb CNN training · prediction Image staging
Components 10
Model training
- CNN training
Model_Training/Main_Model.ipynb
Prediction app
- Drawing interface
App.py - Image preprocessing
App.py - Digit classification
App.py - Prediction display
App.py
Model and image data
- Image staging
prediction - Trained CNN
model/handwritten.h5 - MNIST model artifact
model/mnist_model.h5
Other components
- Digit drawer
- MNIST dataset
Connections 10
- Digit drawer → Drawing interface: draws digit
README.md - Drawing interface → Image staging: saves drawing
App.py - Image staging → Image preprocessing: opens image
App.py - Image preprocessing → Trained CNN: loads model
App.py - Image preprocessing → Digit classification: prepares image
App.py - Digit classification → Trained CNN: predicts with
App.py - Digit classification → Prediction display: returns class
App.py - Prediction display → Digit drawer: displays digit
README.md - MNIST dataset → CNN training: trains on
README.md - CNN training → Trained CNN: produces model
README.md