Code Monkey home page Code Monkey logo

digit-classifier-using-cnn's Introduction

Digit Classifier Using CNN

A Simple Digit Classification program made using Convolutional Neural Network

This project involves building a Convolutional Neural Network (CNN) to classify digits. The model is trained using image data representing various digits and utilizes techniques from deep learning and image processing.

Overview

The project involves:

  • Preprocessing the image data by resizing, converting to grayscale, and applying histogram equalization.
  • Implementing a CNN architecture using the Keras deep learning framework.
  • Augmenting the training data for better model generalization.
  • Training the model on a dataset of digit images.
  • Evaluating the trained model's performance on a test dataset.

Methods Used

  • Libraries: NumPy, OpenCV (cv2), os, Keras, Matplotlib, and Pickle.
  • Data Handling: Utilizing train-test split and generating training, testing, and validation sets.
  • Image Preprocessing: Converting images to grayscale, equalizing histograms, and normalization.
  • Data Augmentation: Using ImageDataGenerator for augmenting training data.
  • Model Architecture: Utilizing Conv2D, MaxPooling2D, Dropout, Dense layers in the CNN.
  • Model Compilation: Using Adam optimizer, categorical crossentropy loss, and accuracy metrics.
  • Visualization: Plotting bar graphs for image class distributions and loss/accuracy trends.
  • Serialization: Saving the trained model using Pickle for future use.

Usage

  1. Ensure all necessary libraries are installed (Keras, NumPy, OpenCV, Tensorflow, etc.).
  2. Set up the dataset in a directory named 'myData' containing subdirectories for each class of digit images.
  3. Run the Python script provided to train the model and evaluate its performance.

digit-classifier-using-cnn's People

Contributors

penguin5681 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

thelettuceman81

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.