Driver Drowsiness Detection System using OpenCV | Graduation final year Project with Source Code
ฝัง
- เผยแพร่เมื่อ 7 ม.ค. 2025
- 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
Please download the source code for the Project using the link: drive.google.c...
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:
GUI Based Scientific Calculator:- • Scientific GUI Calcula...
Face Detection using Python:- • Real time Face detecti...
GUI Based Music player:- • Learn How to Create an...
GUI Based TH-cam Video Downloader:- • Video
GUI Based Digital clock:- • Create a digital clock...
GUI Based Text Editor:- • Build a basic Text Edi...
Virtual Assistant:- • Build Iron Man Jarvis ...
QR Code Generator and Reader:- • Python Project QR Code...
________________________________________________________________________________________________________________________________________________________________
Connect with me:
Facebook:- / ak.kmr
Instagram:- / ak.kmr111
Email:- akshaydhiman685@gmail.com
_______________________________________________________________________________________________________________________________________________________________
Subscribe:- / @project_guru
#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.
Which 3.7 python version?
@@bharaths6538 any
Bhai iska pura setup per bhi video banao
This document is for an old version of Python that is no longer supported. You should upgrade, and read the Python documentation for the current stable release.
@@qwertykishore ame apne school Kai liye ye project bana hai
I am currently working on this project, this video is really helpful . Great work 👍
is this work,did you finish this
Thanks for the appreciation! Let me know if you have any questions.
Literally the best video and the best person that helped me with my project. THANK YOU SO MUCHHH !!!
Glad you liked it. All the best 💯
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 please install the cmake software as well.
@@project_guru same issue still not working
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....😌
Excellent it's working 👍
Glad you like it!
🥳🥳 it's working thank you so much 🥳🥳
@@Premalatha-h8u Glad you liked it.
can you help me for doing this project
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?
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 😭
It means the code is running.
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-et3os please use python 3.17
Actually i have one question its showing error python exe. M pip install -- upgrade pip for update and run what should I do
It means a new version of pip is available, you can run the same command to upgrade it but isn't a necessity. There must be a different error message. Kindly check it.
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
Please install desktop development with C++ package using visual studios. Once done make sure to install cmake using command "pip install cmake" and then install dlib using "pip install dlib".
@@project_guru i did the same process but still getting error, is there any alternative option for dlib
Sorry sir, my program error here
line 33, in
subjects = detect(gray, 0)
^^^^^^^^^^^^^^^
RuntimeError: Unsupported image type, must be 8bit gray or RGB image. Please help me out
@@AchmadArif-m5q kindly share your code.
I'm getting error in installing dlib.I have installed desktop development with C++ package using visual studios and then run the commands you mentioned for cmake and dlib,still same error comes. Please help me out
Please make sure that the 10Gb+ Desktop development with C++ package is properly installed. If the error continues please reinstall python and while installing make sure to build path.
Great working project thank you soooo much
Glad you liked it!!!!
I am getting error as unsupported image type, must be 8bit gray or RGB image . And error is in the line "subjects = detect(gray, 0) " even if I have ran the same code .
Kindly help
Please install python 3.7.
I have installed the imutils even its showing module not found ..
Iam executing the code in IDLE
Kindly check if you have added python to the path or not.
It's not working Where's the mistake not able to find out...after running it's not showing even the error it just displays hello from the pygame community...can plz help
If it is displaying "Hello from Pygame community" it means the code is running. Kindly check if your primary webcam is working properly or please change the value of VideoCapture(0) to VideoCapture(1) if you are using any additional camera.
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?
Did you checked if the frame count is exceeding the limit entered?
How can I check this for my laptop?@@project_guru
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
Once installed kindly run it and there you'll find an option to download multiple packages. Kindly choose desktop development with c++
hi i am getting this error (unable to open shape_predictor_68_face_landmarks.dat) what to do?
Which version of dlib are you using?
@@project_guru how to check i am also getting same error
@@room5079 which version of dlib are you on?
@@project_guru solved bro thanks for your reply😊
Bro how to check the version me also same issue now
While installing dlib package in pip im getting an error. Plz help me out of this. I tried many times but still encountered the same error
Could you please specify the error?
Sir, plz help me to get rid of this error, it shows like: unable to open shape _predictor_68_face_landmarks.dat.
And my dlib version is 19.24.99, and python version is 3.12.4
@@snehadogganal844 kindly install dlib 19.24.4 by running command pip install dlib==19.24.4
@@project_guru still it was not runinmg
@@Computerscience-bd6qq have you passed the file path correctly?
heyy thank you for your help, my shape predictor file is not opening on pc , so error is occurring and it says syntaxError: (unicode error) 'unicodeescape' codec can't decode and moreover that the file cannot be opened so what should i do ?
I believe you are using single backsplash while specifying the path, kindly use double backslashes.
Sir plz Rply face dector 68 wali file run ni ho rahi j@@project_gurumene use script folder me hi Raha h
@@sonamsahu4807 Please mention kya error a rha hai?
Failed to build installable wheels for some project.toml based projects (dlib)😭😭 plz help me
@@nikitabhalke6014 kindly install desktop development with C++ package using visual studios.
Hi after installing visual studio with C++ i'am getting error i'am unable to install dlib can you help me out pls
Kindly brief me about the error you are getting.
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 ?
kindly share your code. I can't understand which link are you talking about.
Dlib not installing bro please help me getting legacy-install-failure error
Kindly install the dependencies required to install dlib. Download and install Visual studios, run it and install Desktop development using c++ package after that install 'cmake' using 'pip install cmake' and finally 'dlib' using 'pip install dlib'.
Try upgrading your pip as well.
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
Kindly increment flag value by 1 with every frame. Check your code.
if ear < thresh:
flag+=1
.
.
.
@@project_guru I checked the code but still it is showing the same as 1
@@JAYYASRIS Kindly share the code.
@@project_guru Here is the code Sir
import cv2
import imutils
import dlib
from scipy.spatial import distance
from imutils import face_utils
from imutils import resize
from pygame import mixer
mixer.init()
mixer.music.load("music.wav")
def eye_aspect_ratio(eye):
A = distance.euclidean(eye[1], eye[5])
B = distance.euclidean(eye[2], eye[4])
C = distance.euclidean(eye[0], eye[3])
ear = (A + B) / (2.0 * C)
return ear
thresh = 0.25
frame_check = 20
flag=0
(lStart, lEnd) = face_utils.FACIAL_LANDMARKS_68_IDXS["left_eye"]
(rStart, rEnd) = face_utils.FACIAL_LANDMARKS_68_IDXS["right_eye"]
detect = dlib.get_frontal_face_detector()
predict = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
cap=cv2.VideoCapture(0)
while True:
ret, frame=cap.read()
frame = imutils.resize(frame, width=450)
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
subjects = detect(gray, 0)
for subject in subjects:
shape = predict(gray, subject)
shape = face_utils.shape_to_np(shape)
leftEye = shape[lStart:lEnd]
rightEye = shape[rStart:rEnd]
leftEAR = eye_aspect_ratio(leftEye)
rightEAR = eye_aspect_ratio(rightEye)
ear = (leftEAR + rightEAR) / 2.0
leftEyeHull = cv2.convexHull(leftEye)
rightEyeHull = cv2.convexHull(rightEye)
cv2.drawContours(frame, [leftEyeHull], -1, (0, 255, 0), 1)
cv2.drawContours(frame, [rightEyeHull], -1, (0, 255, 0), 1)
if ear < thresh:
flag += 1
print (flag)
if flag >= frame_check:
cv2.putText(frame, "****************ALERT!****************", (10, 30),cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
cv2.putText(frame, "****************ALERT!****************", (10,325),cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
mixer.music.play()
else:
flag = 0
cv2.imshow("Frame", frame)
if cv2.waitKey(1) & 0xFF == ord("q"):
break
cv2.destroyAllWindows()
cap.release()
@@project_guru Here is the code Sir.
import cv2
import imutils
import dlib
from scipy.spatial import distance
from imutils import face_utils
from imutils import resize
from pygame import mixer
mixer.init()
mixer.music.load("music.wav")
def eye_aspect_ratio(eye):
A = distance.euclidean(eye[1], eye[5])
B = distance.euclidean(eye[2], eye[4])
C = distance.euclidean(eye[0], eye[3])
ear = (A + B) / (2.0 * C)
return ear
thresh = 0.25
frame_check = 20
flag=0
(lStart, lEnd) = face_utils.FACIAL_LANDMARKS_68_IDXS["left_eye"]
(rStart, rEnd) = face_utils.FACIAL_LANDMARKS_68_IDXS["right_eye"]
detect = dlib.get_frontal_face_detector()
predict = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
cap=cv2.VideoCapture(0)
while True:
ret, frame=cap.read()
frame = imutils.resize(frame, width=450)
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
subjects = detect(gray, 0)
for subject in subjects:
shape = predict(gray, subject)
shape = face_utils.shape_to_np(shape)
leftEye = shape[lStart:lEnd]
rightEye = shape[rStart:rEnd]
leftEAR = eye_aspect_ratio(leftEye)
rightEAR = eye_aspect_ratio(rightEye)
ear = (leftEAR + rightEAR) / 2.0
leftEyeHull = cv2.convexHull(leftEye)
rightEyeHull = cv2.convexHull(rightEye)
cv2.drawContours(frame, [leftEyeHull], -1, (0, 255, 0), 1)
cv2.drawContours(frame, [rightEyeHull], -1, (0, 255, 0), 1)
if ear < thresh:
flag += 1
print (flag)
if flag >= frame_check:
cv2.putText(frame, "****************ALERT!****************", (10, 30),cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
cv2.putText(frame, "****************ALERT!****************", (10,325),cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
mixer.music.play()
else:
flag = 0
cv2.imshow("Frame", frame)
if cv2.waitKey(1) & 0xFF == ord("q"):
break
cv2.destroyAllWindows()
cap.release()
what if my head drops infront of me , it doesnt recognize the eyes so doesnt give the alert
Camera should be strategically placed in such a position that it anyhow capture the eyes but yeah in any scenario if the eyes aren't captured a condition for playing alarm can be implemented.
can we integrate this in web app, where the police is getting the alarms and tracing the particular car in which the driver is dosing?
It can be done.
im getting this command sir what do i do
C:\Users\venka>pip install opencv-python
'pip' is not recognized as an internal or external command,
operable program or batch file.
please kindly help me i dont know how to process this
Kindly reinstall python
sir i am getting dlib not defined error even though i installed dlib successfully
Which code editor/IDE are you using?
sir,How to solve this error
ERROR: Failed building wheel for dlib
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects
Please install desktop development with C++ package.
@project_guru sir even though i have installed c++ package in visual studio i am getting the same error that above one said can you please tell me a solution for this sir
@@battulajagadeesh8895 which version of python are you using?
@@project_guru 3.11
I am not getting this and tomorrow is my review in my college can u help me with the errors
Please tell me the errors you are facing.
Please music is not inserting no file found in directory,it seems
please add a music file in the same directory.
Hey, thanks for this project. But I am getting a error: Could not build wheels for dlib, which is required to install pyproject.toml-based project.
Please help me out with this.
Have you installed desktop development with C++ package?
@@project_guru Yes I did that. But nevermind, the issue is resolved now. I manually downloaded it using the dlib binary file. 👍🏻
@@karanpandey1349 perfect!
I have installed cmake even though I am getting error in installing dlib library can you please help and can you tell where can i get shape predictor face landmarks file
What kind of an error are you getting? Link to download landmark file is attached in the description of the video.
Ohh thanks done.....finally .....
what additional features can i add to this project.
It totally depends on you. You can add anything you want to.
@@project_gurusir can we add flutter for front end?
I am not able to open the shape predictor. (RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat)
Which version of python and dlib are you working on?
@@project_gurucan I use it on vscode?
Hey i have the same error too. can you please tell me how you rectified it?
@@project_guru i have the same error too. I'm using the latest version of python and dlib. Please help me out thanks
@@AafreenJehan Kindly try working with an older version
Sir.
I got error.
It says unable to open shape_predictor_68_face_ landmarks.dat file.
How I should solve it.
Please install older version of dlib
@@project_guru and how should I download the old version of dlib.
And specific process or steps for it?
I have an error :" unsupported image type ,it must be gray or 8bit RGB "
@@growbottofficial kindly install an older version of dlib.
@@project_guru i am getting the same error. if tried to install dlib version 19.24.4 am getting this error ERROR: Failed building wheel for dlib
Failed to build dlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (dlib)
@@project_guru can't install
@@omkar1370 let's connect via Anydesk this weekend and I'll install it.
@@growbottofficial what error are you getting?
Where are you writing the codes? Which app? How to run it? It does not run on the python command prompt! How to run it?
I am using Idle but you can run on any IDE.
Unable to open shape_predictor_68_face_landmarks.dat file
Error please helpp
Please mention the dlib version you are working with.
Dlib 19.24.6
while installing dlib i get an error
error: legacy-install-failure
Did you installed cmake?
@@project_guru yes
But "CMake must be installed to build dlib" tab bhi dikha rha tha Error me
now those "import not resolved" and all other errors are resolved but there is some "inconsistent use of tabs and spaces in indentation" error in my python file. How to get rid of these errors?
Actually I got rid of that error...
But now I am getting "runtime error: unable to open shape_predictor_68_face_landmarks.dat" error .
Excellent 💡
Thankyou!!
Sir ... firstly thank u for full explanation of this project...this is the first project I'm gonna do...but I'm not able to download shape_predictor_68...dat file from modules i don't know why can u please help me with this sir...
It could be a network issue on your end, Kindly try again and if you still face issue you can drop me a message on my email and i'll forward you the file.
Sir i downloaded the file but i was unable to open it since it was in dat format...is that a problem...and I'm getting runtime error as unable to open the file models/shape_predictor_68.dat
@@sivaselvi9447 Kindly check if your code contains the correct path of the file.
@@project_guru thank you so much sir now i got it fixed i redownloaded the dat file from other source and the problem got fixed up.... thankyou so much for replying for every queries sir....
@@sivaselvi9447 welcome
how to yawn detection also in it and also a message system if driver eyes is closed till=5 sec my professor told be to this plz guide
Please drop me an email and I will send you the code that includes yawn detection as well.
Which app we should run the program pycharm or virtual studio
Either would go.
Do we have to use multi threading , while playing the music.
No
Thank you, sir, in advance. But i face some problem in my code , it didn't show the alert massage and the music when i run the code.
import cv2
import imutils
from imutils import face_utils
import dlib
from scipy.spatial import distance
from pygame import mixer
mixer.init()
mixer.music.load("music.wav")
def eye_aspect_ratio(eye):
A=distance.euclidean(eye[1],eye[5])
B=distance.euclidean(eye[2],eye[4])
C=distance.euclidean(eye[0],eye[3])
ear=(A + B) / (2.0)*C
return ear
thresh=0.25
flag=0
frame_check=20
(lStart,lEnd)=face_utils.FACIAL_LANDMARKS_68_IDXS['left_eye']
(rStart,rEnd)=face_utils.FACIAL_LANDMARKS_68_IDXS['right_eye']
detect =dlib.get_frontal_face_detector()
predict=dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
cap=cv2.VideoCapture(0)
while True:
ret,frame=cap.read()
frame=imutils.resize(frame, width=450)
gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
subjects = detect(gray,0)
for subject in subjects:
shape=predict(gray,subject)
shape=face_utils.shape_to_np(shape)
leftEye=shape[lStart:lEnd]
rightEye=shape[rStart:rEnd]
leftEar=eye_aspect_ratio(leftEye)
rightEar=eye_aspect_ratio(rightEye)
ear=(leftEar+rightEar)/2.0
leftEyeHull=cv2.convexHull(leftEye)
rightEyeHull=cv2.convexHull(rightEye)
cv2.drawContours(frame,[leftEyeHull],-1,(0,255,0),1)
cv2.drawContours(frame,[rightEyeHull],-1,(0,255,0),1)
if ear=frame_check:
cv2.putText(frame,"*****ALERT*****",(10,30),cv2.FONT_HERSHEY_SIMPLEX,0.7,(0,0,255),2)
cv2.putText(frame,"*****ALERT*****",(10,325),cv2.FONT_HERSHEY_SIMPLEX,0.7,(0,0,255),2)
mixer.music.play()
else:
flag=0
cv2.imshow("Frame",frame)
key=cv2.waitKey(1) & 0xFF
if key==ord("q"):
break
cv2.destroyAllWindows()
cap.release()
can you help me out from this
@@OmanshuGupta kindly share your source code.
TypeError : shape = predict(gray, subjects)
Pls help to get out from this error
@@RAMKUMAR-y9k kindly email me the source code at akshaydhiman685@gmail.com
when i close my eyes i dont get alert message and alarm doesn ring'
Kindly share your source code.
But i am getting error
Module not found error
No module name scipy pls resolve this
Plz reply fast as soon as possible
kindly install it using command "pip install scipy"
I already installed still showing same issue
@@tanushrikhandare1025 which IDE are you using?
@@project_guru 3.11
I want to know the accuracy of the model is that possible?
You can test the model under various conditions (lightning, distance from camera, different face types, age) to calculate the final accuracy of the model.
Excellent 👍
Thank you mam!
Sir this .dat file is not working now except that everything is fine kindly please provide me the working .dat file
I have properly download it and provide each and every step but at end it shows "exception has occurred:runtime error ""unable to open shape_director_68_phase_landmarks.dat"
It's show error at Time of execution exception error file is unable to open
@@rockingrockgaming6293 which version of dlib are you using?
Latest one
@@project_guru latest one ,I tried everyone version of this project but all of them show that this .dat file is unable to open and all my college friend are facing same problems, .dat file having some problem
What kind of training have you made for the *shape_predictor_68_face_landmarks.dat* ?
It's a pretrained model available over the web and is used to predict human face.
Thanks bro that helped me a lot
Welcome!
Error Unsupported image type ,8bit gray or rgb image
which version are you working on?
@@project_guru python 3.12.4
@@project_guru python version 3.12
can you please tell on which platform you are doing the code like jupyter , visual studio code etc
I am using Python IDLE but you can use any IDE.
@@project_guru Thank you sir. The program is running properly. Thanks alot sir.
@@130_sreetomamukherjee4 Welcome!
i dont know why imutil is not getting install in my cmd
Please specify the error you are getting.
Module cv2 has no attribute 'cvtcolor' error
@@harisandy please share your source code on akshaydhiman685@gmail.com
Sir couldn't open shape predictior landmark datasets please help me sir
Please share the exact error message you are getting.
Dlib.shape_predictor("model/shape_predictor_68_face_landmarks.dat
Error unable to open model/shape prictor
Shape predictior Can't open sir plz help me sir
kindly check the path of the shape prediction file.
brooooooooo thank u soo much :))))))))))))))))))))
Glad you liked it!!!
Sir, please make a video on how to reinstall python and all its libraries for this project. like starting from scratch
Sure!
@@project_guru Sir please make a video on how to build this project from scratch. From downloading python to downloading all the Libraries. Your help is needed sir 🙏🙏
@@tanishdhangar3184 This is from scratch bro...
good work bhaiya can you include yawning in this and how to release camera after showing alert message it is hanging some what
Definitely, I'll do this by this weekend.
If We excute this code using python-3. 12 ??
@@phatannaziya6511 python 3.12 will use newer version of dlib which doesn't have some of the required functions.
We install modules in any version or specific version is there for this project
Unable to open shape detector sirrr what to dooo please replyyyy
Please check if you have entered the correct file path.
sir in our college we have this project is using AI ML how can i do please suggest me
I have done that project as well. Kindly share your email and I'll revert back with the source code.
Please share me the source code too using ai/ml
Superb bro its working🎉.... But need to know that what is in that dat file it was not opening in my window can you help me please
It contains the model learning. There is no need to open it.
@@project_guru ohk bro....but i need to know what is in that file .... It can help me for review purpose.... Please help me
@@project_guruplease reply bro
@@djdhanush9369 It contains the pre trained face recognition data or in other words it contains the knowledge of model.
Where did you imported the installation
Didn't understood your concern. Can you please elaborate what you are trying to ask.
Can i Know which platform ur using for coding?
I am using IDLE but you can choose any IDE.
Does it incluse oops, data science,data structure in it
@@omarabusaeed5396 No
Sir, i run the code but the camera could not open sir. What can i do
Is it displaying any error?
It showing error: unsupported image type ,must be 8bit gray or rgb pls give a solution sir
@@NayanaKN-po5ox please install older version of dlib.
@@project_guru sir dlib version is matching to python 3.12.0 software (in which already I installed) if I install older version of dlib ,it shows installation error give a solution sir pls
@@NayanaKN-po5ox please connect over Instagram and share your Anydesk I'd, and I'll resolve the issue.
@@project_guru ok sir
Unable to open predictor file error please help sir
Which version of dlib are you working with?
Can you please tell which ide u used for this project
I am not using any IDE. I am using python Idle for this.
can we use jupyter notebook?? @Project Guru
Yes you can.
Hey bro can you make video to add some additional things like driver is drinking or using mobile phone
Sure!
Bro please make fast
May I know in which software you have done this project
I used IDLE but you can choose any editor/IDE.
@@project_guru can we use jupyter notebook
@@anshulghanghoria5767 Yes you can.
@@project_guru sir please provide you Facebook ID... Sir can you please provide documentation or report for this project.. please sir
@@nitishsharma7545 Here it is
facebook.com/ak.kmr
Yeah definitely I'll provide you the documentation.
How can I deploy this on an AI camera sir?? Any tuto on that yet??
As in to make a live copy of this to test in a car?
You can use it via any microprocessor like Arduino and or raspberry pi
Which editor you are using
I am using Idle.
How can i download the first two files and how to insert them
You can download the files from the link available in description box, simply copy paste them in your project folder in order to attach them.
I couldn't find them in description box can u comment them below
@@sahithiprathyusha1992 here it is drive.google.com/drive/mobile/folders/1uMQpBDky9NCcCgfmOpDiQr5p-xttdvPU?usp=sharing
Sir, while downloading scipy i get this error
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
What should I do? pls reply..
Which version on Python you are using?
@@project_guru python 11
But scipy has been installed now thanks
@@shaniyadav33 great!
Hey where have you uploaded that landmark.dat file
Plz reply ASAP I have to submit my prj within this week
I have attached the link in the description box.
Thank you for the project. Can you please kindly provide me project report for this project as it will help me in college project submission.
Sure, please share your email id.
Please I need the report sir
Are you using pycham editor for dis project ?
I used IDLE here but you can prefer PyCharm as well.
While running the code , the value of output is always 1 and not showing the alert message ... sir , please help me .
Reply
Kindly share your code.
sir please share your mail address then I will send code
@@ankitapal7136 akshaydhiman685@gmail.com
Great job sir...
I want to create a separate system to implement this project. Can I use ESP32 instead of Raspberry pi ? Please reply
Yeah you can use that
hey please if you found any source to implement this project on a system tell me !!! i need it
@@sabrinechouaib2846 Hello, I'm sorry, at first my project was related to the same idea (AI). But later the project was changed by my supervisor and I went towards signal processing. my regards
@@muhammadsalem9924 ok thanks ☺️ 🙏
runtime error: unable to open shape_predictor_68_face_landmarks.dat even i have downloaded and placed the file in same directory
Kindly check your spellings, it should be same as the file name.
I also getting same error what should I do sir
Bro did you got the solution for this runtime error?
@@project_gurucan you please tell the solution?
Bro runtime error!can you tell the solution..
which IDE are you using
Idle.
@@project_guru can you give me the link for download...im unable to find it
@@incognitomato please download this version www.python.org/downloads/release/python-377/
hi, can i get the project report for this?
Sure please drop me an email on akshaydhiman685@gmail.com
Thaks Sir. Can you please provide report on it .
Please share your Email I'd.
@@project_guru please sir i would also like the report
@@itz_mikhael sure please share your e-mail I'd.
@Prakash0418 please share your e-mail I'd.
Sir, could you pls provide the documentation or report of this project?
Thanks so much...
Yeah definitely, kindly ping me via fb/Instagram or kindly drop me a mail and I'll forward it to you.
@@project_guru sir can u plzzzz send ur Facebook Id...
@@nitishsharma7545 facebook.com/ak.kmr
@@project_guru can I please have your mail-id for documentation
@@brajesh5635 yeah it's akshaydhiman685@gmail.com
sir ,how to find the accuracy of this model
Sir,How it is implemented in real time?..how can I demonstrate its working ?
You can demonstrate it's working the way it's shown here.
how to install dlib
pip install dlib is not working for me
please help
Please refer the video I have mentioned how to install dlib.
@@project_guru please tell me After installing cmake and dlib
Dlib is also working
Can I now uninstall the visual studio from my pc ?
Does uninstalling visual studio affect cmake and dlib ?
@@ash_040 Yes you can uninstall but make sure to not to remove/delete any downloaded file in the process.
open file error how to solve it?
Please share the exact error message.
@@project_guru Sorry to disturb you bro...but i fixed that error...it was totally my fault😅😅...thanks for your video❣️
@@sourabh.bisht.3 ahhh okay!!!
Which datasets you are using for models
We are using a pre built landmark file. You can find the link to it from the description box.