Skip to content

About

Hand Gesture Model to bridge the communication gap

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

🤖 Real-Time Hand Gesture Recognition using CVZone & TensorFlow

This project uses a webcam to recognize and classify hand gestures in real time. It combines cvzone for hand tracking and TensorFlow/Keras (trained using Teachable Machine) for gesture classification. It’s a cool application of computer vision and deep learning!


🧰 Technologies Used

Tool Purpose
cvzone Simplifies OpenCV tasks, used for hand tracking
OpenCV (cv2) Real-time video processing
NumPy Image matrix manipulation
Teachable Machine Easy model training for hand gestures
TensorFlow/Keras Used to load and run the trained model

📁 Project Structure

├── Model/
│   ├── keras_model.h5         # Trained model from Teachable Machine
│   └── labels.txt             # Corresponding labels
├── Data/
│   └── 1/                     # Saved cropped hand images
├── dataCollection.py          # Script to collect hand image data
├── test.py                    # Script to test real-time classification
├── README.md                  # This file

🚀 How to Run the Project

  1. Clone the Repository

    git clone https://github.com/yourusername/hand-gesture-recognition.git
    cd hand-gesture-recognition
  2. Install Dependencies: Make sure you have Python 3.7+ and install the required libraries

    pip install cvzone opencv-python numpy tensorflow
  3. python dataCollection.py: Collect hand images by pressing s to save

    python dataCollection.py
  4. Run the Real-Time Classifier: This will open the webcam and start predicting

    python test.py

🧠 How It Works

Hand Detection: cvzone.HandTrackingModule detects the hand and returns bounding box coordinates.

Image Preprocessing: The hand region is cropped and resized to a 300x300 white canvas.

Prediction: The cropped image is passed to a pre-trained model using cvzone.ClassificationModule.

Display: The predicted gesture label and confidence score are shown on the webcam feed.

✨ Future Improvements

Add more gesture classes

Improve model accuracy by collecting more data

Add voice commands or system control integration

📬 Contact

Created with 💙 by Hemanth Kumar

Feel free to connect on www.linkedin.com/in/hemanthkumar001 Or drop a ⭐️ if you like the project!

About

Hand Gesture Model to bridge the communication gap

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages