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! π
πΉ 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!
π· 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]
- Python 3.x
- Pip for package management
1οΈβ£ Clone the Repository:
git clone https://github.com/your-username/virtual-mouse.git
cd virtual-mouse2οΈβ£ Install Dependencies:
pip install -r requirements.txtIf 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| 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 |
β
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.
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! π