Skip to content

Using mediapipe, openCV and pyautogui to control computer using gestures.

Notifications You must be signed in to change notification settings

ddcrpf/Gesture_Control

Repository files navigation

Controlling Computer using hand gestures

The is an attempt to control keyboard and mouse inputs using hand gestures detected using openCV and processed by mediapipe by drawing landmarks using mediapipe and implementing them using pyautogui.

There are 3 files here -

volume_control.py - to control computer volumne using index finger

dino.py - to play dino game using hand gesture.

rpg_game_control.py - to play an rpg game using both gestures from both hands.

The file HandTrackingModule.py is created to encompass all and methods.

# Gesture Control

A Python-based application that enables gesture recognition for controlling applications using computer vision. Built using OpenCV and Mediapipe, it allows users to interact with their system through hand gestures.

## Features
- **Gesture Recognition:** Detects hand gestures using a webcam.
- **Customizable Gestures:** Modify gestures to fit specific needs.
- **Application Control:** Integrate with applications for hands-free interaction.

## Installation

1. **Clone the repository:**
   ```bash
   git clone https://github.com/ddcrpf/Gesture_Control.git
  1. Navigate to the project directory:

    cd Gesture_Control
  2. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Ensure your webcam is connected.
  2. Run the gesture control script:
    python gesture_control.py
  3. Follow the on-screen instructions to perform gestures.

Requirements

  • Python 3.7+
  • OpenCV
  • Mediapipe

Contributing

Contributions are welcome! Please fork this repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


This Markdown format is clear and structured, making it easy to understand and follow.

About

Using mediapipe, openCV and pyautogui to control computer using gestures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published