How utkarsh713/virtual-mouse works
AI Virtual Desktop Pro is a webcam-driven desktop controller. Its runtime loop captures and processes camera frames, obtains hand landmarks, maps finger positions and pinches to desktop actions, and displays the annotated view. The sampled source directly supports cursor movement, clicks, dragging, brightness changes, screenshots, and the live window; the README additionally documents scrolling, media and swipe actions, quick launches, and keyboard controls. The repository has one monolithic runtime file, so these components share its path. Documented-only capabilities are identified through README evidence.
Main entry points: virtual_mouse.py Gesture Recognition · README.md Other Gesture Actions
Components 12
Hand Vision
- Frame Capture
virtual_mouse.py - Hand Landmarks
virtual_mouse.py - Live Preview
virtual_mouse.py
Gesture Controls
- Gesture Recognition
virtual_mouse.py - Keyboard Controls
README.md
Desktop Output
- Mouse Actions
virtual_mouse.py - Brightness Control
virtual_mouse.py - Screenshot Capture
virtual_mouse.py - Other Gesture Actions
README.md
Other components
- Webcam
- Desktop System
- Brightness Service
Connections 12
- Webcam → Frame Capture: provides frames
virtual_mouse.py - Frame Capture → Hand Landmarks: processes frames
virtual_mouse.py - Hand Landmarks → Gesture Recognition: supplies landmarks
virtual_mouse.py - Gesture Recognition → Mouse Actions: dispatches actions
virtual_mouse.py - Gesture Recognition → Brightness Control: sets level
virtual_mouse.py - Gesture Recognition → Screenshot Capture: triggers capture
virtual_mouse.py - Mouse Actions → Desktop System: controls pointer
virtual_mouse.py - Screenshot Capture → Desktop System: captures screen
virtual_mouse.py - Brightness Control → Brightness Service: sets brightness
virtual_mouse.py - Frame Capture → Live Preview: displays frame
virtual_mouse.py - Gesture Recognition → Other Gesture Actions: maps gestures
README.md - Keyboard Controls → Other Gesture Actions: controls modes
README.md