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

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2024

ความคิดเห็น • 472

  • @project_guru
    @project_guru  3 หลายเดือนก่อน +5

    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.

    • @bharaths6538
      @bharaths6538 3 หลายเดือนก่อน +2

      Which 3.7 python version?

    • @project_guru
      @project_guru  3 หลายเดือนก่อน +1

      @@bharaths6538 any

    • @endstarcomedy598
      @endstarcomedy598 2 หลายเดือนก่อน +1

      Bhai iska pura setup per bhi video banao

    • @qwertykishore
      @qwertykishore 2 หลายเดือนก่อน +1

      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.

    • @endstarcomedy598
      @endstarcomedy598 2 หลายเดือนก่อน

      @@qwertykishore ame apne school Kai liye ye project bana hai

  • @NithinsTube
    @NithinsTube 25 วันที่ผ่านมา +3

    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 😢

    • @project_guru
      @project_guru  25 วันที่ผ่านมา

      @@NithinsTube please install the cmake software as well.

  • @NithinsTube
    @NithinsTube 25 วันที่ผ่านมา +3

    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 😭

  • @mugishhh
    @mugishhh 3 หลายเดือนก่อน +2

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

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      Glad you liked it. All the best 💯

  • @vivekkenjale
    @vivekkenjale 4 หลายเดือนก่อน +4

    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....😌

  • @stevenzambrano0318
    @stevenzambrano0318 ปีที่แล้ว +4

    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?

  • @harshalmali9059
    @harshalmali9059 8 หลายเดือนก่อน +3

    hi sir, i am getting this error (unable to open shape_predictor_68_face_landmarks.dat) what to do?

    • @project_guru
      @project_guru  8 หลายเดือนก่อน +1

      Kindly install an older version of dlib.

  • @Premalatha-h8u
    @Premalatha-h8u หลายเดือนก่อน +1

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

    • @project_guru
      @project_guru  25 วันที่ผ่านมา

      @@Premalatha-h8u Glad you liked it.

  • @tanushrikhandare1025
    @tanushrikhandare1025 ปีที่แล้ว +3

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

    • @project_guru
      @project_guru  ปีที่แล้ว

      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.

  • @Sandeepkumar-et3os
    @Sandeepkumar-et3os 3 หลายเดือนก่อน +2

    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

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@Sandeepkumar-et3os please use python 3.17

  • @vasika0026
    @vasika0026 8 หลายเดือนก่อน +2

    Excellent it's working 👍

    • @project_guru
      @project_guru  7 หลายเดือนก่อน +2

      Glad you like it!

  • @ezhilamudhan9023
    @ezhilamudhan9023 3 หลายเดือนก่อน +2

    RuntimeError: Unsupported image type, must be 8bit gray or RGB image. i have this error so what can i do

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@ezhilamudhan9023 which version are you using?

    • @sppujari99
      @sppujari99 2 หลายเดือนก่อน

      ​@@project_guru3.12

  • @TGBBOSS-m3f
    @TGBBOSS-m3f ปีที่แล้ว +4

    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

    • @project_guru
      @project_guru  ปีที่แล้ว

      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".

    • @AshwiniSapkale-q8k
      @AshwiniSapkale-q8k 19 วันที่ผ่านมา

      ​@@project_guru i did the same process but still getting error, is there any alternative option for dlib

  • @NithishReddy-d9h
    @NithishReddy-d9h ปีที่แล้ว +3

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

    • @project_guru
      @project_guru  ปีที่แล้ว

      Kindly check if you have added python to the path or not.

  • @emiryldz337
    @emiryldz337 9 หลายเดือนก่อน +2

    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?

    • @project_guru
      @project_guru  9 หลายเดือนก่อน

      Did you checked if the frame count is exceeding the limit entered?

    • @emiryldz337
      @emiryldz337 9 หลายเดือนก่อน

      How can I check this for my laptop?@@project_guru

  • @KhushiJain-xx2yk
    @KhushiJain-xx2yk 5 หลายเดือนก่อน +1

    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

    • @project_guru
      @project_guru  5 หลายเดือนก่อน

      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.

  • @tuhinkumar4397
    @tuhinkumar4397 ปีที่แล้ว +2

    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 ?

    • @project_guru
      @project_guru  ปีที่แล้ว

      kindly share your code. I can't understand which link are you talking about.

  • @aakanshakadam7085
    @aakanshakadam7085 11 หลายเดือนก่อน +2

    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

    • @project_guru
      @project_guru  11 หลายเดือนก่อน +1

      Once installed kindly run it and there you'll find an option to download multiple packages. Kindly choose desktop development with c++

  • @rinkisharma5334
    @rinkisharma5334 8 หลายเดือนก่อน +2

    I am not able to open the shape predictor (Runtime Error: Unable to open shape_predictor_68_face_landmarks.dat)

    • @project_guru
      @project_guru  8 หลายเดือนก่อน

      Which version of dlib are you on?

    • @rinkisharma5334
      @rinkisharma5334 8 หลายเดือนก่อน

      @@project_guru 19.24.2

    • @rinkisharma5334
      @rinkisharma5334 8 หลายเดือนก่อน

      19.24.2
      @@project_guru

  • @TrayeeNayak
    @TrayeeNayak 3 หลายเดือนก่อน +1

    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

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      Please install python 3.7.

  • @nikitabhalke6014
    @nikitabhalke6014 3 หลายเดือนก่อน +2

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

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@nikitabhalke6014 kindly install desktop development with C++ package using visual studios.

  • @jayashreeramesh6990
    @jayashreeramesh6990 ปีที่แล้ว +2

    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

    • @project_guru
      @project_guru  ปีที่แล้ว

      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.

  • @cisemayaz6662
    @cisemayaz6662 8 หลายเดือนก่อน +2

    what if my head drops infront of me , it doesnt recognize the eyes so doesnt give the alert

    • @project_guru
      @project_guru  8 หลายเดือนก่อน +1

      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.

  • @yashneetkaur-rx4gw
    @yashneetkaur-rx4gw 5 หลายเดือนก่อน +1

    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 ?

    • @project_guru
      @project_guru  4 หลายเดือนก่อน

      I believe you are using single backsplash while specifying the path, kindly use double backslashes.

    • @sonamsahu4807
      @sonamsahu4807 4 หลายเดือนก่อน +1

      Sir plz Rply face dector 68 wali file run ni ho rahi j​@@project_gurumene use script folder me hi Raha h

    • @project_guru
      @project_guru  4 หลายเดือนก่อน

      @@sonamsahu4807 Please mention kya error a rha hai?

  • @snehadogganal844
    @snehadogganal844 3 หลายเดือนก่อน +2

    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

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@snehadogganal844 kindly install dlib 19.24.4 by running command pip install dlib==19.24.4

    • @Computerscience-bd6qq
      @Computerscience-bd6qq 3 หลายเดือนก่อน +1

      @@project_guru still it was not runinmg

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@Computerscience-bd6qq have you passed the file path correctly?

  • @hemadasari1573
    @hemadasari1573 11 หลายเดือนก่อน +1

    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

    • @project_guru
      @project_guru  11 หลายเดือนก่อน

      Could you please specify the error?

  • @selvalakshmi.a2405
    @selvalakshmi.a2405 ปีที่แล้ว +2

    Great working project thank you soooo much

  • @avignesh566
    @avignesh566 ปีที่แล้ว +2

    Hi after installing visual studio with C++ i'am getting error i'am unable to install dlib can you help me out pls

    • @project_guru
      @project_guru  ปีที่แล้ว

      Kindly brief me about the error you are getting.

  • @keerthikolla9096
    @keerthikolla9096 ปีที่แล้ว +4

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

    • @project_guru
      @project_guru  ปีที่แล้ว

      Please tell me the errors you are facing.

  • @BurraShiva25
    @BurraShiva25 ปีที่แล้ว +2

    Please music is not inserting no file found in directory,it seems

    • @project_guru
      @project_guru  ปีที่แล้ว

      please add a music file in the same directory.

  • @karanpandey1349
    @karanpandey1349 ปีที่แล้ว +3

    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.

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      Have you installed desktop development with C++ package?

    • @karanpandey1349
      @karanpandey1349 ปีที่แล้ว +1

      @@project_guru Yes I did that. But nevermind, the issue is resolved now. I manually downloaded it using the dlib binary file. 👍🏻

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@karanpandey1349 perfect!

  • @nehaayesha1623
    @nehaayesha1623 ปีที่แล้ว +3

    sir i am getting dlib not defined error even though i installed dlib successfully

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      Which code editor/IDE are you using?

  • @saishreer.narendra6446
    @saishreer.narendra6446 6 หลายเดือนก่อน +1

    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?

    • @project_guru
      @project_guru  6 หลายเดือนก่อน

      I am using Idle but you can run on any IDE.

  • @Garuda-sd3cp
    @Garuda-sd3cp 7 หลายเดือนก่อน +1

    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

    • @project_guru
      @project_guru  6 หลายเดือนก่อน

      Kindly reinstall python

  • @bhanutejacherupally2797
    @bhanutejacherupally2797 ปีที่แล้ว +2

    Dlib not installing bro please help me getting legacy-install-failure error

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      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'.

    • @project_guru
      @project_guru  ปีที่แล้ว

      Try upgrading your pip as well.

  • @AchmadArif-m5q
    @AchmadArif-m5q 3 หลายเดือนก่อน +1

    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

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@AchmadArif-m5q kindly share your code.

  • @Studio-gs7ye
    @Studio-gs7ye ปีที่แล้ว +1

    Do we have to use multi threading , while playing the music.

  • @JAYYASRIS
    @JAYYASRIS ปีที่แล้ว +3

    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
      @project_guru  ปีที่แล้ว +1

      Kindly increment flag value by 1 with every frame. Check your code.
      if ear < thresh:
      flag+=1
      .
      .
      .

    • @JAYYASRIS
      @JAYYASRIS ปีที่แล้ว +2

      @@project_guru I checked the code but still it is showing the same as 1

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      @@JAYYASRIS Kindly share the code.

    • @JAYYASRIS
      @JAYYASRIS ปีที่แล้ว

      @@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()

    • @JAYYASRIS
      @JAYYASRIS ปีที่แล้ว +1

      @@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()

  • @KPriyanka-js9qj
    @KPriyanka-js9qj 6 หลายเดือนก่อน +1

    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
      @project_guru  6 หลายเดือนก่อน

      What kind of an error are you getting? Link to download landmark file is attached in the description of the video.

  • @OmanshuGupta
    @OmanshuGupta 10 หลายเดือนก่อน +1

    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.

    • @OmanshuGupta
      @OmanshuGupta 10 หลายเดือนก่อน

      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()

    • @OmanshuGupta
      @OmanshuGupta 10 หลายเดือนก่อน +1

      can you help me out from this

    • @project_guru
      @project_guru  10 หลายเดือนก่อน

      @@OmanshuGupta kindly share your source code.

  • @growbottofficial
    @growbottofficial 3 หลายเดือนก่อน +1

    I have an error :" unsupported image type ,it must be gray or 8bit RGB "

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@growbottofficial kindly install an older version of dlib.

    • @omkar1370
      @omkar1370 3 หลายเดือนก่อน +1

      @@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)

    • @growbottofficial
      @growbottofficial 3 หลายเดือนก่อน +1

      ​@@project_guru can't install

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@omkar1370 let's connect via Anydesk this weekend and I'll install it.

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@growbottofficial what error are you getting?

  • @JyothiKommoju-z5d
    @JyothiKommoju-z5d ปีที่แล้ว +2

    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
      @project_guru  ปีที่แล้ว

      Please install desktop development with C++ package.

    • @battulajagadeesh8895
      @battulajagadeesh8895 ปีที่แล้ว +1

      @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

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@battulajagadeesh8895 which version of python are you using?

    • @battulajagadeesh8895
      @battulajagadeesh8895 ปีที่แล้ว

      @@project_guru 3.11

  • @JEEVAHARINIKB
    @JEEVAHARINIKB 5 หลายเดือนก่อน +2

    I want to know the accuracy of the model is that possible?

    • @project_guru
      @project_guru  5 หลายเดือนก่อน

      You can test the model under various conditions (lightning, distance from camera, different face types, age) to calculate the final accuracy of the model.

  • @vedantnaikwadi5394
    @vedantnaikwadi5394 6 หลายเดือนก่อน +1

    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

    • @project_guru
      @project_guru  5 หลายเดือนก่อน

      Please drop me an email and I will send you the code that includes yawn detection as well.

  • @AKASHUC-wl8pw
    @AKASHUC-wl8pw 6 หลายเดือนก่อน +1

    Which app we should run the program pycharm or virtual studio

    • @project_guru
      @project_guru  6 หลายเดือนก่อน

      Either would go.

  • @RAMKUMAR-y9k
    @RAMKUMAR-y9k 3 หลายเดือนก่อน +2

    TypeError : shape = predict(gray, subjects)
    Pls help to get out from this error

    • @project_guru
      @project_guru  3 หลายเดือนก่อน +1

      @@RAMKUMAR-y9k kindly email me the source code at akshaydhiman685@gmail.com

  • @himanshidwivedi3800
    @himanshidwivedi3800 7 หลายเดือนก่อน +1

    its showing "Unable to open models/shape_predictor_68_face_landmarks.dat" error
    i have downloaded the dat file then too its showing error

    • @project_guru
      @project_guru  7 หลายเดือนก่อน

      Have you installed dlib?

    • @Sana-uf8jq
      @Sana-uf8jq 7 หลายเดือนก่อน +1

      sir i have the same issue , and i have downloaded all the libraries@@project_guru

    • @Sana-uf8jq
      @Sana-uf8jq 7 หลายเดือนก่อน +1

      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

    • @project_guru
      @project_guru  7 หลายเดือนก่อน

      @@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.

    • @project_guru
      @project_guru  7 หลายเดือนก่อน +1

      @@Sana-uf8jq Coming towards glasses it doesn't have any problem with that. It does work pretty smoothly even with glasses on.

  • @phatannaziya6511
    @phatannaziya6511 3 หลายเดือนก่อน +1

    If We excute this code using python-3. 12 ??

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@phatannaziya6511 python 3.12 will use newer version of dlib which doesn't have some of the required functions.

    • @phatannaziya6511
      @phatannaziya6511 2 หลายเดือนก่อน

      We install modules in any version or specific version is there for this project

  • @harisandy
    @harisandy 28 วันที่ผ่านมา +1

    Module cv2 has no attribute 'cvtcolor' error

    • @project_guru
      @project_guru  25 วันที่ผ่านมา

      @@harisandy please share your source code on akshaydhiman685@gmail.com

  • @sivaselvi9447
    @sivaselvi9447 ปีที่แล้ว +4

    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...

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      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.

    • @sivaselvi9447
      @sivaselvi9447 ปีที่แล้ว +1

      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
      @project_guru  ปีที่แล้ว

      @@sivaselvi9447 Kindly check if your code contains the correct path of the file.

    • @sivaselvi9447
      @sivaselvi9447 ปีที่แล้ว +1

      @@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....

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@sivaselvi9447 welcome

  • @stevenzambrano0318
    @stevenzambrano0318 ปีที่แล้ว +1

    What kind of training have you made for the *shape_predictor_68_face_landmarks.dat* ?

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      It's a pretrained model available over the web and is used to predict human face.

  • @130_sreetomamukherjee4
    @130_sreetomamukherjee4 6 หลายเดือนก่อน +1

    can you please tell on which platform you are doing the code like jupyter , visual studio code etc

    • @project_guru
      @project_guru  6 หลายเดือนก่อน

      I am using Python IDLE but you can use any IDE.

    • @130_sreetomamukherjee4
      @130_sreetomamukherjee4 6 หลายเดือนก่อน +1

      @@project_guru Thank you sir. The program is running properly. Thanks alot sir.

    • @project_guru
      @project_guru  6 หลายเดือนก่อน

      @@130_sreetomamukherjee4 Welcome!

  • @Aditya-cn8pd
    @Aditya-cn8pd ปีที่แล้ว +2

    Unable to open shape_predictor_68_face_landmarks.dat file
    Error please helpp

    • @project_guru
      @project_guru  ปีที่แล้ว

      Please mention the dlib version you are working with.

  • @rockingrockgaming6293
    @rockingrockgaming6293 10 หลายเดือนก่อน +2

    Sir this .dat file is not working now except that everything is fine kindly please provide me the working .dat file

    • @rockingrockgaming6293
      @rockingrockgaming6293 10 หลายเดือนก่อน +1

      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"

    • @rockingrockgaming6293
      @rockingrockgaming6293 10 หลายเดือนก่อน +1

      It's show error at Time of execution exception error file is unable to open

    • @project_guru
      @project_guru  10 หลายเดือนก่อน

      @@rockingrockgaming6293 which version of dlib are you using?

    • @rockingrockgaming6293
      @rockingrockgaming6293 10 หลายเดือนก่อน

      Latest one

    • @rockingrockgaming6293
      @rockingrockgaming6293 10 หลายเดือนก่อน

      @@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

  • @t-rex443
    @t-rex443 10 หลายเดือนก่อน +1

    Sir.
    I got error.
    It says unable to open shape_predictor_68_face_ landmarks.dat file.
    How I should solve it.

    • @project_guru
      @project_guru  10 หลายเดือนก่อน

      Please install older version of dlib

    • @t-rex443
      @t-rex443 10 หลายเดือนก่อน

      @@project_guru and how should I download the old version of dlib.
      And specific process or steps for it?

  • @omarabusaeed5396
    @omarabusaeed5396 2 หลายเดือนก่อน +1

    Does it incluse oops, data science,data structure in it

    • @project_guru
      @project_guru  2 หลายเดือนก่อน

      @@omarabusaeed5396 No

  • @bikashsasmal1156
    @bikashsasmal1156 ปีที่แล้ว +2

    sir in our college we have this project is using AI ML how can i do please suggest me

    • @project_guru
      @project_guru  ปีที่แล้ว

      I have done that project as well. Kindly share your email and I'll revert back with the source code.

    • @zaherabegum1808
      @zaherabegum1808 5 หลายเดือนก่อน

      Please share me the source code too using ai/ml

  • @shining_shani
    @shining_shani ปีที่แล้ว +2

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

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      It totally depends on you. You can add anything you want to.

    • @MuhammadUsama-fl8yv
      @MuhammadUsama-fl8yv ปีที่แล้ว

      ​@@project_gurusir can we add flutter for front end?

  • @saakshishetty2448
    @saakshishetty2448 3 หลายเดือนก่อน +2

    Error Unsupported image type ,8bit gray or rgb image

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      which version are you working on?

    • @saakshishetty2448
      @saakshishetty2448 3 หลายเดือนก่อน

      @@project_guru python 3.12.4

    • @saakshishetty2448
      @saakshishetty2448 3 หลายเดือนก่อน

      ​@@project_guru python version 3.12

  • @punitkirtuniyaYoutube
    @punitkirtuniyaYoutube ปีที่แล้ว +2

    Excellent 💡

  • @Ajazahmad7317
    @Ajazahmad7317 2 วันที่ผ่านมา

    Hey bro can you make video to add some additional things like driver is drinking or using mobile phone

  • @tech4tomorrow
    @tech4tomorrow ปีที่แล้ว +2

    good work bhaiya can you include yawning in this and how to release camera after showing alert message it is hanging some what

    • @project_guru
      @project_guru  ปีที่แล้ว

      Definitely, I'll do this by this weekend.

  • @tusharkhajuria-e2m
    @tusharkhajuria-e2m 7 หลายเดือนก่อน +1

    when i close my eyes i dont get alert message and alarm doesn ring'

    • @project_guru
      @project_guru  7 หลายเดือนก่อน

      Kindly share your source code.

  • @shining_shani
    @shining_shani ปีที่แล้ว +3

    Sir, please make a video on how to reinstall python and all its libraries for this project. like starting from scratch

    • @project_guru
      @project_guru  ปีที่แล้ว

      Sure!

    • @tanishdhangar3184
      @tanishdhangar3184 ปีที่แล้ว +1

      @@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
      @project_guru  ปีที่แล้ว

      @@tanishdhangar3184 This is from scratch bro...

  • @amruthgowda2750
    @amruthgowda2750 10 หลายเดือนก่อน +1

    Can you please tell which ide u used for this project

    • @project_guru
      @project_guru  10 หลายเดือนก่อน

      I am not using any IDE. I am using python Idle for this.

  • @harshitasrivastava1463
    @harshitasrivastava1463 5 หลายเดือนก่อน +2

    hi, can i get the project report for this?

    • @project_guru
      @project_guru  4 หลายเดือนก่อน +1

      Sure please drop me an email on akshaydhiman685@gmail.com

  • @snjy_mimics
    @snjy_mimics ปีที่แล้ว +3

    brooooooooo thank u soo much :))))))))))))))))))))

  • @AshuAshu-ne7yh
    @AshuAshu-ne7yh ปีที่แล้ว +2

    Sir couldn't open shape predictior landmark datasets please help me sir

    • @project_guru
      @project_guru  ปีที่แล้ว

      Please share the exact error message you are getting.

    • @AshuAshu-ne7yh
      @AshuAshu-ne7yh ปีที่แล้ว +1

      Dlib.shape_predictor("model/shape_predictor_68_face_landmarks.dat
      Error unable to open model/shape prictor

    • @AshuAshu-ne7yh
      @AshuAshu-ne7yh ปีที่แล้ว +1

      Shape predictior Can't open sir plz help me sir

    • @project_guru
      @project_guru  ปีที่แล้ว

      kindly check the path of the shape prediction file.

  • @parthshub5164
    @parthshub5164 ปีที่แล้ว +2

    Hey where have you uploaded that landmark.dat file
    Plz reply ASAP I have to submit my prj within this week

    • @project_guru
      @project_guru  ปีที่แล้ว

      I have attached the link in the description box.

  • @keldaalonso6226
    @keldaalonso6226 11 หลายเดือนก่อน +1

    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?

    • @project_guru
      @project_guru  10 หลายเดือนก่อน

      You can use it via any microprocessor like Arduino and or raspberry pi

  • @sahithiprathyusha1992
    @sahithiprathyusha1992 ปีที่แล้ว +3

    Can i Know which platform ur using for coding?

    • @project_guru
      @project_guru  ปีที่แล้ว

      I am using IDLE but you can choose any IDE.

  • @mohammedsharfuddin1652
    @mohammedsharfuddin1652 9 หลายเดือนก่อน +1

    Sir,How it is implemented in real time?..how can I demonstrate its working ?

    • @project_guru
      @project_guru  9 หลายเดือนก่อน

      You can demonstrate it's working the way it's shown here.

  • @tanushrikhandare1025
    @tanushrikhandare1025 ปีที่แล้ว +2

    But i am getting error
    Module not found error
    No module name scipy pls resolve this

  • @anshulghanghoria5767
    @anshulghanghoria5767 ปีที่แล้ว +2

    can we use jupyter notebook?? @Project Guru

  • @VANISHRINM
    @VANISHRINM ปีที่แล้ว +2

    May I know in which software you have done this project

    • @project_guru
      @project_guru  ปีที่แล้ว

      I used IDLE but you can choose any editor/IDE.

    • @anshulghanghoria5767
      @anshulghanghoria5767 ปีที่แล้ว +1

      ​@@project_guru can we use jupyter notebook

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@anshulghanghoria5767 Yes you can.

    • @nitishsharma7545
      @nitishsharma7545 ปีที่แล้ว +1

      ​@@project_guru sir please provide you Facebook ID... Sir can you please provide documentation or report for this project.. please sir

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      @@nitishsharma7545 Here it is
      facebook.com/ak.kmr
      Yeah definitely I'll provide you the documentation.

  • @RishiKesavaReddy
    @RishiKesavaReddy 6 หลายเดือนก่อน +1

    Unable to open the shape predictor file run time error

    • @project_guru
      @project_guru  6 หลายเดือนก่อน

      Please make sure dlib is properly installed.

  • @NayanaKN-po5ox
    @NayanaKN-po5ox 3 หลายเดือนก่อน +1

    It showing error: unsupported image type ,must be 8bit gray or rgb pls give a solution sir

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@NayanaKN-po5ox please install older version of dlib.

    • @NayanaKN-po5ox
      @NayanaKN-po5ox 3 หลายเดือนก่อน +1

      @@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

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      @@NayanaKN-po5ox please connect over Instagram and share your Anydesk I'd, and I'll resolve the issue.

    • @NayanaKN-po5ox
      @NayanaKN-po5ox 3 หลายเดือนก่อน +1

      @@project_guru ok sir

  • @djdhanush9369
    @djdhanush9369 ปีที่แล้ว +2

    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

    • @project_guru
      @project_guru  ปีที่แล้ว

      It contains the model learning. There is no need to open it.

    • @djdhanush9369
      @djdhanush9369 ปีที่แล้ว +1

      @@project_guru ohk bro....but i need to know what is in that file .... It can help me for review purpose.... Please help me

    • @djdhanush9369
      @djdhanush9369 ปีที่แล้ว +1

      ​@@project_guruplease reply bro

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@djdhanush9369 It contains the pre trained face recognition data or in other words it contains the knowledge of model.

  • @poojajoshibaloni6724
    @poojajoshibaloni6724 ปีที่แล้ว +2

    Excellent 👍

  • @birundhadevi5439
    @birundhadevi5439 7 หลายเดือนก่อน +1

    Sir, i run the code but the camera could not open sir. What can i do

    • @project_guru
      @project_guru  7 หลายเดือนก่อน

      Is it displaying any error?

  • @jeromshaji
    @jeromshaji 8 หลายเดือนก่อน +1

    sir ,how to find the accuracy of this model

  • @tejaswankhede5689
    @tejaswankhede5689 ปีที่แล้ว +1

    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.

    • @project_guru
      @project_guru  11 หลายเดือนก่อน +1

      Sure, please share your email id.

    • @itz_mikhael
      @itz_mikhael 5 หลายเดือนก่อน

      Please I need the report sir

  • @ayushbhanja7640
    @ayushbhanja7640 5 หลายเดือนก่อน +1

    i dont know why imutil is not getting install in my cmd

    • @project_guru
      @project_guru  5 หลายเดือนก่อน

      Please specify the error you are getting.

  • @muhammadsalem9924
    @muhammadsalem9924 ปีที่แล้ว +1

    Great job sir...
    I want to create a separate system to implement this project. Can I use ESP32 instead of Raspberry pi ? Please reply

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      Yeah you can use that

    • @sabrinechouaib2846
      @sabrinechouaib2846 4 หลายเดือนก่อน +1

      hey please if you found any source to implement this project on a system tell me !!! i need it

    • @muhammadsalem9924
      @muhammadsalem9924 4 หลายเดือนก่อน +1

      ​@@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

    • @sabrinechouaib2846
      @sabrinechouaib2846 4 หลายเดือนก่อน

      @@muhammadsalem9924 ok thanks ☺️ 🙏

  • @kiritokun4098
    @kiritokun4098 ปีที่แล้ว +3

    Sir, could you pls provide the documentation or report of this project?
    Thanks so much...

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      Yeah definitely, kindly ping me via fb/Instagram or kindly drop me a mail and I'll forward it to you.

    • @nitishsharma7545
      @nitishsharma7545 ปีที่แล้ว +2

      ​@@project_guru sir can u plzzzz send ur Facebook Id...

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@nitishsharma7545 facebook.com/ak.kmr

    • @brajesh5635
      @brajesh5635 ปีที่แล้ว +1

      @@project_guru can I please have your mail-id for documentation

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@brajesh5635 yeah it's akshaydhiman685@gmail.com

  • @rakeshjoshi4016
    @rakeshjoshi4016 ปีที่แล้ว +2

    Good yr

  • @Musab.Mohamed
    @Musab.Mohamed ปีที่แล้ว +2

    Are you using pycham editor for dis project ?

    • @project_guru
      @project_guru  ปีที่แล้ว +1

      I used IDLE here but you can prefer PyCharm as well.

  • @mohamedyusufcse4754
    @mohamedyusufcse4754 5 หลายเดือนก่อน +2

    Can I get report pdf for this

    • @project_guru
      @project_guru  5 หลายเดือนก่อน

      Sure, please drop me an email at akshaydhiman685@gmail.com

  • @Aditya-cn8pd
    @Aditya-cn8pd ปีที่แล้ว +2

    Unable to open predictor file error please help sir

    • @project_guru
      @project_guru  ปีที่แล้ว

      Which version of dlib are you working with?

  • @deepakdee4166
    @deepakdee4166 3 หลายเดือนก่อน +1

    Unsupported image type, must be 8bit gray or rgb image

    • @project_guru
      @project_guru  3 หลายเดือนก่อน

      Please install python 3.7

  • @Arcgamerz27
    @Arcgamerz27 29 วันที่ผ่านมา +1

    hii! can you please share project report on this?

    • @project_guru
      @project_guru  25 วันที่ผ่านมา

      @@Arcgamerz27 Sure, please drop me an email on akshaydhiman685@gmail.com

  • @dixitraj1109
    @dixitraj1109 ปีที่แล้ว +1

    Thanks bro that helped me a lot

  • @sahithiprathyusha1992
    @sahithiprathyusha1992 ปีที่แล้ว +2

    How can i download the first two files and how to insert them

    • @project_guru
      @project_guru  ปีที่แล้ว

      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.

    • @sahithiprathyusha1992
      @sahithiprathyusha1992 ปีที่แล้ว +1

      I couldn't find them in description box can u comment them below

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@sahithiprathyusha1992 here it is drive.google.com/drive/mobile/folders/1uMQpBDky9NCcCgfmOpDiQr5p-xttdvPU?usp=sharing

  • @durga.r8735
    @durga.r8735 6 หลายเดือนก่อน +1

    Which algorithm is used in this project

  • @ankitapal7136
    @ankitapal7136 ปีที่แล้ว +2

    While running the code , the value of output is always 1 and not showing the alert message ... sir , please help me .
    Reply

    • @project_guru
      @project_guru  ปีที่แล้ว

      Kindly share your code.

    • @ankitapal7136
      @ankitapal7136 ปีที่แล้ว +1

      sir please share your mail address then I will send code

    • @project_guru
      @project_guru  ปีที่แล้ว

      @@ankitapal7136 akshaydhiman685@gmail.com

  • @ash_040
    @ash_040 6 หลายเดือนก่อน +1

    how to install dlib
    pip install dlib is not working for me
    please help

    • @project_guru
      @project_guru  6 หลายเดือนก่อน

      Please refer the video I have mentioned how to install dlib.

    • @ash_040
      @ash_040 6 หลายเดือนก่อน

      ​@@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 ?

    • @project_guru
      @project_guru  6 หลายเดือนก่อน

      @@ash_040 Yes you can uninstall but make sure to not to remove/delete any downloaded file in the process.

  • @deepakmodi927
    @deepakmodi927 ปีที่แล้ว +3

    Which datasets you are using for models

    • @project_guru
      @project_guru  ปีที่แล้ว

      We are using a pre built landmark file. You can find the link to it from the description box.

  • @universe99295
    @universe99295 2 หลายเดือนก่อน +1

    which IDE are you using

    • @project_guru
      @project_guru  2 หลายเดือนก่อน

      Idle.

    • @universe99295
      @universe99295 2 หลายเดือนก่อน +1

      @@project_guru can you give me the link for download...im unable to find it

    • @project_guru
      @project_guru  2 หลายเดือนก่อน

      @@universe99295 please download this version www.python.org/downloads/release/python-377/

  • @SaulGoodman371
    @SaulGoodman371 10 หลายเดือนก่อน +1

    I have a problem with compile with music.wav

    • @project_guru
      @project_guru  10 หลายเดือนก่อน

      Please specify the error

  • @prajwaljain2657
    @prajwaljain2657 ปีที่แล้ว +2

    no module named cv2 error

    • @project_guru
      @project_guru  ปีที่แล้ว

      Kindly install OpenCV. Run Command 'pip install opencv-python' in cmd for the same.