Skip to content

Virtual Mouse is an AI-powered, gesture-based control system that replaces traditional peripherals with hand movements. Using MediaPipe for hand tracking and PyAutoGUI for cursor control, it enables seamless clicking, scrolling, and navigation through simple gestures. Experience a futuristic, touchless interaction with your PC! πŸš€πŸ–±οΈ

Notifications You must be signed in to change notification settings

WasifSohail5/Virtual_Mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–±οΈ Virtual Mouse – Hands-Free Computer Control πŸš€πŸ–οΈ

Revolutionize the way you interact with your computer! Virtual Mouse leverages cutting-edge AI and computer vision to transform your hand gestures into seamless mouse movements, clicks, and scrolling. No need for physical peripherals – just gesture, control, and navigate effortlessly! πŸ†


✨ Key Features πŸ”₯

πŸ”Ή Real-Time Hand Tracking:
   🎯 Powered by MediaPipe, ensuring precise and fast tracking.

πŸ”Ή Gesture-Based Controls:
Β Β Β πŸ–±οΈ Left Click: Pinch your index finger and thumb together.
Β Β Β πŸ–±οΈ Double Click: Perform a quick double pinch.
Β Β Β πŸ–±οΈ Right Click: Touch your middle finger to your thumb.
Β Β Β πŸ–±οΈ Scroll Mode: Activate scrolling by aligning fingers in a vertical motion.

πŸ”Ή Smooth Cursor Movement:
Β Β Β πŸ’‘ Adaptive smoothing techniques ensure fluid and natural cursor motion.

πŸ”Ή Customizable Sensitivity:
Β Β Β βš™οΈ Adjustable thresholds for clicks and scroll actions for personalized control.

πŸ”Ή No Extra Hardware Needed!
Β Β Β πŸ“Έ Just use your webcam to bring gestures to life!


πŸ›  How It Works πŸ”

πŸ“· Step 1: Webcam Capture
OpenCV accesses your webcam, flips the video for a mirror view, and processes the frames in real time.

βœ‹ Step 2: Hand Landmark Detection
MediaPipe detects hand landmarks and extracts critical points such as fingertips and knuckles.

πŸ“ Step 3: Gesture Recognition
Using distance calculations between fingertips, Virtual Mouse interprets gestures like clicks and scrolls.

πŸ–₯️ Step 4: Mouse Control
PyAutoGUI maps detected hand movements to your screen, ensuring a seamless experience.

⚑ Flow Diagram:

graph LR
A[Webcam Capture] --> B[Hand Landmark Detection]
B --> C[Gesture Recognition]
C --> D[Cursor Control & Clicks]
D -->|Output| E[Real-Time Mouse Interaction]
Loading

πŸš€ Installation Guide πŸ—οΈ

βœ… Prerequisites

  • Python 3.x
  • Pip for package management

πŸ›  Setup Instructions

1️⃣ Clone the Repository:

git clone https://github.com/your-username/virtual-mouse.git
cd virtual-mouse

2️⃣ Install Dependencies:

pip install -r requirements.txt

If you don't have a requirements.txt, install manually:

  • opencv-python (for video capture)
  • mediapipe (for hand tracking)
  • pyautogui (for cursor control)
  • numpy (for mathematical operations)

3️⃣ Run the Application:

python Virtual\ Mouse.py

πŸ›  Technologies Used 🧩

Technology Purpose
Python Core programming language
OpenCV Capturing and processing video frames
MediaPipe Hand detection and landmark tracking
PyAutoGUI Simulating mouse movements and clicks
NumPy Numerical operations and smoothing logic

🎯 Future Enhancements πŸš€

βœ… Enhanced Gesture Recognition:
Β Β Β βž– More intuitive gestures for additional functionality.

βœ… Voice Command Integration:
Β Β Β πŸŽ™οΈ Combine hand gestures with voice control for a futuristic experience.

βœ… Customizable UI Dashboard:
Β Β Β πŸ–₯️ A visual interface to tweak settings, sensitivity, and control modes.

βœ… Cross-Platform Compatibility:
Β Β Β πŸ’» Optimizing performance for Windows, macOS, and Linux.


🌟 Experience the Future of Touchless Interaction! ✨

Virtual Mouse brings gesture-based control to life. Forget traditional peripherals – navigate your PC effortlessly, smoothly, and intuitively! 🎯

πŸ“’ Contribute & Collaborate:
Have ideas or improvements? Join the project and help enhance the Virtual Mouse experience! πŸš€

About

Virtual Mouse is an AI-powered, gesture-based control system that replaces traditional peripherals with hand movements. Using MediaPipe for hand tracking and PyAutoGUI for cursor control, it enables seamless clicking, scrolling, and navigation through simple gestures. Experience a futuristic, touchless interaction with your PC! πŸš€πŸ–±οΈ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages