Real-time hand sign language detection using OpenCV, MediaPipe, and deep learning. Detects American Sign Language letters I, L, O, V, E, U from webcam input in real-time.
- Real-time detection - Live webcam hand sign recognition
- Data collection - Capture custom hand sign training data
- Deep learning model - Keras/TensorFlow classification model
- Preprocessing - Automatic hand cropping and normalization
- Python
- OpenCV
- MediaPipe (via cvzone)
- TensorFlow/Keras
- NumPy
HandSign-Detection/
├── Data Collection.py # Script to collect hand sign training data
├── Testing.py # Real-time hand sign detection & classification
├── Data/ # Training data organized by class (I, L, O, V, E, U)
├── Model/
│ ├── keras_model.h5 # Pre-trained Keras model
│ └── labels.txt # Class labels
└── .idea/ # IDE config
# Install dependencies
pip install opencv-python cvzone numpy tensorflow
# Collect training data (press 's' to save frames)
python "Data Collection.py"
# Run real-time detection
python Testing.py- Data Collection - Uses MediaPipe to detect hands via webcam, crops the hand region, resizes to 300x300, and saves labeled images
- Training - Model trained on collected data using Keras (saved as
keras_model.h5) - Testing - Real-time inference: detects hand, preprocesses frame, classifies with trained model, and overlays prediction on screen
| Index | Sign |
|---|---|
| 0 | I |
| 1 | L |
| 2 | O |
| 3 | V |
| 4 | E |
| 5 | U |
MIT