Giter VIP home page Giter VIP logo

en1gma02 / sign-language-and-gesture-detector Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.5 MB

Created a real-time sign language gesture detection system using computer vision and machine learning. Captures hand gestures via webcam, extracts hand landmarks, and predicts sign language characters using a trained Random Forest Classifier. Enhancing accessibility for individuals with hearing impairments.

Python 100.00%

sign-language-and-gesture-detector's Introduction

Sign Language Gesture Detector

This project aims to detect and recognize sign language gestures using computer vision and machine learning techniques. It provides a real-time system that captures hand gestures through a webcam, processes them, and predicts the corresponding sign language characters.

Demo Video

Demo.mp4

Overview

The project consists of the following components:

  1. Collecting Images: A script captures images from the webcam, organizes them into folders based on classes (sign language gestures), and saves them for later use as training data.

  2. Creating Dataset: Hand landmarks are detected in the collected images using the MediaPipe library. These landmarks are extracted and saved along with their corresponding labels as a dataset.

  3. Training Classifier: A Random Forest Classifier is trained using the extracted hand landmarks as features and the corresponding labels as targets.

  4. Running the Model: The trained model is loaded, and real-time video from the webcam is captured. Hand landmarks are detected in the video feed, fed into the model for prediction, and the predicted sign language gesture is displayed on the video feed.

Usage

  1. Collecting Images: Run the collect_images.py script to capture images for training. Adjust the number of images per class and dataset size as needed.

  2. Creating Dataset: Run the create_dataset.py script to extract hand landmarks from the collected images and save them along with labels as a dataset (data.pickle).

  3. Training Classifier: Execute the train_classifier.py script to train the Random Forest Classifier using the dataset generated in the previous step.

  4. Running the Model: Run the inference_classifier.py script to start the real-time sign language gesture detection system.

Requirements

  • Python 3.x
  • OpenCV
  • MediaPipe
  • scikit-learn

Acknowledgments

This project was inspired by the need for accessible communication tools for individuals with hearing impairments. Special thanks to the contributors of OpenCV, MediaPipe, and scikit-learn for their valuable libraries and resources.

sign-language-and-gesture-detector's People

Contributors

en1gma02 avatar

Watchers

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