Skip to content

This project detects digits using CNNs and OpenCV. It includes image preprocessing, model training on MNIST, real-time detection, and evaluation with accuracy metrics. Built with Python, TensorFlow/Keras, and Flask for deployment. Clone, install dependencies, and start detecting digits! πŸš€

Notifications You must be signed in to change notification settings

Akshitvats026/Image-Classification-Digit-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Image Classification & Digit Detection

πŸš€ Overview

This project implements image classification and digit detection using machine learning (ML) and deep learning (DL). It leverages convolutional neural networks (CNNs) for digit recognition and traditional ML models for broader classification tasks. Real-time detection is supported using OpenCV.

πŸ“Œ Features

  • Digit Detection: Recognizes handwritten or printed digits using CNNs.
  • Image Classification: Classifies images into different categories using ML/DL models.
  • Real-time Detection: Uses OpenCV to detect digits and classify objects in real-time.
  • Model Training: Trains models on datasets like MNIST, CIFAR-10, or custom datasets.
  • Evaluation: Analyzes model accuracy using confusion matrices and performance metrics.
  • Deployment: Flask-based API for easy integration.

πŸ›  Tech Stack

  • Programming Language: Python 🐍
  • Libraries: TensorFlow/Keras, OpenCV, NumPy, Matplotlib, Scikit-learn
  • Framework: Flask (for API deployment)

πŸ“‚ Project Structure

πŸ“¦ Image-Classification-Digit-Detection
β”œβ”€β”€ πŸ“ datasets       # Dataset storage
β”œβ”€β”€ πŸ“ models         # Pretrained and trained models
β”œβ”€β”€ πŸ“ notebooks      # Jupyter notebooks for experimentation
β”œβ”€β”€ πŸ“ src           # Source code for training & detection
β”‚   β”œβ”€β”€ train.py     # Model training script
β”‚   β”œβ”€β”€ detect.py    # Digit detection & classification
β”‚   β”œβ”€β”€ utils.py     # Helper functions
β”œβ”€β”€ πŸ“„ requirements.txt  # Dependencies
β”œβ”€β”€ πŸ“„ README.md     # Project documentation

πŸ”§ Installation

  1. Clone the Repository
    git clone https://github.com/yourusername/Image-Classification-Digit-Detection.git
    cd Image-Classification-Digit-Detection
  2. Create a Virtual Environment (Optional but Recommended)
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install Dependencies
    pip install -r requirements.txt

πŸ“Œ Usage

1️⃣ Train the Model

python src/train.py

2️⃣ Run Digit Detection & Classification

python src/detect.py --image path/to/image.jpg

3️⃣ Deploy API (Optional)

python src/app.py

πŸ“Š Results & Evaluation

  • Accuracy Reports
  • Confusion Matrices
  • Model Performance Charts

🀝 Contributions

Feel free to fork, contribute, and submit PRs! 😊

πŸ“œ License

This project is licensed under the MIT License.


πŸ“© Need Help? Open an issue or reach out! πŸš€

About

This project detects digits using CNNs and OpenCV. It includes image preprocessing, model training on MNIST, real-time detection, and evaluation with accuracy metrics. Built with Python, TensorFlow/Keras, and Flask for deployment. Clone, install dependencies, and start detecting digits! πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published