Very Interesting program. My 6 year old brother really liked it after we tweaked the thresholds and added the 'barely awake', 'alert', and 'Scared' cases.
Thank u so much Mr.Mohammed this was the explanation i needed. Not saying that the original article wasn't good enough but your explanations on a some what different approach made it easier to understand and I'm grateful
Traceback (most recent call last): File "C:/Users/HP/Documents/Muniba/Python/drowsiness detection 2.py", line 14, in dlib_facelandmark = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat") RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat what to do to solve this???
Bro i am facing no module named imutils, cv2 , dlib in my project ..created venv and install all the libraries but still throwing ssme error how to fix it ??
I was using Sublime on a Linux computer for this video. However, dlib was installed through command prompt on a virtual environment. I think I went over it in a video before this (Landmark detection). Let me know if you need help finding it.
@Misbah Mohammed yes thanks to your previous video I was able to do calculate the mouth aspect ratio. But now what. But how do combine both results in decision making?
Hi Omar, you have done the major part by calculating the ratio. Now only use a simple function to calculate the ratio for you and then use a threshold level to define whether or not the mouth is open. Like we did for the eye blink detection. Hope it helps
Tell me how to run this code on Google colab because it is a best platform for python code run without install dependencies or libraries for run this code like dlib , time?
Hello Misbah I am trying to add mouth aspect ratio to get a final result with EAR. Can you please give me an idea of how I can combine these two results. Thank You
Hi Omar, previous to this project, I had gone over the face landmark detection, link below. You can look up the coordinates of the left-right side and top-bottom of the lips and then calculate the ratio accordingly. Hope it helps. ua-cam.com/video/SIZNf_Ydplg/v-deo.html
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
Hi, not in this project, but it's not too difficult to add. You'll have to simply play a media file once the user is detected to be drowsy. Hope it helps 🙂
Hi, Running on python shell would be easier. However, if you have Python installed on your computer, you can use command prompt as well. hope it helps.
@@19daredevill bro and this is the only code right fir this project and which kind of python shell is that you are using right now in that code session may I know that name please... For that is that shell can be installed in windows
@@banupriya4852 I was on a linux computer for that project and was using the Linux Terminal for running the code. But you can do the same on the windows power-shell. I'll suggest you to watch the tutorial on face-landmark detection, which is the previous video on my channel. It'll explain some of the basics that you may need for this project. hope it helps.
It's uses the dlib facial landmark detection. I believe I provided the link to the video for it in the description. If not let me know. Hope it helps 🙂
hey, thanks for reply i am getting run time error: unable to open shape_predictor_68_face_landmarks.dat how to resolve this i googled it but din't got any suitable answer. i placed the file in .py file location only but error is not resolved Please help me with this Thanks in Advance
this error is resolved, please explain _,frame what does it mean and i have another question .....according to ibig facial landmarks are from 0 to 68, why we took euclidean dist between eye[1],eye[5] etc why not eye[37],eye[41]. Thanks in advance
@@ManojKumar-zb8ki , sorry just got to see this. For some reason it didn't come up on my notifications. _, frame is just a flag to see whether frame has any image or not.
@@ManojKumar-zb8ki I went over the Euclidean distance for the eyes in the video :) . It's based off of the research paper from those guys. Hope it helps you :)
I wouldn't say beginner's, but it's not too difficult either. As soon as you understand the math behind the blink detection, that's all you need to know. Hope it helps 🙂
Hi, please correct me if I missed anything. But there's no Drowsiness dataset :) . It's being detected in real time and not through machine learning. Hope it helps 🙂
@@19daredevill Assalamu alikum warahmatullahi wabarakathu.hope you are good brother.. When I run your code I get error saying that"unable to open shape_predictor_68_face_landmarks.dat" I think there is some file or dataset missing
@@barkathullanr WalaikumasSalaam brother, thank you for the detailed comment. Please find the link to download the file here github.com/davisking/dlib-models/blob/master/shape_predictor_68_face_landmarks.dat.bz2 I actually went over it in the previous video of this series
Hi, I had tried to put most of it in this video. But if you are looking for any more information and have questions, please put it in the comments here. Hope it helps
@@tushardas3928 for dlib you need to download VISUAL studio for c++ and later on in pycharm try to downloaD VERSION 18.0,rather than the latest version
@@banupriya4852 it's been a while, I don't remember the project very well. But there's a link in the description which goes over the facial landmark project and describes it in more detail.
search for an alert online. make sure its In mp3 or wave format. Install playsound library. So when the eyes are closed for a specified period of time, just make a thread and run this with playsound("audio.mp3/wav")
@@19daredevill muje isko explain krna h ise kese run hoga ye or kese kya kya chhaiye Laptop m isko run krane k liye and how apna face kese ayega detection m ye b btao m
Very Interesting program. My 6 year old brother really liked it after we tweaked the thresholds and added the 'barely awake', 'alert', and 'Scared' cases.
it's showing RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat what to do???????
Same error
Thank u so much Mr.Mohammed this was the explanation i needed. Not saying that the original article wasn't good enough but your explanations on a some what different approach made it easier to understand and I'm grateful
You are most welcome and I'm glad it helped you 🙂
See if this channel is helpful for you and consider subscribing. Take care
Most underrated channel on youTube.
Thank you for your kind words 🙂
Tell me software name on which you feed code
beautiful explanation, left and right confusion just makes me remember from sunil Shetty's movie: "Aapka left ya mera left?"😂😂
Thank you for your hardwork Mr.Mohammed
You are humorous and i loved the tutorial too
Sir ...the packaages are not getting installed in sublime text .? please make a video on it
sir can you add an alarm in this code ...like if the driver is dwownsy ,then there will be an alarm to alert the driver.
i was getting error will u please help me to resolve, i tried by installing dlib and cmake but still it showing dlib module not found
Same here
get_frontal_face_detector is giving an error
Traceback (most recent call last):
File "C:/Users/HP/Documents/Muniba/Python/drowsiness detection 2.py", line 14, in
dlib_facelandmark = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat
what to do to solve this???
Have u did or not
Sir , Im getting this error ,"RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat" i downloaded the file from github as well, still
Same here
why error code "
from scipy.spatial import distance"??
U need to install scipy library
Bro i am facing no module named imutils, cv2 , dlib in my project ..created venv and install all the libraries but still throwing ssme error how to fix it ??
thank you so much, Mr. Mohamed
hello..which IDE did you used for writing the code?i face problem in installing dlib in pycharm
I was using Sublime on a Linux computer for this video. However, dlib was installed through command prompt on a virtual environment. I think I went over it in a video before this (Landmark detection). Let me know if you need help finding it.
@@19daredevill but in window I tried a lot to install dlib but full of errors
@@sajinas488 Bro did u get this error
the windows is executing multiple times ,and when we close the window ,we are being asked to restart the kernal..could you resolve this issue
@Misbah Mohammed yes thanks to your previous video I was able to do calculate the mouth aspect ratio. But now what. But how do combine both results in decision making?
Hi Omar, you have done the major part by calculating the ratio. Now only use a simple function to calculate the ratio for you and then use a threshold level to define whether or not the mouth is open. Like we did for the eye blink detection. Hope it helps
Where did you run this code?
HELP!!!
That A= distance.euclidean (eye 1, eye 5) should be 2 and 6 right? As the mention that (eye landmark 6 cordinate)?
the problem with this code is with mask on(covid-19 requirement) its not detecting the face/eyes can you help?
A fixed threshold of 0.26 depends on the person involved. Not everyone is the same so this approach is not very robust
Yes, you are right. Best we can do is tweak the threshold to get the optimum value
i want to choose this idea as my fyp
Hey I was thinking the same, can u share any contact info? Mail or such.
Tell me how to run this code on Google colab because it is a best platform for python code run without install dependencies or libraries for run this code like dlib , time?
how can i use the drowsineess detector output to control a dc motor
How can i add a registration login page to your code please?
How to install all the packages.. I am not able to download dlib
You can install it by pip install dlib. But what is the error you are getting
Will this work if there are multiple faces to detect drowsiness from??
In this project how can I add registration page I mean form for registration?? If possible help me out??
Not sure if I understood your question. Where are you trying to add the registration page and for what purpose? Let me know if I'm missing anything
Do this project use supervised or unsupervised learning ?
We were not doing any machine learning for this project. The weights file were already trained 🙂
how will u differentiate between blink and drowsiness
how to sove this error AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector' please reply
Could u please tell me the software & libararies that to be installed to make this code run
sir, i am Facing this type of error (RuntimeError: Unable to open C:\Users\Hp\Downloads\shape_predictor_68_face_landmarks\.dat
) what to do ??
have u sorted this error
Do you use GPU?
what is the FPS rate?
which algorithm is used in this model?
thank you, Sir Mohamed :)
how to view the content of 68shape predictor data set?it is a .dat file..how to open it ?
Sir which libraries we should install in pc for this ?
i am gonna subscribe this channel right now .you deserve to be subscribed......
Hello Misbah
I am trying to add mouth aspect ratio to get a final result with EAR. Can you please give me an idea of how I can combine these two results.
Thank You
Hi Omar, previous to this project, I had gone over the face landmark detection, link below. You can look up the coordinates of the left-right side and top-bottom of the lips and then calculate the ratio accordingly. Hope it helps.
ua-cam.com/video/SIZNf_Ydplg/v-deo.html
@@19daredevill yes thanks to your video I was able to do that. But now what. I can MAR. But how do I use that in decision making.
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
have u find the solution of that error?? actually I was also getting same I tried to resolve but unable to find whats the exact error is
@@sagardubey3800 can you help me out for this
Is it camera work in night without light
Is there any alarm sound alert in this project??
Hi, not in this project, but it's not too difficult to add. You'll have to simply play a media file once the user is detected to be drowsy. Hope it helps 🙂
@@19daredevill this is what i came here for, thank you
Hello sir, which device monitors the eye ?
But how implement the code I mean what's the process can you tell?
how to close cv frame window ?
Hi bro i have an doubt that. Where to run this python script. In python shell Or command prompt.
Hi, Running on python shell would be easier. However, if you have Python installed on your computer, you can use command prompt as well. hope it helps.
@@19daredevill bro and this is the only code right fir this project and which kind of python shell is that you are using right now in that code session may I know that name please... For that is that shell can be installed in windows
@@banupriya4852 I was on a linux computer for that project and was using the Linux Terminal for running the code. But you can do the same on the windows power-shell.
I'll suggest you to watch the tutorial on face-landmark detection, which is the previous video on my channel. It'll explain some of the basics that you may need for this project. hope it helps.
@@19daredevill tqq bro..
this is live detection. but how to do it for a video file???
You can replace videoCapture ("video file name") and it'll read the video file for you
Hope it helps
@@19daredevill thank you so much for ur quick response!
If he use sunglass whether it will identify
The eyes should be visible in order to detect the outline. Hope it helps
what is the name of app that we need to download to apply code
It's uses the dlib facial landmark detection. I believe I provided the link to the video for it in the description. If not let me know. Hope it helps 🙂
hello, could you share what is previous video i need to see which you mentioned in this video
Hi, this is the link, hope it helps 🙂
ua-cam.com/video/SIZNf_Ydplg/v-deo.html
hey, thanks for reply
i am getting run time error: unable to open shape_predictor_68_face_landmarks.dat
how to resolve this i googled it but din't got any suitable answer. i placed the file in .py file location only but error is not resolved
Please help me with this
Thanks in Advance
this error is resolved, please explain _,frame what does it mean and i have another question .....according to ibig facial landmarks are from 0 to 68, why we took euclidean dist between eye[1],eye[5] etc why not eye[37],eye[41].
Thanks in advance
@@ManojKumar-zb8ki , sorry just got to see this. For some reason it didn't come up on my notifications. _, frame is just a flag to see whether frame has any image or not.
@@ManojKumar-zb8ki I went over the Euclidean distance for the eyes in the video :) . It's based off of the research paper from those guys. Hope it helps you :)
Sir which software do you use?
this was sublime . running on a linux machine
in which software you are working?
I got error with this dataset
Can you share article Mr.Mohammed?
Hi, yes, but which article are you looking for?
Is this a beginner project?
I wouldn't say beginner's, but it's not too difficult either. As soon as you understand the math behind the blink detection, that's all you need to know. Hope it helps 🙂
How to download driver Drowsiness detection dataset
Hi, please correct me if I missed anything. But there's no Drowsiness dataset :) . It's being detected in real time and not through machine learning. Hope it helps 🙂
@@19daredevill
Assalamu alikum warahmatullahi wabarakathu.hope you are good brother..
When I run your code I get error saying that"unable to open shape_predictor_68_face_landmarks.dat"
I think there is some file or dataset missing
@@barkathullanr WalaikumasSalaam brother, thank you for the detailed comment. Please find the link to download the file here github.com/davisking/dlib-models/blob/master/shape_predictor_68_face_landmarks.dat.bz2
I actually went over it in the previous video of this series
@@19daredevill
JazakAllah qhair brother.
I downloaded the databset from the link given in the description box in the facial landmark detector video..
Sir, do you have a step by step tutorial for this project?
Hi, I had tried to put most of it in this video. But if you are looking for any more information and have questions, please put it in the comments here. Hope it helps
@@19daredevill iam having problem installing dlib lib in pycham plz help
@@tushardas3928 try to install anaconda
@@tushardas3928 for dlib you need to download VISUAL studio for c++ and later on in pycharm try to downloaD VERSION 18.0,rather than the latest version
@@piyushprince8432 Bro can u plz tell me the process how to download & install the dlib library
Hi sir, i am getting the error---- Unable to open shape_predictor_68_face_landmarks.dat, please help
Yaa...same error
Got the solution?
@@priyajoseph7108 yes,you have to download this file and put it in the same directory
@@sagarmehra2875 thanks
@@sagarmehra2875 hi same directory as the python files?
Whether this project comes under deep learning
Part of it does. Where you are using the face landmark detection. However it's on a pretrained dataset
What is the model we are using here..
@@banupriya4852 it's been a while, I don't remember the project very well. But there's a link in the description which goes over the facial landmark project and describes it in more detail.
AsslamuAlikum Brother! would you please share this project documentation
WalaikumasSalaam brother. I did not create any documentation for it. The video is my documentation 😁
Nice
assalamualaikum friend...im from malaysia and im intrested with this project...can you guide me doing this project...
Can u send me report and paper link plese
Bro can u plz tell me how to add alert sound in this project?? It will helps me a lot
search for an alert online. make sure its In mp3 or wave format. Install playsound library. So when the eyes are closed for a specified period of time, just make a thread and run this with playsound("audio.mp3/wav")
What if u blink your eyes
I believe there's a time delay to differentiate a blink and a drowsiness. Hope it helps 🙂
Hi
Can you make video on radiation detection in python language please reply this comment
Radiation detection? What kind of radiations
Can you send me your email id ,
Can someone send me the coding
Kya koi muje btaega iska code kese run hoga plss somebody tell me
Kahan problem horahi hai
@@19daredevill muje isko explain krna h ise kese run hoga ye or kese kya kya chhaiye Laptop m isko run krane k liye and how apna face kese ayega detection m ye b btao m
what are the requirements we need in laptop in order to run this
@@deekshagupta3786 I ran it on a regular laptop with no super hardware. Were you able to follow the tutorial?
@@19daredevill sir I m asking about the compiler
Dlib. Shape_predictor('shape_predictor_68_face_landmarks.dat