Drowsiness while driving is common problem in the world. Especially, during long distance drives when a person is alone. A number of commercial solutions are available in the industry. In this small project, an attempt has been made to develop an efficient solution in this regard. We can use this application to detect drowsiness while driving; it can help us to avoid crashes caused by fatigue by alarming drivers to take a break in time. In this product, we measure physical activities like eye blinking (open/close state of eyes), duration in which eye remained close, sagging posture, and leaning of head. We can set a threshold value for each posture and when the threshold value crosses the limit, an alert (in this case a siren) blows out.

Flow of the Application:

  1. Consider a person who is driving a car and a drowsiness detection enabled cam is fixed on the cars’ dashboard, where his face can be viewed properly. Here we have used dlib to detect facial landmark as shown in figure 1 below:

Figure 1: Facial Landmark detection

Figure 2: Eye detection

Figure 3: Eyes closed

Platform Specifications used:

Other Potential Applications:

  1. Attention detection during online/video conferences
  2. Watchman during night duties

Demo Video:


 [1] Soukupová, Tereza and Jan Cech. “Real-Time Eye Blink Detection using Facial Landmarks.” (2016).

Leave a Reply

Your email address will not be published. Required fields are marked *