/Hand-Recognition-AI-Ml-Project

Detection of hand whether it is left or right or both

Primary LanguagePython

Real-time Hand Tracking with MediaPipe

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.

Table of Contents

Introduction

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.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/hand-tracking.git
  2. Install the required dependencies:

    pip install mediapipe opencv-python

Usage

  1. Run the main script:

    python hand_tracking.py
  2. Position your hands in front of the webcam.

  3. The application will detect and track your hands in real-time.

  4. If both hands are detected, it will display "Both Hands" on the screen.

  5. If only one hand is detected, it will display whether it's the left or right hand.

  6. Press 'q' to quit the application.

Contributing

Contributions are welcome! If you want to contribute to this project, please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/YourFeature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/YourFeature)
  5. Create a new Pull Request