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.
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 😢
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 😭
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?
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".
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.
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 ?
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
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.
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.
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 ?
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
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.
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 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'.
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
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
@@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
@@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
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
@@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)
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
@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
You can test the model under various conditions (lightning, distance from camera, different face types, age) to calculate the final accuracy of the model.
okay i was able to fix the issue but i have noticed the detection isn't 100% accurate, like when i wear glasses or look down it starts to beep. is there anyway to increase the accuracy
@@Sana-uf8jq while looking down it seems like the EAR's value decreases hence it plays alarm. In real world it could be considered as a sign of fatigue so playing alarm would be crucial.
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
@@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....
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"
@@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
@@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 🙏🙏
@@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
@@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
@@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 ?
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
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.
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 😭
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 💯
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....😌
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?
hi sir, i am getting this error (unable to open shape_predictor_68_face_landmarks.dat) what to do?
Kindly install an older version of dlib.
🥳🥳 it's working thank you so much 🥳🥳
@@Premalatha-h8u Glad you liked it.
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.
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
Excellent it's working 👍
Glad you like it!
RuntimeError: Unsupported image type, must be 8bit gray or RGB image. i have this error so what can i do
@@ezhilamudhan9023 which version are you using?
@@project_guru3.12
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
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.
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
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.
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.
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++
I am not able to open the shape predictor (Runtime Error: Unable to open shape_predictor_68_face_landmarks.dat)
Which version of dlib are you on?
@@project_guru 19.24.2
19.24.2
@@project_guru
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.
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.
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.
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.
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?
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?
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?
Great working project thank you soooo much
Glad you liked it!!!!
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.
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!
sir i am getting dlib not defined error even though i installed dlib successfully
Which code editor/IDE are you using?
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.
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
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.
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.
Do we have to use multi threading , while playing the music.
No
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()
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.
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.
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?
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 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.
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.
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
its showing "Unable to open models/shape_predictor_68_face_landmarks.dat" error
i have downloaded the dat file then too its showing error
Have you installed dlib?
sir i have the same issue , and i have downloaded all the libraries@@project_guru
okay i was able to fix the issue but i have noticed the detection isn't 100% accurate, like when i wear glasses or look down it starts to beep. is there anyway to increase the accuracy
@@Sana-uf8jq while looking down it seems like the EAR's value decreases hence it plays alarm. In real world it could be considered as a sign of fatigue so playing alarm would be crucial.
@@Sana-uf8jq Coming towards glasses it doesn't have any problem with that. It does work pretty smoothly even with glasses on.
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
Module cv2 has no attribute 'cvtcolor' error
@@harisandy please share your source code on akshaydhiman685@gmail.com
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
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.
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!
Unable to open shape_predictor_68_face_landmarks.dat file
Error please helpp
Please mention the dlib version you are working with.
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
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?
Does it incluse oops, data science,data structure in it
@@omarabusaeed5396 No
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
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?
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
Excellent 💡
Thankyou!!
Hey bro can you make video to add some additional things like driver is drinking or using mobile phone
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.
when i close my eyes i dont get alert message and alarm doesn ring'
Kindly share your source code.
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...
Can you please tell which ide u used for this project
I am not using any IDE. I am using python Idle for this.
hi, can i get the project report for this?
Sure please drop me an email on akshaydhiman685@gmail.com
brooooooooo thank u soo much :))))))))))))))))))))
Glad you liked it!!!
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.
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.
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
Can i Know which platform ur using for coding?
I am using IDLE but you can choose any IDE.
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.
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
can we use jupyter notebook?? @Project Guru
Yes you can.
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.
Unable to open the shape predictor file run time error
Please make sure dlib is properly installed.
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
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.
Excellent 👍
Thank you mam!
Sir, i run the code but the camera could not open sir. What can i do
Is it displaying any error?
sir ,how to find the accuracy of this model
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
i dont know why imutil is not getting install in my cmd
Please specify the error you are getting.
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 ☺️ 🙏
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
Good yr
Thanks brother !!
Are you using pycham editor for dis project ?
I used IDLE here but you can prefer PyCharm as well.
Can I get report pdf for this
Sure, please drop me an email at akshaydhiman685@gmail.com
Unable to open predictor file error please help sir
Which version of dlib are you working with?
Unsupported image type, must be 8bit gray or rgb image
Please install python 3.7
hii! can you please share project report on this?
@@Arcgamerz27 Sure, please drop me an email on akshaydhiman685@gmail.com
Thanks bro that helped me a lot
Welcome!
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
Which algorithm is used in this project
HOG
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
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.
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.
which IDE are you using
Idle.
@@project_guru can you give me the link for download...im unable to find it
@@universe99295 please download this version www.python.org/downloads/release/python-377/
I have a problem with compile with music.wav
Please specify the error
no module named cv2 error
Kindly install OpenCV. Run Command 'pip install opencv-python' in cmd for the same.