Welcome to the Hand Gesture Detection project! This application leverages the power of MediaPipe and OpenCV to recognize hand gestures in real-time through your webcam. It's a fun and interactive way to explore hand tracking technology and can be used for various applications, from gaming to virtual interfaces.
Watch how the system detects hand landmarks in real-time!
- Real-Time Detection: Detects and visualizes hand landmarks in real-time using your webcam.
- User-Friendly Interface: Simple display with clear visual feedback.
- Hands-Free Control: Potential applications for gesture-based control systems.
To run this project, you will need:
- Python 3.x
- OpenCV
- MediaPipe
-
Clone the repository:
git clone https://github.com/chrohangurjar1/hand-gesture-detection.git cd hand-gesture-detection
-
Set up a virtual environment (optional but recommended):
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
-
Install dependencies:
pip install opencv-python mediapipe
To run the hand gesture detection application, use the following command:
python main.py
- Press 'q' to exit the program.
This project utilizes the following key components:
- MediaPipe Hands: For detecting and tracking hand landmarks.
- OpenCV: For capturing video from the webcam and displaying the output.
Here's a snippet of the core functionality:
import cv2
import mediapipe as mp
# Initialize MediaPipe Hands
mp_hands = mp.solutions.hands
hands = mp_hands.Hands()
mp_drawing = mp.solutions.drawing_utils
# Capture video
cap = cv2.VideoCapture(0)
# Main loop for processing frames
while cap.isOpened():
ret, frame = cap.read()
# Additional processing here...
If you encounter any issues while using the application, please check the Issues section or feel free to create a new issue.
We want to give a huge shoutout to everyone who has contributed to the project! 🙌 Your hard work and dedication help make this app better every day. 💪
🎉 Thank you all for your amazing contributions! Let's keep building together. 🚀
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries, please contact:
- Your Name: [email protected]
- GitHub: Rohan Naagar