Drowsiness Detection Using Python Opencv
Drowsiness Detection Using Python Opencv
DETECTION BY USING
WEBCAM < A Safty Based Project>
...
}
Table of Content
• Introduction
• Objectives of this project
• Scope of Study
• Technology used
TECHNIQUES
LIBRARIES
ALGORITHMS
Future Enhancement
Instroduction
Drowsiness is a state of near sleep, where the person has a strong desire for sleep. It
has two distinct meanings, referring both to the usual state preceding falling asleep and the
chronic condition referring to being in that state independent of a daily rhythm [16].
Sleepiness can be dangerous when performing tasks that require constant concentration,
such as driving a vehicle. When a person is sufficiently fatigue while driving, they will
experience drowsiness and this leads to increase the factor of road accident.
Figure 1 shows the statistic of road accident in India
from the year 2018 to 2023 provided by IIROS (Indian
Institute of Road Safety). The numbers of vehicles involved
in road accident keep increasing each year. From Figure 1,
car and taxi type of vehicles shows about nearly 400,000
cases of road accident has been recorded. It keeps increasing
every year and by the year 2021 it shows the number of road
FIG 1 : Road Accidents In India
accident were recorded by IIROS are nearly 500,000.
Objectives of this project
1. PYTHON
2. IMAGE PROCESSING
3. MACHINE LEARNING
LIBRARIES
● OpenCV
● Dlib
● Py game
● NumPy and SciPy ALGORITHM
● Imutils • EAR
Detection
TECHNIQUES
PYTHON
Python is an interpreted, high-
level, general-purpose MACHINE LEARNING
Machine learning is the scientific study
programming language.
of algorithms and statistical models that
computer systems use in order to
IMAGE PROCESSING perform a specific task effectively
without using explicit instructions,
digital image processing is the use of relying on patterns and inference
computer algorithms to perform image instead.
processing on digital images.
{ .. LIBRARIES
}
algorithms or statistical models are
used alongside OpenCV
incorporated into the drowsiness
detection system.
..
ALGORITHM
EAR Detection
• Time-of-Day Analysis:
By analyzing the time of day, the system can infer patterns in driver behavior, such as increased drowsiness during late-night or early-morning hours, allowing for adaptive alertness
thresholds.
• Duration of Alertness:
Monitoring the duration of continuous driving without breaks helps identify fatigue buildup, triggering alerts when prolonged periods of driving occur without rest.
• Blink Frequency and Duration:
Tracking the frequency and duration of eye blinks over time provides insights into changes in alertness levels, with longer or more frequent blinks indicating potential drowsiness.
• Reaction Time Analysis:
Monitoring the driver's reaction time to external stimuli over time helps detect delays, which could be indicative of decreased alertness or fatigue.
• Session Logging and Analysis:
Recording timestamps of significant events such as alerts, driver interventions, or environmental changes allows for post-session analysis to identify patterns and trends in
drowsiness occurrence.
By integrating time-related functions into the drowsiness detection system, it becomes more robust and capable of providing timely alerts and interventions to ensure driver safety on
the road.