Computer Vision Project | Driver drowsiness detection | Full code explanation | OpenCV Python Dlib
HTML-код
- Опубликовано: 10 сен 2024
- A computer vision project build using Dlib, OpenCV and python. This project includes 68 Landmark detection and the Drowsiness detection better explained from any other video. Do subscribe for more videos like this. Coming up next with astonishing augmented reality from scratch with computer vision.
Please do like and Subscribe to the channel for more such projects.
Github Repo Code : github.com/inf... (Do follow me on github for more projects)
COMPUTER VISION PROJECTS PLAYLIST ( ALL PROJECTS EXPLAINED) :
• Computer Vision Projec...
Any queries related to anything -------------------------------------------------------------
My personal blog : infoaryan.com
Connect me on my Instagram : www.instagram....
Connect me with Facebook : / infoaryanforyou
#drowsinessdetection #computervision #dlib #opencvprojects
I don't understand the language but it seems like I can actually understand how you explain it for some reason. Anyway it's a great video thank you my guy!
Glad to hear that
Simple easy explanation of the code. You made me understand in just 13 min. Thank you sir.
I love it, how you turn your passion into teaching😍🥂
Thankuuh Bhavya. Its indeed the love of you all.
excellent bro. this video is very amazing and good communication skill you know this is my final project in the computer science degree . thank you so much🤩😊🥰
I watched you first videi and i learn alot.. currebtly am working on image encryption and decryption..i am desprtly waiting for the eye blink unlock project....
Love from 🇵🇰
This video is worth for.. many coders dude...❤❤💥💥🔥🔥
to all who are not able to download the .dat file , i tried downloading it on my mobile and then sent it to my pc , it worked
and if it shows any other error like unsupported type , try downgrading numpy to 1.26.4
can you share the shape_predictor_68_face_landmarks.dat file.
not able to install that one , getting error while installing
I'm not able to download the shape_predictor_68_face_landmarks.dat.bz2
Hi,
I am getting error while running the file as
File "C:/Users/Dell/Desktop/Data Science/iNeuron Internship/Model - Video Part/Driver-Drowsiness-Detection-master/driver_drowsiness.py", line 99, in
cv2.imshow("Result of detector", face_frame)
NameError: name 'face_frame' is not defined
[ WARN:0] global C:\Users
unneradmin\AppData\Local\Temp\pip-req-build-1y7gm6kn\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
However face frame is already define
Same here did you gon any solution for this
I'm getting the same error...
Could you please explain how did you clear this error
some of you might get this error:-
1 .dat file is 60+mb so download it and remember to extract
2 install latest all the library which are imported install cpp boost too for dlib
3 this aplication only work in high light use torch (recommended during presentation).
4 face_frame should be global but should not initialize to None i have used following code use it right above while loop
_, f = cap.read()
face_frame = f.copy()
you can ask me if you got futher question
Hello Sir, thank you so much for the lovely explanation of the project .
But I am not able to download the " The 68-landmark detector data (.dat) file " from Github. Can u pls share the link here Sir
@@SS-pe4tu I am unable to paste GitHub link RUclips constantly deleting it search it on Google you will get it on first search
@@shubhamshinde5643 ok thanku sir for replying. I got that file!! Thank you again!!
@@shubhamshinde5643 NameError: name 'frame' is not defined i'm getting this error can u tell whats the actual problem
or do u have github repo so i can check the codes
i love ur first 5 sec of starting -----------> the intro music is awasom
sir pls help me . i am getting in dlib . i tried to work code in vs code . idle and pycharm also still i am getting dlib error pls help
This is outstanding video!! Ur teaching style is so good sir.
This is awesome, Thanks a lot man! can you also explain how the landmarks work how are they detected and the science behind them? I would be very grateful!
Would explain same.
OpenCV(4.6.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
(in line 45 ye vala error aa raha hai how to solve it?? please reply)
Hi am also facing same error, have you found any solutions
@@AAZADI nope
Have you solved your error then plzz reply the code
Aryan verma code rune m problem hori h plz solve krdo issue
Plz upload a video on hand gesture detection with bot calculation
ERROR: Command errored out with exit status 1:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\Programmer\AppData\Local\Programs\Python\Python39\python.exe'.
ERROR: Command errored out with exit status 1: 'C:\Users\Programmer\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
while installing dlib in pycharm it giving me this type of error how I candle it>?
Bhai ..Great explanation.Really appreciate this
predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat
This error comes every time run the code.
Please Help.
Hi, I don't understand the language. Is there any way to explain what I need to get this working?
Thanks you so much from Bolivia!!
Which algorithm is used?
Did you find the answer because I need it too ? PLZ answer
Cool, Very Finely Explained.
while I'm running the code i got an error face_framr is not defined. What i have to do....?
Sir could you please explain more about hog with linear svm detector
Sir dlib install nhi ho rhi vs code m , which ide do you use
Explanation level infinity bro 🔥🔥
Special Thing is that, you explain everything in hindi. Thanks bro.
Which ide you have used bro ?
Can I use pycharm or jupyter notebook ?
Please answer
The dataset is not getting downloaded..can u help please
Sir can we check the accuracy of this model ??
Best explanation ever.
error: OpenCV(4.7.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
why this error happen?
Sir plz Rply meri shape predictor wali ni run ho rahi h why
error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'. help me please :(
dlib_facelandmark = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat
sir could you please help me with this error i tried to download this file from your repo but it didnt work its not opening so please help me as soon as possible
Send me the image of storage directory, means the folder where the file is stored. You may mail or Insta DM me.
Hi bro please help me
File "driver_drowsiness.py", line 15, in
detector = dlib.get_frontal_face_detector()
AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'
I am getting this error
Try to re-intstall the dlib.
It may work.
Run the code in Google collab
@@BabyVickyvibes but from where to use .dat file in Google colab
how to install dlib
pip install dlib is not working for me
please help
In my system cv2 not installed what can do please give me any suggestion
can i do this project in my college for masters degree
I am a master's student and I have this exact same project. Can you help me please?
What is the appropriate hardware to implement the project?
What are the appropriate steps to implement the project? please reply
brother can you tell what libraries have you installed for this project
Landmark detection stops when i close my eyes. Please help. What can i do?
Excellent teaching 👏👏
I can't import dlib in pycharm..How to solve this problem.and then you using software download link and version mention it please help to me sir
I am a master's student and I have the exact same project. Can you help me ?
Can I use ESP32 OR any other solution instead of Raspberry Pi ? Please answer
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
Can night vision detection can be detected with this code?? If not how can we add that to this code
Did you find the answer because I need it too ? PLZ answer
Can it be connected to ras pi to make a power supply giving automatic start system
Can I use ESP32 OR any other solution instead of Raspberry Pi ? Please answer
well explained brother. bai is ke .dat file download nai ho rahi github sa......
very insteresting
god bless you bro
I connected it to a cctv and ip web cam but output lags too.much in frame please help me to solve this
Thanks for great explanation .
Interesting, Do You wanna join our college as professor?It will be relief for me.
where
Im getting error as ....... libGL.so.1: cannot open shared object file: No such file or directory
error: OpenCV(4.6.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
NameError: name 'face_frame' is not defined
i am getting this error sir plz help
iam getting the same error did you fix it?
@@nithinprasad6981 im also getting same error
replace face_frame with frame
in which editor did u write the code
Could you please help for installing dlib package only it is not downloading
What is the technical challenges you faced while making this project ?? Please reply @aryan verma what will be the ans for interview
superb project and well explained
Thank you so much sir.... The code is workingg....
Sir sleeping/drowsy status show hone pr alarm ring hoga kya?
Please reply...
Superb job brother.. Yeh sab hindi main banta h ✌️✌️.. Keep going all the best.. Would love to watch you more and more 😃👏
Indeed a pleasure bro. Will make more for you all.
The dlib library showing too much error during download please help me out to sort it
Sir, Could you tell me accuracy rate that you have obtained through this model?
Bro How to installed the process show the Dlib for this project😢
Superb explanation, thank u
Which software u r using to run this program
Any Book or site u prefer for computer vision Learning
Did you find the answer because I need it too ? PLZ answer
Good job bro, very nicely explained
Hello I was looking for a similar code in C++, can you please make a video of C++ or can you tell how i can get this code in C++, i tried but got some error
Which algorithm is used
Can you please say what technology are we using here?
Augmented reality technology or machine learning technology?
error: OpenCV(4.1.2) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
how to resolve this error
Got the same error pls help
I too got same error. Please help me
I also got the same error can anyone help??
kiya bat hy bro ......bundle of thanks from pakistan
Will this work if there are multiple faces to detect drowsiness from??
Hi aryan im getting error like RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat please help and how to resolve this error
me too bro, did u resolve it?
Hii udit and nitin. There is a file named shape_predictor_68_face_landmark.dat, that can be downloaded from the link given in my github repo.
RUclips videos transcript summarizer project b bnaen na sir
Traceback (most recent call last):
File "D:/internshipython/day20,21/day20/code/exe42.py", line 27, in
detector = dlib.get_frontal_face_detector()
AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector
im facing this error pls help me
Try to reinstall a newer version of dlib
Kaint video veere 👍 Rab tenu chaddi kla ch rkhe 😍
how to play alarm sound
also I got system exit 2 error - how to fix it
Hello, is there possible if this to put in such microcontroller ? Like raspberry and arduino. Thank you so much
Can I use ESP32 OR any other solution instead of Raspberry Pi ? Please answer
bhaiyaa how to execute it in the desktop? can you please guide?
ArgumentError: Python argument types in
shape_predictor.__call__(shape_predictor, numpy.ndarray)
did not match C++ signature:
__call__(class dlib::shape_predictor {lvalue}, class boost::python::api::object image, class boost::python::api::object box)
can someone help me ?
Is this works on Rasbeery pi??
yes this will work. You need to configure few code lines accordingly.
Can I use ESP32 OR any other solution instead of Raspberry Pi ? Please answer
i got error:
Input In [8], in ()
96 cv2.circle(faceframe, (x, y), 1, (255, 255, 255), -1)
98 cv2.imshow("Frame", frame)
---> 99 cv2.imshow("Result of detector", faceframe)
100 key = cv2.waitKey(1)
101 if key == 27:
NameError: name 'faceframe' is not defined
Did you get any solution for this ?
Can u plz help me to install face recognition library to my windows 10? It's not installing..🥺
Please search for dlib installation windows 10. Its very simple once you go through a vidoe tutorial.
Some and easy explanation bro❤
Can we use this project for a College level hackathon???
Unable to open shape_predictor_68_face_landmarks.dat error coming
Bro dlib not working how to solve in pycharm tried anaconda also
Looks like a valuable video. But we cannot understand your language. So please do it in English.
Bro! I couldn’t import dlib package! Can you help me out?
Hello, it says unable to open shape_predictor_68_landmarks_.dat
hey, can we perform it on multiple faces at same time??
Sir i'm a complete beginner can we run this code in jupyter notebook ??
Same doubt!?
sir I am facing this error no module name imutils line no 8 error please help
Well done Aryan😌🥂