A large chunk of road accidents these days can be related to vehicle driver falling alseep, due to many reasons like excessive fatigue to alcohol intoxication. However, the above cases might not be possible to stop leading to their broad and complex circumstances, however, detecting if the driver is getting asleep and warn him/her beforehand is quite possible.
In this program, python image processing is used to detect and constantly monitor vehicle driver's face and eyes. If the program detect any signs of drowsiness, like closing of eyes for more than 2 seconds, it will automatically sound an alarm (here, it is only printing text, however, it can be easily modified into some warning system).
- OpenCV installed for python
- Numpy for python
- If both criteria's are met, then just
python detect.py
, also make sure a camera is connected to PC.