Coder Social home page Coder Social logo

hand-sign-classification's Introduction

Hand Sign Classification using Deep Learning

Hand Sign Classification

Overview

In this project, two deep learning models were implemented and trained using TensorFlow. The first model was a simple manually implemented neural network, and two different optimizers were compared. The results were comparable with a significant difference.

The second model was a convolutional neural network (CNN) that significantly improved the classification performance. The difference between the performance of the simple network and the CNN was evident, showcasing the power of deep learning in hand sign recognition.

Real-time prediction using a webcam is also available in the repository.

Dataset

The dataset used in this project consists of images of hand signs representing numbers from 0 to 5. The dataset is stored in h5py files and contains both training and test sets. Each image is a 64x64 RGB image.

Prerequisites

To run this project, you will need the following dependencies:

  • TensorFlow
  • h5py
  • numpy
  • matplotlib
  • OpenCV (cv2)

You can install these dependencies using the provided requirements.txt file:

pip install -r requirements.txt

Project Structure

The repository contains the following files and directories:

  1. hand_sign_classification.ipynb: Jupyter Notebook containing the Python code for the project. It includes the data loading, preprocessing, model definitions, training, and real-time classification using the webcam.

  2. train_signs.h5 and test_signs.h5: h5py files containing the training and test datasets.

  3. hand_sign_classification.png: An image illustrating the hand sign classification project.

  4. README.md: This file providing an overview of the project and its contents.

How to Use

  1. Clone the repository to your local machine:
git clone https://github.com/aliejabbari/hand-sign-classification.git
cd hand-sign-classification
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Open and run the hand_sign_classification.ipynb notebook using Jupyter Notebook or Jupyter Lab.

  2. Follow the instructions in the notebook to load the dataset, preprocess the images, build and train the neural network and CNN models, and perform real-time classification using your webcam.

Results

The notebook includes visualization of the training process, such as loss and accuracy plots, and displays the test samples with their predicted class labels. The accuracy of the trained models on the test dataset is also provided.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.

Contact

For any inquiries or questions, please contact [email protected].


hand-sign-classification's People

Stargazers

Ali Jabbari avatar  avatar

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.