Driving while tired kills people. This app tries to help with that.
It watches your face through your phone camera and detects when you’re getting drowsy. Then it makes noise to wake you up before you crash into something.
How it works
- Camera watches your face
- OpenCV tracks your eyes and facial features
- Algorithm figures out if you’re falling asleep
- App makes loud noises/alerts when you are
The tech
Built with Python and OpenCV because computer vision in Python is pretty straightforward. The hardest part was getting the detection accurate enough to be useful without being annoying.
Key features:
- Real-time face tracking
- Eye aspect ratio monitoring
- Blink pattern analysis
- Configurable alert thresholds
Why I built it
Road accidents from drowsy driving are a real problem. Figured if I could help even one person avoid an accident, it’d be worth the time.
Plus, computer vision is pretty cool when it actually works.