A Deep Learning based Hand Gesture Recognition Web Application developed using TensorFlow, CNN, OpenCV, and Flask.
This project can recognize different hand gestures from uploaded images and display the predicted gesture along with an emoji representation.
Hand Gesture Recognition is an important Computer Vision application that enables Human-Computer Interaction (HCI).
This system uses a Convolutional Neural Network (CNN) trained on the LeapGestRecog dataset to classify hand gestures into 10 different categories.
The trained model is integrated with a Flask web application where users can upload gesture images and receive instant predictions.
- Upload hand gesture images
- Real-time gesture prediction
- CNN-based deep learning model
- Flask web application
- Image preview
- Emoji-based gesture display
- Modern responsive UI
- Trained TensorFlow model
- Python
- TensorFlow / Keras
- OpenCV
- NumPy
- Scikit-Learn
- Flask
- HTML
- CSS
Dataset Used:
LeapGestRecog Dataset
https://www.kaggle.com/datasets/gti-upm/leapgestrecog
Dataset contains 10 gesture classes:
| Label | Gesture |
|---|---|
| 01 | Palm |
| 02 | L |
| 03 | Fist |
| 04 | Fist Moved |
| 05 | Thumb |
| 06 | Index |
| 07 | OK |
| 08 | Palm Moved |
| 09 | C |
| 10 | Down |
CNN Architecture:
Input Layer (64x64x3)
↓ Conv2D (32 Filters)
↓ MaxPooling2D
↓ Conv2D (64 Filters)
↓ MaxPooling2D
↓ Flatten
↓ Dense (128)
↓ Output Layer (10 Classes)
PRODIGY_ML_04/
│
├── data/
│ └── leapGestRecog/
│
├── model/
│ └── hand_gesture_model.h5
│
├── static/
│ ├── style.css
│ └── uploads/
│
├── templates/
│ └── index.html
│
├── flask-app.py
├── train_model.py
├── requirements.txt
├── README.md
└── screenshots/
git clone https://github.com/yourusername/PRODIGY_ML_04.gitcd PRODIGY_ML_04pip install -r requirements.txtRun:
python train_model.pyAfter training, model will be saved as:
model/hand_gesture_model.h5
python flask-app.pyOpen browser:
http://127.0.0.1:5000
- Training Accuracy: 99.9%
- Validation Accuracy: 100%
- Gesture Classes: 10
(Add Screenshot Here)
(Add Screenshot Here)
- Real-time Webcam Recognition
- Live Gesture Tracking
- Mobile Responsive Design
- Gesture History Tracking
- Voice Feedback System
Developed as part of the Prodigy InfoTech Machine Learning Internship.
Hand Gesture Recognition using CNN, TensorFlow, OpenCV and Flask.
This project is for educational and internship purposes.