MNIST Digit Recognition (Python 3.14 Compatible)
Install
pip install -r requirements.txt
Train
python train.py
This downloads the MNIST dataset and creates:
mnist_model.pkl
Predict From Image
Place a handwritten digit image named:
digit.png
in the project folder and run:
python predict.py
GUI
After training:
python app.py
Draw a digit and click Predict.