All projects
Repository
Eye-movement-mouse-control
Control your computer screen's scroll using your **eye blinks** via your webcam!
View source Jupyter Notebook0 stars ยท 0 forks
# ๐๏ธ Eye Blink Scroll Controller
Control your computer screen's scroll using your **eye blinks** via your webcam!
- **Left eye blink** โ Scroll **down**
- **Right eye blink** โ Scroll **up**
This project uses **OpenCV** for real-time face and eye detection and **PyAutoGUI** to simulate scrolling.
---
## ๐ธ Demo
https://user-images.githubusercontent.com/your-demo.gif
---
## ๐ง How It Works
- Uses Haar Cascade classifiers to detect face and eyes.
- Analyzes eye region brightness:
- A **closed eye** appears darker than an open one.
- Scrolls up/down based on which eye is closed while the other is open.
- Has a cooldown to prevent excessive triggering.
---
## ๐ง Features
โ
Real-time eye tracking
โ
Blink-based scrolling logic
โ
No special hardware needed (just a webcam)
โ
Adjustable sensitivity
โ
Visual feedback (bounding boxes on eyes)
---
## ๐ Getting Started
### ๐ฉ Dependencies
Install the required packages:
```bash
pip install opencv-python pyautogui numpy
โถ๏ธ Run the App
python eye_scroll.py
Press q to quit the window.
โ๏ธ Configuration
You can fine-tune the sensitivity by adjusting this parameter in the code:
INTENSITY_THRESHOLD = 60 # Lower = more sensitive to blinking
Adjust scroll_cooldown (in seconds) to control how often scroll is triggered:
scroll_cooldown = 1.0 # seconds between scrolls
๐ ๏ธ Future Improvements
- Add calibration step for more accuracy
- Use Dlib or Mediapipe for better landmark detection
- Support for left/right scrolling
- Add GUI toggle or hotkeys
๐งโ๐ป Author
Nabeel Ali Khan ๐ GitHub ๐ผ AI & ML Enthusiast | Ethical Hacker | Backend Developer
๐ License
This project is licensed under the MIT License.
```