Skip to content

iamclickify/virtual_mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Virtual Mouse using Hand Gestures

Control your computer without touching a mouse!

This project uses computer vision to track hand movements in real-time and converts them into mouse actions like cursor movement and clicks.


📌 Features

  • 🖐️ Real-time hand tracking
  • 🖱️ Move cursor using finger movement
  • 👆 Perform click actions using gestures
  • ⚡ Smooth and responsive interaction

🧠 How it Works

  • Uses a webcam to capture live video feed
  • Detects hand landmarks using a hand tracking model
  • Maps finger positions to screen coordinates
  • Recognizes specific gestures for actions like clicking

⚙️ Tech Stack

  • Python
  • OpenCV
  • MediaPipe
  • PyAutoGUI

🚧 Challenges Faced

  • Mapping camera coordinates to screen space accurately
  • Reducing jitter for smoother cursor movement
  • Handling different lighting conditions for reliable detection

🚀 Future Improvements

  • Add gesture-based volume/brightness control
  • Improve tracking accuracy
  • Add multi-hand support
  • Build a small UI overlay for better feedback

📂 How to Run

  1. Clone the repository
  2. Install dependencies:
    pip install opencv-python mediapipe pyautogui
  3. Run the script:
    python main.py

Make sure to change ppt path! ppt_path = r"C:\Users\admin\OneDrive\Documents\virtual_mouse.pptx"

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages