Giter Club home page Giter Club logo

developer-rahul-gesture-detetction's Introduction

Hand Gesture Recognition using MediaPipe

Hand Gesture Recognition

This Python project utilizes the MediaPipe library and OpenCV to perform real-time hand gesture recognition. With this code, you can control your computer's cursor and keyboard using hand gestures.

Features

  • Detects and tracks hand landmarks in real time.
  • Recognizes left and right-hand gestures for mouse and keyboard control.
  • Control the mouse cursor and perform keyboard actions (e.g., move, click, swipe) using hand gestures.
  • Easily customizable for different hand gestures and actions.

Prerequisites

Before running the code, make sure you have the following dependencies installed:

  • Python 3.x
  • OpenCV (pip install opencv-python)
  • MediaPipe (pip install mediapipe)
  • PyAutoGUI (pip install pyautogui)

How to Use

  1. Clone this repository:

    git clone https://github.com/baukk/Gesture-Recognition.git
  2. Navigate to the project directory:

    cd Gesture-Recognition
  3. Run the code:

    python main.py
  4. A window will open showing the webcam feed. Move your hand in front of the camera to control the cursor and perform gestures.

  5. To exit the program, press 'q' in the OpenCV window.

Hand Gestures and Actions

  • Left Hand (Mouse Control):

    • Move your left hand to control the mouse cursor.
    • When the index finger tip is above the index finger middle, it simulates a left mouse click.
  • Right Hand (Keyboard Control):

    • Move your right hand to control the keyboard.
    • Swipe right or left to simulate arrow key presses ('right' or 'left').
    • Swipe up or down to simulate arrow key presses ('up' or 'down').

Customization

You can customize this code to recognize additional hand gestures and map them to different actions. Modify the code to add your own gestures and actions.

Acknowledgments

This project uses the MediaPipe library for hand landmark detection and tracking.

License

This project is licensed under the MIT License.

Author

  • Tanay Gaur
  • GitHub: baukk

Feel free to contribute to this project and make it even more awesome! If you have any questions or suggestions, please open an issue or pull request.

Enjoy controlling your computer with hand gestures! ๐Ÿ–๏ธ๐Ÿ–ฅ๏ธ

developer-rahul-gesture-detetction's People

Contributors

developerrahulofficial avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.