The goal of this project is to train a convolutional neural network (CNN) to accruatelty recognize handwritten digits. The model created is trained on 28x28 images from the MNIST dataset, obtained from the Keras library.
- Clone the repository.
- Create a virtual environment in the project directory using the following command:
python -m venv myenv
- Activate the virtual environment.
- Install the required dependencies with the following command:
pip install -r requirements.txt
- Open the Jupyter Notebook
model.ipynb. - Run all cells in the notebook to train the model. The model is saved as
model.kerasin the last cell. - Run the Pygame app to use the model live using the following command:
python app.py
