Skip to content

Putra4lif/RealtimeHandSignRecognitionASL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

βœ‹ Real-Time Sign Language Recognition

This project implements a real-time recognition system for sign language alphabets and numbers using a Convolutional Neural Network (CNN) and MediaPipe for hand landmark detection. The system captures live video input, processes hand gestures, and classifies them into corresponding sign language alphabets or numbers.

βœ‹ Hand Sign Recognition System

This project is a complete hand sign recognition pipeline using MediaPipe and TensorFlow. It supports:

  • Automatic landmark extraction from hand gesture images
  • Training a Multi-Layer Perceptron (MLP) classifier
  • Real-time hand sign detection from webcam
  • GUI interface using tkinter for ease of use

πŸ”§ Requirements

  • Python 3.7+
  • OpenCV
  • MediaPipe
  • TensorFlow
  • scikit-learn
  • Pillow
  • tqdm
  • matplotlib
  • seaborn

πŸ“ Project Structure

β”œβ”€β”€ create_landmark_dataset.py # Extracts and normalizes images hand landmarks into CSV β”œβ”€β”€ train_evaluate_model.py # Trains an MLP model on the landmark dataset β”œβ”€β”€ main.py # Real-time hand detection using webcam β”œβ”€β”€ App.py # GUI application for live prediction β”œβ”€β”€ hand_landmarks_normalized.csv # (Generated) CSV dataset of landmarks β”œβ”€β”€ landmark_model_best.keras # (Generated) Best trained model

πŸ“Έ Step-by-Step Usage

  1. Dataset Preparation Prepare a dataset of hand gesture images grouped by class in subfolders, e.g. Gesture Image Data/ β”œβ”€β”€ A/ β”œβ”€β”€ B/ β”œβ”€β”€ C/ └── ...

  2. Extract Landmarks Run: python create_landmark_dataset.py This will create hand_landmarks_normalized.csv.

  3. Train the Model Train an MLP classifier using: python train_evaluate_model.py This will output landmark_model_best.keras and show training plots and metrics.

  4. Real-Time Detection (CLI Mode) To test the model using your webcam: python main.py

  5. GUI Mode Launch the graphical interface using: python App.py This provides a simple App to start/stop detection and view predictions in real-time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors