Nap Alert is an experimental computer vision app that helps users fight fatigue, micro-sleeping and narcolepsy. It is built using Python and the OpenCV Framework.
Microsleep strikes quickly. You probably don't even realize you're in the process of falling asleep, and almost certainly don't notice that you are blinking for longer than usual. nap-alert uses your computer's webcam to monitor your blink rate and average blink duration. If your eyes stay closed for long periods of time, then the program lets you know that a nap is imminent. Research indicates that this is one of the most effective ways to predict impending microsleep.
Nap Alert is a work in progress. The latest version can be found on the project's GitHub Page