Kaaykun / SignFlow

Scalable real-time American Sign Language translator using Mediapipe (Holistic) and LSTM

Home Page:https://signflow.streamlit.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sign Flow - A Sign Language Detection Application

SignFlow Logo

This repository contains a sign language detection application built using Python. The application utilizes the Streamlit framework for the user interface, OpenCV for video processing, and TensorFlow/Keras for LSTM-based sign language prediction.

Checkout our app on Streamlit: https://signflow.streamlit.app/

Table of Contents

Files

Dataset: https://www.kaggle.com/datasets/risangbaskoro/wlasl-processed

  1. preprocessor.py: Contains functions for sampling frames from videos, creating feature matrices, and generating processed videos.

  2. registry.py: Includes functions for generating processed videos, CSV files, drawing landmarks, and saving/loading models.

  3. model.py: Defines the LSTM model architecture and functions for training the model.

  4. main.py: The main script that orchestrates the data processing, model training, and saving.

  5. app.py: The Streamlit application with two pages - one for uploading a video for sign detection and another for real-time sign detection from a webcam stream.

Usage

1. Video Upload Page

  • Upload a video file for sign language detection.
  • The application will predict the sign language associated with the uploaded video.

2. Real-Time Detection Page

  • Use a webcam for real-time sign language detection.
  • The application displays the detected signs in real-time.

Features

  • Sign language detection using LSTM models.
  • Two modes: video upload for single predictions and real-time webcam detection.
  • User-friendly Streamlit interface.

Dependencies

  • TensorFlow
  • OpenCV
  • Streamlit
  • mediapipe
  • scikit-learn
  • pandas
  • numpy
  • av
  • streamlit_webrtc

Getting Started

  1. Clone the repository:

    git clone https://github.com/your-username/sign-language-detection.git
    cd sign-language-detection
    
  2. Navigate to the project directory: cd SignFlow

  3. Install the required dependencies: pip install -r requirements.txt

License

Copyright 2024 Jaris Fenner

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Scalable real-time American Sign Language translator using Mediapipe (Holistic) and LSTM

https://signflow.streamlit.app/


Languages

Language:Python 99.6%Language:Makefile 0.4%