Touchless Display Control
Control brightness with a simple pinch gesture using MediaPipe hand tracking and a local system brightness bridge.
Launch ApplicationWelcome to the Gesture Brightness Control web application!
This project uses OpenCV and MediaPipe machine learning models to track your hand gestures in real-time through your webcam.
By pinching your index finger and thumb, the application calculates the distance between them. This distance is smoothly mapped to your computer's screen brightness percentage using the screen_brightness_control Python library.
Please ensure you grant your browser permission to access your webcam. The application requires an active camera feed to detect your hand gestures.
This application uses a split architecture for maximum flexibility:
| Component | Runs On | Purpose |
|---|---|---|
| Web UI | Netlify (Cloud) | Camera feed + hand gesture detection |
| Local Agent | Your Desktop/Laptop | Receives brightness values + controls OS brightness |
To control your actual system brightness, you must also run the local brightness agent on your computer:
pip install -r requirements.txtpython local_agent.pyhttps://screen-brightness-control.netlify.app/app or http://127.0.0.1:5055 and accept brightness commands from this web app.Mobile browsers cannot directly control system brightness due to browser security restrictions. Your gesture controls will adjust the page brightness visually for demonstration purposes.
📌 Quick Setup for First-Time Users: If running locally on http://127.0.0.1:5000, just run the app without needing the cloud—everything works on your machine!
Click the button below to launch the camera interface and start controlling your brightness hands-free!