Control Screen Brightness with Hand Gestures Using Python (OpenCV + MediaPipe)
Control your screen brightness using just your hand — no keyboard or mouse required! In this beginner-friendly Python project, you’ll learn how to build a real-time gesture-controlled system using OpenCV, MediaPipe, and a webcam. By measuring the distance between your thumb and index finger, the script dynamically adjusts your screen brightness using the screen-brightness-control library (Windows only).
Perfect for Python beginners exploring computer vision, automation, or interactive projects!
✅ What’s Included:
- Clean, well-commented Python code
- Beginner-friendly function structure
- Works with most webcams and Windows displays
- Easy to modify for other gesture-based controls
💡 You’ll Learn How To:
- Track hand landmarks using MediaPipe
- Calculate finger distance using OpenCV and math
- Map that distance to brightness percentages
- Control brightness in real time