Driver Drowsiness Detection System using OpenCV | Graduation final year Project with Source Code

preview_player
Показать описание
Driver Drowsiness Detection System using OpenCV | Drowsiness Detection System in Real-Time using OpenCV | Driver Drowsiness detection using OpenCV and Python | Drowsiness Detection using OpenCV & Machine Learning | Driver Drowsiness Detection System Using Python | Computer vision project | OpenCV Project

With this Python project, we will be making a driver drowsiness detection system. A countless number of people drive on the highway day and night.
Taxi drivers, bus drivers, truck drivers and people traveling long-distance suffer from lack of sleep.
Due to which it becomes very dangerous to drive when feeling sleepy.
The majority of accidents happen due to the drowsiness of the driver.
So, to prevent these accidents we will build a system using Python, OpenCV, and Dlib which will alert the driver when he feels sleepy.
Drowsiness detection is a safety technology that can prevent accidents that are caused by drivers who fell asleep while driving.
The objective of this intermediate Python project is to build a drowsiness detection system that will detect that a person’s eyes are closed for a few seconds.
This system will alert the driver when drowsiness is detected.

Download the Source Code for Driver Drowsiness Detection in Python

The requirement for this Python project is a webcam through which we will capture images. You need to have Python (3.6 version recommended) installed on your system, then using pip, you can install the necessary packages.
1. OpenCV – pip install opencv-python (Face and eye detection).
2. Imutils – pip install imutils (To get landmarks of eye).
3. Scipy – pip install scipy (To calculate distance between eye landmarks).
4. Pygame – pip install pygame (To play alarm sound).
5. Dlib - pip install dlib

Summary
Hurray! We have successfully built the Driver Drowsiness detection and warning system in Python. In this, we learned the installation and use of OpenCV, Imutils, Scipy,
Pygame and dlib Librarys.
Hope you enjoyed building this project.
_______________________________________________________________________________________________________________________________________________________________

Other Python Projects:

________________________________________________________________________________________________________________________________________________________________

Connect with me:
_______________________________________________________________________________________________________________________________________________________________
#machinelearning #artificialintelligence #drowsiness #python #projectguru
Рекомендации по теме
Комментарии
Автор

If you are facing "unsupported image type, must be 8bit gray or rgb" issue please install python 3.7. For more details connect over Instagram.

project_guru
Автор

I am currently working on this project, this video is really helpful . Great work 👍

Jasleenkaur
Автор

Literally the best video and the best person that helped me with my project. THANK YOU SO MUCHHH !!!

mugishhh
Автор

its working but make a video of how to integrate it in a car 🚗 and also discuss what upgradation we can make in existing system....😌

vivekkenjale
Автор

Great working project thank you soooo much

selvalakshmi.a
Автор

Bro urgent, I am doing a school project, and I have installed all libraries except dlib, I have installed vs code 2022 with c++ package, but still I get error, it says failed to build installable wheels, when I check for the cmake version it says it is not recognised, but when I install it with pip install cmake it says already satisfied, what should I do 😢

NithinsTube
Автор

Hi, Me again, how can I implement this project in a Jetson nano. Could you give me some advice of how can I use the dlib library on this harware architecture?

stevenzambrano
Автор

Bro, I have installed the python 3.7.7 and dlibs older version 19.24.4, but now when i execute it says, hello from the pygame community, . Https…….., urgent for school project bro 😭

NithinsTube
Автор

🥳🥳 it's working thank you so much 🥳🥳

Premalatha-hu
Автор

Actually i have one question its showing error python exe. M pip install -- upgrade pip for update and run what should I do

tanushrikhandare
Автор

can you make the video on installation of dlib library because when i install then this type of error occure
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

TGBBOSS-mf
Автор

While running the alert messeage is not showing nor the alarm is ringing... please help me out . Thank you in advance. It was a great project. can you provide some links for driver face detection while driving ?

tuhinkumar
Автор

I have installed the imutils even its showing module not found ..
Iam executing the code in IDLE

NithishReddy-dh
Автор

Sir, it's not running in Python 3.12.4 .Its showing the error Error in detection: Unsupported image type, must be 8bit gray or RGB image.Please help

Sandeepkumar-etos
Автор

Failed to build installable wheels for some project.toml based projects (dlib)😭😭 plz help me

nikitabhalke
Автор

The project works very well, but neither the error message nor the music part works. I don't get any errors in the code either. Can you help me?

emiryldz
Автор

Ohh thanks
what additional features can i add to this project.

shining_shani
Автор

Can u please just help me with the visual studio thing from the start of the project means after installation what the steps or process

aakanshakadam
Автор

I am not getting this and tomorrow is my review in my college can u help me with the errors

keerthikolla
Автор

Sir, the output is showing as 1 constantly and it is not changing. If I close the eyes, the alert sound is not heard. Please do help to rectify this error

JAYYASRIS