π Project Overview
The Handwritten Digits Recognition project uses the MNIST dataset to train a Convolutional Neural Network (CNN) for classifying handwritten digits (0β9). The goal is to accurately identify digits from images, making it useful for applications like postal mail sorting, bank cheque processing, and digitizing handwritten documents.
π Project Workflow
- Data Loading & Preprocessing:
Loaded the MNIST dataset from tensorflow.keras.datasets. Normalized pixel values from 0β255 to 0β1 for faster training. Reshaped images to match CNN input requirements.
- Model Building & Training:
Built a CNN using TensorFlow/Keras with convolution, pooling, and dense layers. Compiled the model with categorical cross-entropy loss and Adam optimizer. Trained the model on training data with validation split for monitoring.
- Evaluation & Prediction:
Evaluated model performance on the test set using accuracy score. Visualized sample predictions with actual vs. predicted labels. Tested the model on custom handwritten digit images.
π Technologies Used: Python β Core programming language. NumPy, Pandas β Data manipulation. Matplotlib β Visualization of digits and predictions. TensorFlow/Keras β Deep learning framework for CNN.