Giter Site home page Giter Site logo

asl-sign-language-recognition's Introduction

ASL Sign Language Recognition

This repository contains code for training and evaluating a Convolutional Neural Network (CNN) model to recognize American Sign Language (ASL) signs in real-time using a webcam.

Table of Contents

Introduction

This project uses a CNN to recognize ASL signs from images. The model is trained on a dataset of ASL images and can be used for real-time recognition through a webcam.

Setup

Prerequisites

  • Python 3.x
  • Virtual environment tool (optional but recommended)

Windows

  1. Clone the Repository:
    git clone https://github.com/madhu-sv/asl-sign-language-recognition.git
    cd asl-sign-language-recognition```
  2. Set Up a Virtual Environment:
    python -m venv venv
    venv\Scripts\activate
  3. Install Dependencies:
    pip install -r requirements.txt

macOS

  1. Clone the Repository:
    git clone https://github.com/madhu-sv/asl-sign-language-recognition.git
    cd asl-sign-language-recognition\
  2. Set Up a Virtual Environment:
    python -m venv venv
    venv\Scripts\activate
  3. Install Dependencies:
    pip install -r requirements.txt

Training the Model

  1. Prepare the Dataset:

    • Download the ASL dataset and place it in the data directory.
    • Ensure the directory structure is as follows:
      data/
        ├── asl_alphabet_train/
        └── asl_alphabet_test/
      
  2. Run the Training Script:

    python src/train.py
  3. Output:

    • The trained model will be saved in the models directory as asl_model.h5.

Evaluating the Model

  1. Run the Evaluation Script:

    python src/evaluate.py
  2. Output:

    • The script will print the test accuracy of the model.

Real-time Detection

  1. Run the Real-time Detection Script:
    python src/real_time_detection.py
  2. Note:
    • This script uses OpenCV to access the webcam and perform real-time ASL recognition.
    • Ensure your webcam is connected and accessible.

asl-sign-language-recognition's People

Contributors

madhu-sv avatar

Watchers

 avatar Kostas Georgiou 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.