Control your web browser using only hand gestures! This computer vision project allows you to scroll, navigate, and click on web pages without touching your keyboard or mouse.
- ** Intuitive Cursor Control**: Control your mouse cursor by pointing with your index finger
- ** Smart Scrolling**: Scroll up or down by moving your hand to designated screen zones
- ** Natural Click Interaction**: Click by pinching your thumb and index finger together
- ** Real-time Visual Feedback**: On-screen indicators showing gesture recognition and actions
- Python 3.6+
- Webcam
- Dependencies:
- OpenCV
- MediaPipe
- PyAutoGUI
- Clone this repository:
- Install required packages:
Run the main application:
Gesture | Action |
---|---|
Point with index finger | Move cursor |
Move hand above green line | Scroll up |
Move hand below red line | Scroll down |
Pinch thumb and index finger | Click |
Press 'q' on keyboard | Exit application |
Gesture | Action |
---|---|
Point with index finger | Move cursor |
Move hand above green line | Scroll up |
Move hand below red line | Scroll down |
Pinch thumb and index finger | Click |
Press 'q' on keyboard | Exit application |
This project uses:
- MediaPipe for accurate hand landmark detection
- OpenCV for webcam access and visual interface
- PyAutoGUI to control mouse and keyboard actions
The application detects key points on your hand in real-time and translates specific gestures into computer inputs, allowing for touchless interaction with web content.
Adjust these variables in gesture_control.py
to customize the experience:
scroll_amount
: Change scroll speed/distancecooldown
: Adjust response sensitivity- Scroll zone thresholds (currently at 30% and 70% of frame height)
Contributions are welcome
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.