Skip to content

A computer vision-based project to control mouse actions, window management, and scrolling using real-time hand gestures via webcam. Powered by Python, OpenCV, MediaPipe, PyAutoGUI, and Pygame.

License

Notifications You must be signed in to change notification settings

Pardhuu66/Gesture-Control-PC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖐️ Gesture-Control-PC

A computer vision-powered Python application that lets you control your computer using just your hand gestures — no mouse, no touchpad. Move your cursor, click, scroll, minimize, and close windows using natural hand signs captured via your webcam.

📽️ Demo

![Demo GIF](assets/Pardhu_OpenCV_mediaPipe_Cursor (1) (1).mp4) LinkedIn Post: https://www.linkedin.com/posts/pardha-sai-gudivada-297447259_cursor-fist-fingers-activity-7336760186415566848-0RPd?utm_source=share&utm_medium=member_desktop&rcm=ACoAAD-adNMBWOs4JOyaZhKgD5atD4XunZHhXlo

📌 Features

  • 🖱️ Move Cursor - Move your open hand in front of the webcam
  • 👊 Click - Make a fist gesture
  • ⬆️⬇️ Scroll - Hold your index and middle fingers together
  • 📉 Minimize Window - Raise your pinky finger
  • 👍 Close Application - Show a thumbs-up
  • 👌 Double Click - Make an OK sign

🎮 Includes a Pygame overlay that visually displays real-time hand tracking and gesture detection feedback.

🛠️ Tech Stack

  • Python
  • OpenCV
  • MediaPipe
  • PyAutoGUI
  • Pygame

📦 Installation

1️⃣ Clone the repository:

git clone https://github.com/Pardhuu66/Gesture-Control-PC.git
cd Gesture-Control-PC

2️⃣ Install dependencies:

pip install -r requirements.txt

3️⃣ Run the application:

python main.py

⚙️ How It Works

  • Uses MediaPipe to detect hand landmarks in real-time via webcam.
  • Maps specific gestures (fist, open hand, thumb up, etc.) to system actions using PyAutoGUI.
  • Displays real-time gesture feedback and hand detection using Pygame overlay.

💡 Motivation

I’ve always been fascinated by the possibilities at the intersection of computer vision and human-computer interaction. While interning at Turtil and diving into machine learning, I challenged myself to create something functional and futuristic — and this is the result!

This project is a small step toward touchless interfaces redefining our digital experience.

📄 License

This project is licensed under the MIT License.

🙌 Let’s Connect!

Love tech, computer vision, or side projects?
Feel free to connect and collaborate!

⭐️ Star this repo if you liked it!

🔖 TODO

  • Add multi-hand support
  • Enable custom gesture mapping
  • Improve gesture detection robustness in low light

About

A computer vision-based project to control mouse actions, window management, and scrolling using real-time hand gestures via webcam. Powered by Python, OpenCV, MediaPipe, PyAutoGUI, and Pygame.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published