Control your computer mouse using hand gestures detected from your webcam in real-time.
- Real-time hand detection using MediaPipe
- Mouse cursor control with index finger
- Click gesture by bringing thumb and index finger together
- Works with any webcam
- Python 3.10 or earlier (MediaPipe compatibility)
- opencv-python
- mediapipe
- pyautogui
- numpy
py -m pip install opencv-python mediapipe pyautogui numpypy hand_control.pyPress 'Q' to quit the application.
- The index finger (landmark 8) controls mouse movement
- Bringing thumb (landmark 4) close to index finger triggers a click
- Uses 21 hand landmarks detected by MediaPipe
Hand-Gesture-Control/
├── hand_control.py
├── hand_landmarker.task
└── README.md
Renad Eng
MIT