Professional Documents
Culture Documents
Paper01 PDF
Paper01 PDF
SYSTEM
Y. Surya Kumar, V. Shiva Narasimha, V. Nalini, T. Mounika, Dr. P. A. Nageswara Rao
Abstract
In recent years’ driver fatigue is one of the major causes of vehicle accidents in the world. Due to these accidents, many people
lose their lives or get severely injured. A direct way of measuring driver fatigue is measuring the state of the driver i.e. drowsiness. So,
it is very important to detect the drowsiness of the driver to save life and property.
This project is aimed towards developing a prototype for drowsiness detection and accident prevention using Raspberry Pi. This
system is a real-time system which captures image continuously and measures the state of the eye according to the specified algorithm
and gives a warning if required. So, when the closure of the eye exceeds a certain amount which is observed by the camera module
connected to the Raspberry Pi, the driver is identified to be sleepy and an alert is given in the form of a buzzer or any other sound from
the Pygame module present in the Raspbian OS. If the alerts are found to be more than a particular count, the processor gradually
reduces the speed of the vehicle and the system ignition is set to off state by stopping the motor. A GPS module is used to locate the
coordinates of the vehicle and a notification is sent to the registered family or friends’ numbers. If there aren’t any alerts i.e. the eye
closure range is within a certain threshold, then the system lets the engine run without any interruption.
This system continuously monitors the drowsiness of the driver and thus helps in reducing the possibility of occurring accidents.
Keywords: Drowsiness Detection, Raspberry Pi , USB camera, Eye Aspect Ratio , Buzzer, GPS Module.
Fig 2.2 a) 68 Facial Landmarks on Human Face The inclusion of the diode is to prevent voltage spikes
which can occur when the motor stops and the magnetic
field collapses.
2.3 Buzzer alert system using Py Game
The eye_aspect_ratio is calculated at every instant from
the coordinates as shown in the figure. The distance
between the coordinates (p1, p2, p3, p4, p5, p6) in fig(b)
2.4 Motor speed control using PWM Fig 2.4 .a) Interfacing motor with raspberry Pi.
Here, “Vehicle is represented as a Motor”.
Now to turn the motor on the GPIO pin is set HIGH and
LOW to switch of the motor.
After detecting the drowsiness of the driver, a variable
‘buzzer counter’ is added to count the no of buzzers. Each
Reducing the speed of motor by setting the pins ‘1’ (high) Identifying coordinates of the vehicle using the GPS
or ‘0’ (low) the motor either runs at max speed or module and creating a link which is to be forwarded.
completely stops rotating. Now to operate the motor at an
in between speed the GPIO pin should be switched on and The link created using GPS or any other required
off very fast. notification is sent to the registered mobile number using
We can accomplish this by setting the pin as a GPIO pulse Twilio.
width modulated pin .Now the speed of the motor can be
changed by changing the Duty cycle of the pin.
3. Hardware and Software
The Human Drowsiness detection system provides a
solution to the accidents occurring due to the drivers being
in the state of drowsiness. To achieve this the proposed
system includes a collection of hardware components as
well as Software program to provide optimum
solution/results.
2.5 Locating coordinates using GPS module Installed Raspbian os and libraries in raspberry pi. The
libraries which are installed in raspberry pi are
Global Positioning System (GPS) makes use of signals
sent by satellites in space and ground stations on Earth to 1. NumPy
accurately determine their position on Earth. 2. Py Game
3. SciPy
Radio Frequency signals sent from satellites and ground 4. C Make
stations are received by the GPS. GPS makes use of these 5. Dlib
signals to determine its exact position. 6. Open Cv and other similar libraries like setup tool etc.
are installed in it.
6.References
[1] Musale, T., & Pansambal, B. H. DRIVER
DROWSINESS DETECTION TECHNIQUE USING
RASPBERRY PI.
Fig 4 c) The speed of the vehicle gradually decreases when the [2 Soukupova, T., & Cech, J. (2016, May). Eyeblink
number of buzzers are greater than the threshold amount. detection using facial landmarks. In 21st Computer Vision
Winter Workshop, Rimske Toplice, Slovenia .
[3] Šustek, M., Marcaník, M., Tomášek, P., & Úředníček,
Z. (2017). DC motors and servo-motors controlled by
Raspberry Pi 2 B. In MATEC Web of Conferences (Vol.
125, p. 02025). EDP Sciences.
[4] S. Ren, X. Cao, Y. Wei, and J. Sun. Face alignment
at 3000 fps via regressing local binary features. In
Proc. CVPR, 2014.
[5]Mario I Chacon-MurguiaClaudia Prieto-
Resendiz,”Detecting Driver Drowsiness-A survey of
system designs and technology,” IEEE Consumer
Electronics Magazine,
pp.107-108,October 2015.
[6]Mayank Chauhan, Mukesh Sakle”Study & Analysis of
Different Face Detection Techniqes ” International
Fig 4 d) Coordinates of the location are extracted. Journal of Computer Science and Information
Technologies, Vol. 5 (2) , pp 1615-1618,2014.
[7]1. A. A. Asadi, S. Bagheri, A. Imam, E. Jalayeri, W.
Kinsner, and N. Sepehri. Institute of Electrical and
Electronics Engineers Inc. (2016)
[8]W. H. Lee, E. C. Lee, and K. E. Park. Blink detec-
tion robust to various facial poses. Journal of Neu-
roscience Methods, Nov. 2010. 1, 3, 6, 7
[9]F. Yang, X. Yu, J. Huang, P. Yang, and D. Metaxas.
Robust eyelid tracking for fatigue detection. In ICIP,
2012. 1
[10]M. Vanitha., M. Selvalakshmi, R. Selvarasu. Institute
of Electrical and Electronics Engineers Inc. (2016)
5.Conclusion
Driver drowsiness detection and Buzzer alert system is
designed mainly to keep the driver awake while driving to
avoid the accident due to sleepiness the raspberry pi and
camera used to capture eyes or face. Fatigue is measured
by detecting Eye and face using Haar Cascade Classifier,
especially facial landmarks is detected using shape-
predictor and Eye Aspect Ratio (EAR) by calculating the
Euclidean distance between the eyes. Accurate eye
detection and faces in every frame