Computer Vision Project | Driver drowsiness detection | Full code explanation | OpenCV Python Dlib

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • A computer vision project build using Dlib, OpenCV and python. This project includes 68 Landmark detection and the Drowsiness detection better explained from any other video. Do subscribe for more videos like this. Coming up next with astonishing augmented reality from scratch with computer vision.
    Please do like and Subscribe to the channel for more such projects.
    Github Repo Code : github.com/inf... (Do follow me on github for more projects)
    COMPUTER VISION PROJECTS PLAYLIST ( ALL PROJECTS EXPLAINED) :
    • Computer Vision Projec...
    Any queries related to anything -------------------------------------------------------------
    My personal blog : infoaryan.com
    Connect me on my Instagram : www.instagram....
    Connect me with Facebook : / infoaryanforyou
    #drowsinessdetection #computervision #dlib #opencvprojects

Комментарии • 433

  • @michaelguerrero2632
    @michaelguerrero2632 2 года назад +14

    I don't understand the language but it seems like I can actually understand how you explain it for some reason. Anyway it's a great video thank you my guy!

  • @stutidutta3922
    @stutidutta3922 Год назад +4

    Simple easy explanation of the code. You made me understand in just 13 min. Thank you sir.

  • @bhavyagoel11
    @bhavyagoel11 3 года назад +21

    I love it, how you turn your passion into teaching😍🥂

  • @mamirkhattak8495
    @mamirkhattak8495 11 месяцев назад +1

    excellent bro. this video is very amazing and good communication skill you know this is my final project in the computer science degree . thank you so much🤩😊🥰

  • @ArslanShafique540
    @ArslanShafique540 2 года назад +2

    I watched you first videi and i learn alot.. currebtly am working on image encryption and decryption..i am desprtly waiting for the eye blink unlock project....
    Love from 🇵🇰

  • @himanshunaxine5620
    @himanshunaxine5620 3 года назад +4

    This video is worth for.. many coders dude...❤❤💥💥🔥🔥

  • @socceraddict1733
    @socceraddict1733 Месяц назад

    to all who are not able to download the .dat file , i tried downloading it on my mobile and then sent it to my pc , it worked
    and if it shows any other error like unsupported type , try downgrading numpy to 1.26.4

  • @someshghatage5611
    @someshghatage5611 2 года назад +3

    can you share the shape_predictor_68_face_landmarks.dat file.
    not able to install that one , getting error while installing

  • @Bhavmankeer
    @Bhavmankeer 2 месяца назад +2

    I'm not able to download the shape_predictor_68_face_landmarks.dat.bz2

  • @vishalnasre1251
    @vishalnasre1251 3 года назад +4

    Hi,
    I am getting error while running the file as
    File "C:/Users/Dell/Desktop/Data Science/iNeuron Internship/Model - Video Part/Driver-Drowsiness-Detection-master/driver_drowsiness.py", line 99, in
    cv2.imshow("Result of detector", face_frame)
    NameError: name 'face_frame' is not defined
    [ WARN:0] global C:\Users
    unneradmin\AppData\Local\Temp\pip-req-build-1y7gm6kn\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
    However face frame is already define

    • @sanjay1776
      @sanjay1776 2 года назад +1

      Same here did you gon any solution for this

    • @netajisaiakash9619
      @netajisaiakash9619 Год назад

      I'm getting the same error...
      Could you please explain how did you clear this error

  • @shubhamshinde5643
    @shubhamshinde5643 3 года назад +6

    some of you might get this error:-
    1 .dat file is 60+mb so download it and remember to extract
    2 install latest all the library which are imported install cpp boost too for dlib
    3 this aplication only work in high light use torch (recommended during presentation).
    4 face_frame should be global but should not initialize to None i have used following code use it right above while loop
    _, f = cap.read()
    face_frame = f.copy()
    you can ask me if you got futher question

    • @SS-pe4tu
      @SS-pe4tu 3 года назад

      Hello Sir, thank you so much for the lovely explanation of the project .
      But I am not able to download the " The 68-landmark detector data (.dat) file " from Github. Can u pls share the link here Sir

    • @shubhamshinde5643
      @shubhamshinde5643 3 года назад

      @@SS-pe4tu I am unable to paste GitHub link RUclips constantly deleting it search it on Google you will get it on first search

    • @SS-pe4tu
      @SS-pe4tu 3 года назад

      @@shubhamshinde5643 ok thanku sir for replying. I got that file!! Thank you again!!

    • @impsenpai
      @impsenpai 3 года назад

      @@shubhamshinde5643 NameError: name 'frame' is not defined i'm getting this error can u tell whats the actual problem

    • @impsenpai
      @impsenpai 3 года назад

      or do u have github repo so i can check the codes

  • @pashishsharma2560
    @pashishsharma2560 3 года назад

    i love ur first 5 sec of starting -----------> the intro music is awasom

  • @nirvlogswithfun
    @nirvlogswithfun Год назад +1

    sir pls help me . i am getting in dlib . i tried to work code in vs code . idle and pycharm also still i am getting dlib error pls help

  • @jidnyasabhavsar5460
    @jidnyasabhavsar5460 2 года назад

    This is outstanding video!! Ur teaching style is so good sir.

  • @Utkarsh_is_Bored
    @Utkarsh_is_Bored 3 года назад +6

    This is awesome, Thanks a lot man! can you also explain how the landmarks work how are they detected and the science behind them? I would be very grateful!

  • @itsandroid
    @itsandroid 2 года назад

    OpenCV(4.6.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
    (in line 45 ye vala error aa raha hai how to solve it?? please reply)

    • @AAZADI
      @AAZADI Год назад

      Hi am also facing same error, have you found any solutions

    • @itsandroid
      @itsandroid Год назад

      @@AAZADI nope

    • @SAHILFARUKI08
      @SAHILFARUKI08 Год назад

      Have you solved your error then plzz reply the code

  • @lakshyaverma5106
    @lakshyaverma5106 2 года назад +1

    Aryan verma code rune m problem hori h plz solve krdo issue

  • @fouziya9810
    @fouziya9810 2 года назад +1

    Plz upload a video on hand gesture detection with bot calculation

  • @khabibali4967
    @khabibali4967 3 года назад +1

    ERROR: Command errored out with exit status 1:
    Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\Programmer\AppData\Local\Programs\Python\Python39\python.exe'.
    ERROR: Command errored out with exit status 1: 'C:\Users\Programmer\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
    while installing dlib in pycharm it giving me this type of error how I candle it>?

  • @itsmecris07
    @itsmecris07 3 года назад +1

    Bhai ..Great explanation.Really appreciate this

  • @saadansari1175
    @saadansari1175 Год назад +1

    predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
    RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat
    This error comes every time run the code.
    Please Help.

  • @c02pistolman
    @c02pistolman 2 года назад +1

    Hi, I don't understand the language. Is there any way to explain what I need to get this working?

  • @liderl.m.9850
    @liderl.m.9850 3 года назад

    Thanks you so much from Bolivia!!

  • @darshanrajashekar634
    @darshanrajashekar634 Год назад +1

    Which algorithm is used?

    • @muhammadsalem9924
      @muhammadsalem9924 11 месяцев назад

      Did you find the answer because I need it too ? PLZ answer

  • @ujjwalborasi205
    @ujjwalborasi205 3 года назад +3

    Cool, Very Finely Explained.

  • @karejosh6049
    @karejosh6049 6 месяцев назад

    while I'm running the code i got an error face_framr is not defined. What i have to do....?

  • @roschungath9894
    @roschungath9894 2 года назад +3

    Sir could you please explain more about hog with linear svm detector

  • @sanskarkhandelwal
    @sanskarkhandelwal 5 месяцев назад

    Sir dlib install nhi ho rhi vs code m , which ide do you use

  • @rushikesh823
    @rushikesh823 3 года назад

    Explanation level infinity bro 🔥🔥

  • @shaan2599
    @shaan2599 3 года назад

    Special Thing is that, you explain everything in hindi. Thanks bro.

  • @wweofficial3200
    @wweofficial3200 3 года назад +1

    Which ide you have used bro ?
    Can I use pycharm or jupyter notebook ?
    Please answer

  • @VaibhaviNaik-cf8fo
    @VaibhaviNaik-cf8fo 4 месяца назад

    The dataset is not getting downloaded..can u help please

  • @kukku49
    @kukku49 2 года назад +3

    Sir can we check the accuracy of this model ??

  • @neemakalpure
    @neemakalpure 2 года назад +1

    Best explanation ever.

  • @Rifatspeaks
    @Rifatspeaks Год назад

    error: OpenCV(4.7.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
    why this error happen?

  • @sonamsahu4807
    @sonamsahu4807 3 месяца назад

    Sir plz Rply meri shape predictor wali ni run ho rahi h why

  • @muhammadsyafiq98
    @muhammadsyafiq98 Год назад

    error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'. help me please :(

  • @vedantisaraf2285
    @vedantisaraf2285 2 года назад +1

    dlib_facelandmark = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat")
    RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat
    sir could you please help me with this error i tried to download this file from your repo but it didnt work its not opening so please help me as soon as possible

    • @Aryanverma2infoaryan
      @Aryanverma2infoaryan  2 года назад

      Send me the image of storage directory, means the folder where the file is stored. You may mail or Insta DM me.

  • @kushagragolash
    @kushagragolash 3 года назад +2

    Hi bro please help me
    File "driver_drowsiness.py", line 15, in
    detector = dlib.get_frontal_face_detector()
    AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'
    I am getting this error

  • @ash_040
    @ash_040 5 месяцев назад

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

  • @anu_gowda28
    @anu_gowda28 Год назад

    In my system cv2 not installed what can do please give me any suggestion

  • @tradingisimple
    @tradingisimple Год назад +1

    can i do this project in my college for masters degree

    • @muhammadsalem9924
      @muhammadsalem9924 11 месяцев назад

      I am a master's student and I have this exact same project. Can you help me please?
      What is the appropriate hardware to implement the project?
      What are the appropriate steps to implement the project? please reply

  • @tharuna3884
    @tharuna3884 3 года назад +2

    brother can you tell what libraries have you installed for this project

  • @sarthak6088
    @sarthak6088 9 месяцев назад

    Landmark detection stops when i close my eyes. Please help. What can i do?

  • @dechandolkar8207
    @dechandolkar8207 3 года назад +2

    Excellent teaching 👏👏

  • @silentpaiyan3044
    @silentpaiyan3044 Год назад

    I can't import dlib in pycharm..How to solve this problem.and then you using software download link and version mention it please help to me sir

  • @muhammadsalem9924
    @muhammadsalem9924 11 месяцев назад

    I am a master's student and I have the exact same project. Can you help me ?
    Can I use ESP32 OR any other solution instead of Raspberry Pi ? Please answer

  • @user-vy4ym7pt3t
    @user-vy4ym7pt3t Год назад

    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

  • @kukku49
    @kukku49 2 года назад +2

    Can night vision detection can be detected with this code?? If not how can we add that to this code

    • @muhammadsalem9924
      @muhammadsalem9924 11 месяцев назад

      Did you find the answer because I need it too ? PLZ answer

  • @govindbhadoria8113
    @govindbhadoria8113 2 года назад +1

    Can it be connected to ras pi to make a power supply giving automatic start system

    • @muhammadsalem9924
      @muhammadsalem9924 11 месяцев назад

      Can I use ESP32 OR any other solution instead of Raspberry Pi ? Please answer

  • @Haseeb_Raza
    @Haseeb_Raza 4 месяца назад +1

    well explained brother. bai is ke .dat file download nai ho rahi github sa......

  • @ManpreetKaur-hh3pn
    @ManpreetKaur-hh3pn 3 года назад +1

    very insteresting
    god bless you bro

  • @akshaymbhat9144
    @akshaymbhat9144 3 года назад

    I connected it to a cctv and ip web cam but output lags too.much in frame please help me to solve this

  • @rahulIOT
    @rahulIOT 3 года назад +1

    Thanks for great explanation .

  • @altruisticbyheart2461
    @altruisticbyheart2461 3 года назад +7

    Interesting, Do You wanna join our college as professor?It will be relief for me.

  • @veeramallamanoj230
    @veeramallamanoj230 2 года назад

    Im getting error as ....... libGL.so.1: cannot open shared object file: No such file or directory

  • @mdkaifansari1992
    @mdkaifansari1992 Год назад

    error: OpenCV(4.6.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

  • @gagan2469
    @gagan2469 3 года назад +2

    NameError: name 'face_frame' is not defined
    i am getting this error sir plz help

  • @kollavishnu-qp9kw
    @kollavishnu-qp9kw 23 дня назад

    in which editor did u write the code

  • @KEERTHIKAS-pt2hg
    @KEERTHIKAS-pt2hg 2 года назад

    Could you please help for installing dlib package only it is not downloading

  • @Prachi909
    @Prachi909 Год назад +1

    What is the technical challenges you faced while making this project ?? Please reply @aryan verma what will be the ans for interview

  • @sagardubey3800
    @sagardubey3800 2 года назад +1

    superb project and well explained

  • @kalpeshborse2340
    @kalpeshborse2340 6 месяцев назад

    Thank you so much sir.... The code is workingg....

  • @Aditi-pw3ve
    @Aditi-pw3ve 11 месяцев назад

    Sir sleeping/drowsy status show hone pr alarm ring hoga kya?
    Please reply...

  • @sahilkalghatgi2088
    @sahilkalghatgi2088 3 года назад +2

    Superb job brother.. Yeh sab hindi main banta h ✌️✌️.. Keep going all the best.. Would love to watch you more and more 😃👏

  • @laxmankumarpanda318
    @laxmankumarpanda318 2 года назад

    The dlib library showing too much error during download please help me out to sort it

  • @fidhanasnin5829
    @fidhanasnin5829 2 года назад +1

    Sir, Could you tell me accuracy rate that you have obtained through this model?

  • @VIVEK.GAMING69
    @VIVEK.GAMING69 5 месяцев назад

    Bro How to installed the process show the Dlib for this project😢

  • @premswaroop4337
    @premswaroop4337 3 года назад +1

    Superb explanation, thank u

  • @zaherabegum1808
    @zaherabegum1808 4 месяца назад

    Which software u r using to run this program

  • @devanshumishra6430
    @devanshumishra6430 2 года назад +1

    Any Book or site u prefer for computer vision Learning

    • @muhammadsalem9924
      @muhammadsalem9924 11 месяцев назад

      Did you find the answer because I need it too ? PLZ answer

  • @anilwandkar9455
    @anilwandkar9455 3 года назад +1

    Good job bro, very nicely explained

  • @itsaboutkb
    @itsaboutkb 10 месяцев назад

    Hello I was looking for a similar code in C++, can you please make a video of C++ or can you tell how i can get this code in C++, i tried but got some error

  • @JK05VLOG
    @JK05VLOG 29 дней назад

    Which algorithm is used

  • @manugyadastidar2429
    @manugyadastidar2429 2 года назад

    Can you please say what technology are we using here?
    Augmented reality technology or machine learning technology?

  • @gokulj6878
    @gokulj6878 3 года назад +1

    error: OpenCV(4.1.2) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
    how to resolve this error

    • @somasekhar9415
      @somasekhar9415 3 года назад +1

      Got the same error pls help

    • @Luckyreddy233
      @Luckyreddy233 2 года назад

      I too got same error. Please help me

    • @SAHILFARUKI08
      @SAHILFARUKI08 Год назад

      I also got the same error can anyone help??

  • @umerusman7720
    @umerusman7720 3 года назад +1

    kiya bat hy bro ......bundle of thanks from pakistan

  • @LoremIpsum-yt
    @LoremIpsum-yt Год назад

    Will this work if there are multiple faces to detect drowsiness from??

  • @uditgarud5554
    @uditgarud5554 3 года назад +1

    Hi aryan im getting error like RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat please help and how to resolve this error

    • @nithinsai2250
      @nithinsai2250 3 года назад

      me too bro, did u resolve it?

    • @Aryanverma2infoaryan
      @Aryanverma2infoaryan  3 года назад +1

      Hii udit and nitin. There is a file named shape_predictor_68_face_landmark.dat, that can be downloaded from the link given in my github repo.

  • @HasnainNisar-y2v
    @HasnainNisar-y2v 9 дней назад

    RUclips videos transcript summarizer project b bnaen na sir

  • @Rakshatheridiculous
    @Rakshatheridiculous 3 года назад

    Traceback (most recent call last):
    File "D:/internshipython/day20,21/day20/code/exe42.py", line 27, in
    detector = dlib.get_frontal_face_detector()
    AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector
    im facing this error pls help me

  • @namansharma7145
    @namansharma7145 3 года назад

    Kaint video veere 👍 Rab tenu chaddi kla ch rkhe 😍

  • @keshaavlalsseth2477
    @keshaavlalsseth2477 2 года назад

    how to play alarm sound
    also I got system exit 2 error - how to fix it

  • @rifkydjodylaksana7996
    @rifkydjodylaksana7996 2 года назад +1

    Hello, is there possible if this to put in such microcontroller ? Like raspberry and arduino. Thank you so much

    • @muhammadsalem9924
      @muhammadsalem9924 11 месяцев назад

      Can I use ESP32 OR any other solution instead of Raspberry Pi ? Please answer

  • @rajvardhan4615
    @rajvardhan4615 3 месяца назад

    bhaiyaa how to execute it in the desktop? can you please guide?

  • @chintalapudirohitmanikanta4492
    @chintalapudirohitmanikanta4492 3 года назад

    ArgumentError: Python argument types in
    shape_predictor.__call__(shape_predictor, numpy.ndarray)
    did not match C++ signature:
    __call__(class dlib::shape_predictor {lvalue}, class boost::python::api::object image, class boost::python::api::object box)
    can someone help me ?

  • @niqueraj3487
    @niqueraj3487 2 года назад +1

    Is this works on Rasbeery pi??

    • @Aryanverma2infoaryan
      @Aryanverma2infoaryan  2 года назад

      yes this will work. You need to configure few code lines accordingly.

    • @muhammadsalem9924
      @muhammadsalem9924 11 месяцев назад

      Can I use ESP32 OR any other solution instead of Raspberry Pi ? Please answer

  • @wahhaaabbbb
    @wahhaaabbbb 2 года назад

    i got error:
    Input In [8], in ()
    96 cv2.circle(faceframe, (x, y), 1, (255, 255, 255), -1)
    98 cv2.imshow("Frame", frame)
    ---> 99 cv2.imshow("Result of detector", faceframe)
    100 key = cv2.waitKey(1)
    101 if key == 27:
    NameError: name 'faceframe' is not defined

  • @VISHNUKUMAR-em1sl
    @VISHNUKUMAR-em1sl 3 года назад +1

    Can u plz help me to install face recognition library to my windows 10? It's not installing..🥺

    • @Aryanverma2infoaryan
      @Aryanverma2infoaryan  3 года назад

      Please search for dlib installation windows 10. Its very simple once you go through a vidoe tutorial.

  • @DrSongs-rg4ry
    @DrSongs-rg4ry 2 месяца назад

    Some and easy explanation bro❤

  • @Movies4KHarsimranSingh
    @Movies4KHarsimranSingh 11 месяцев назад

    Can we use this project for a College level hackathon???

  • @prasanthkumar6623
    @prasanthkumar6623 2 года назад

    Unable to open shape_predictor_68_face_landmarks.dat error coming

  • @ayushkaushik6161
    @ayushkaushik6161 2 года назад

    Bro dlib not working how to solve in pycharm tried anaconda also

  • @d-7498h
    @d-7498h Год назад

    Looks like a valuable video. But we cannot understand your language. So please do it in English.

  • @kp12_12
    @kp12_12 3 года назад

    Bro! I couldn’t import dlib package! Can you help me out?

  • @BTS-mt7si
    @BTS-mt7si Год назад

    Hello, it says unable to open shape_predictor_68_landmarks_.dat

  • @sumadhuragaddam2763
    @sumadhuragaddam2763 Год назад

    hey, can we perform it on multiple faces at same time??

  • @niyavarghese2452
    @niyavarghese2452 2 года назад +1

    Sir i'm a complete beginner can we run this code in jupyter notebook ??

  • @arsh10x
    @arsh10x 3 года назад

    sir I am facing this error no module name imutils line no 8 error please help

  • @bhavyagoel11
    @bhavyagoel11 3 года назад +2

    Well done Aryan😌🥂