Skip to content

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

Watchers

Forks

Releases

Packages

Contributors

Languages