This project demonstrates real-time hand tracking using the MediaPipe library in Python. It detects and tracks multiple hands in a video stream from your webcam and provides information about the detected hands.
Hand tracking is a crucial aspect of many computer vision applications, such as gesture recognition, sign language interpretation, and augmented reality. This project utilizes MediaPipe, a popular framework for building machine learning pipelines, to detect and track hands in real-time video streams.
-
Clone the repository:
git clone https://github.com/yourusername/hand-tracking.git
-
Install the required dependencies:
pip install mediapipe opencv-python
-
Run the main script:
python hand_tracking.py
-
Position your hands in front of the webcam.
-
The application will detect and track your hands in real-time.
-
If both hands are detected, it will display "Both Hands" on the screen.
-
If only one hand is detected, it will display whether it's the left or right hand.
-
Press 'q' to quit the application.
Contributions are welcome! If you want to contribute to this project, please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/YourFeature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature/YourFeature
) - Create a new Pull Request