GithubHelp home page GithubHelp logo

alecksandr26 / sign-language-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raudelcasas1603/image-classification

0.0 0.0 0.0 98 KB

An small neural network that classifies sign language

License: MIT License

Python 100.00%
nerual-network opencv python ai media mediapipe pictures tensorflow sign-lenguage

sign-language-detection's Introduction

Table of Contents

Sign Language Gesture

The Sign Language Gesture Recognition project utilizes Python, OpenCV, and the powerful Random Forest algorithm. It captures and preprocesses video frames, extracting hand landmarks using Mediapipe. These landmarks are then used as input for the an small nerual network, trained on a labeled dataset of sign language gestures. The neural network learns patterns and correlations between landmarks and gestures, enabling accurate real-time recognition.

How to install it?

To install Sign Language Detection application, follow these steps:

  1. Clone the repository to your local machine:
    git clone https://github.com/RaudelCasas1603/Monky-Detection-.git
  2. Navigate to the project directory:
    cd Monky-Detection-
  3. Create a virtual environment (optional but recommended):
    python3 -m venv env
  4. Activate the virtual environment:
    • On macOS and Linux:
      source env/bin/activate
    • On Windows:
      .\env\Scripts\activate
  5. Install the package program:
    pip install .

That's it! You have now successfully installed the Sign Language Detection application.

How to train it?

To collect your own data.

You can create your collection of data, firstly make sure that you already have installed the program in your python environment, then follow the next steps:

  1. Open your terminal or command prompt.

  2. Navigate to the directory where your eviroment is located. For example:

    cd  /path/to/your/env/sld
  3. Activate the virtual environment if you have created one (optional):

    source env/bin/activate  # On macOS and Linux
    .\env\Scripts\activate  # On Windows
  4. Run the command with the collect-data command and specify the desired arguments:

     sld collect-data -n 100 -d directory-to-store-data/ -s signs.json
    • The -n 100 flag is optional and specifies that you want to generate 100 pictures per class or sign. By default, the program is programmed to take at least 1000 pictures.
    • The -d directory-to-store-data/ flag is optional and sets the directory where the collected data will be stored. Replace directory-to-store-data/ with the actual directory path. If the directory doesn't exist, it will be created. By default, it uses the data/ directory.
    • The -s signs.json flag is optional and specifies a JSON file with each sign to classify. By default, it uses the American alphabet for sign classification. Use this flag if you want to perform a custom sign classification.
  5. The command will start collecting the data based on the provided arguments. It will generate pictures for each class and store them in the specified folder.

  6. Once the data collection is completed, you will see the message "Data collection completed." printed in the terminal.

That's it! You have successfully created a data collection using the collect-data command. Adjust the arguments as needed to customize your data collection process.

To build your own dataset.

Firstly make sure that you have collected your data, then to build your own dataset just follow the next steps:

  1. Open your terminal or command prompt.
  2. Navigate to the directory where your environment is located. For example:
    cd /path/to/your/env/sld
  3. Activate the virtual environment if you have created one (optional):
    source env/bin/activate  # On macOS and Linux
    .\env\Scripts\activate  # On Windows
  4. Run the command with the build-dataset command and specify the desired arguments:
    sld build-dataset -f dataset.pickle -d data/
    • -f dataset.pickle specifies the output filename of the built dataset. Replace dataset.pickle with the desired filename. By default, data.pickle is the output dataset filename.
    • -d data/ sets the directory where the raw data is stored. Replace data/ with the actual directory. By default, the raw data is stored in the data/ directory.
  5. The command will start building the dataset based on the provided arguments. It will process the images from the specified data directory and generate the dataset file.
  6. Once the dataset is built, you will see the message "Dataset built." printed in the terminal.

Download our own dataset.

blah blah not avaiable yet >:|

Examples

Video example

working ont eh new video

References

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.