How to Install Face Recognition for Python 3.8 on Windows 11 | Install Dlib with CMake

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

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

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

    I have watched so many videos, but none were successful. I followed your methods and finally got success. Thank you so much!

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

    When i was at the 19:39 it says that The system cannot find the path specified. How to fix?

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

    Commenting before watching: I want to autodetect faces from pictures and use the landmarks do estimate the orientation of the picture based on the faces it finds. I am gonna scan thousands of pictures and it would be great if I could autorotate the pictures based on faces. Thanks for the upload, I will study it =D

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

    after installing the python 3.8 version and installing cmake still it is showing the same error : Failed building wheel for dlib

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

      The error message "Failed building wheel for dlib" usually indicates that there is a problem with compiling the dlib library during installation. This error can occur due to a number of reasons, such as missing dependencies, incorrect installation of required software, or system-specific issues.
      Here are some steps you can try to resolve the issue:
      Make sure you have all the required dependencies installed on your system. The dlib library requires several system-level dependencies such as C++ compiler, Boost C++ Libraries, and OpenCV. Depending on your operating system, the commands to install these dependencies may vary. For example, on Ubuntu, you can use the following command to install the required dependencies:
      sudo apt-get install build-essential cmake libboost-all-dev libgtk-3-dev libopencv-dev
      Make sure you have the latest version of pip installed. You can upgrade pip by running the following command:
      pip install --upgrade pip
      Try installing dlib from source instead of using pip. First, download the dlib source code from the official GitHub repository (github.com/davisking/dlib). Then, extract the source code and run the following commands:
      cd dlib-master
      mkdir build
      cd build
      cmake ..
      cmake --build .
      cd ..
      python setup.py install

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

    Thank you soooo much sir🤗... I'm soooo grateful to you...🥳🎉

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

    i tried downgrading to the version ya said, and checked the python version inside virtual env as well to make usre its downgraded and ye it did. BUT im not able to install dlib as well as face_recignition. yo ya got any ideas on how to make that work?

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

    still facing same issue what did i do wrong

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

    I'm not able to install face_recognition package in python 3.12, aslo not able to install the previous versions of python, will you please help me out

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

      As in the video I have mentioned this process works for python 3.8 as dlib has compatibility issues with python 3.10

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

      Thank you 😍

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

    hello, i am getting the error "ERROR: Failed building wheel for dlib"....what to do...? thanks

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

      which python version are u using

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

      @@Pythoholicfirst attempt was to do using 3.6. changed to 3.11 now

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

      Okay please make use of 3.8 or 3.9

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

      @@Pythoholic installation of face_recognition was completed successfully alongwith dlib. But when i tried to import face_recognition, encountered a runtime error as below:
      RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file C:\Users
      osha\AppData\Local\Temp\pip-install-9_cvqio4\dlib\dlib\cuda\gpu_data.cpp:204. code: 35, reason: CUDA driver version is insufficient for CUDA runtime version

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

      Yup update the driver

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

    I installed face-recognition on Windows 10, but when I import it in Python 3.8 I have this problem "RuntimeError: Unable to open C:\Users\X\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\face_recognition_models\models\shape_predictor_68_face_landmarks.dat" . Can you help me?

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

    Koi help kar do yr plz, mere isme ek hi error aa raha har tarike se, " Failed to build wheel for dlib"

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

      Please let me know which python version are you using. And please paste your virtual env -- pip freeze output so that we can see how what packages are installed

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

      Pahle latest version par try Kiya tha nahi hua to fir abhi 3.8 install kar rakha hai

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

      Wait vo mera laptop update par hai to thoda time le Raha hote hi me apko send krta hun virtual environment ka output

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

    Sir, i can not install dlib on python 3.9.5 , if i choose lower version have conflict for tensorflow not supported under 3.7 what i do?

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

    I am currently using python 3.8 for facial recognition project , i am using mac os ,dblib and cmake are not installing

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

      Didn't get it.. please let me know

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

    Can you please tell for pythons 11

  • @shaniyadav33
    @shaniyadav33 2 ปีที่แล้ว

    when i run a face recognition python code on vs code , it throws error like " import cv2 could not be resolved " " import dlib could not be resolved" etc. what should i do now??
    I think i have installled these (cv2 ,dlib etc.) on virtual environment only.

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

      please run that file by activating ur virtual env and then iterating it to the file path and executing it within the folder path that contains ur python file

    • @shaniyadav33
      @shaniyadav33 2 ปีที่แล้ว

      @@Pythoholic thank you so much sir
      now those "import not resolved" errors are resolved but there is some "inconsistent use of tabs and spaces in indentation" error in my python file. How to get rid of these errors?

    • @shaniyadav33
      @shaniyadav33 2 ปีที่แล้ว

      Actually I got rid of that error...
      But now I am getting "runtime error: unable to open shape_predictor_68_face_landmarks.dat" error .
      Thanks again

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

    Sir.. I have a doubt can this access webcam and recognise live

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

      yea u can
      just make use of another video that i have i have shown how to use it with webcam

  • @DattaPatil-cj3yh
    @DattaPatil-cj3yh ปีที่แล้ว

    After installing Cmake , there is need to install Visual Studio or not?

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

      not mandatory

    • @DattaPatil-cj3yh
      @DattaPatil-cj3yh ปีที่แล้ว +1

      @@Pythoholic thanks for replying !!! I installed Cmake after I run pip install face-recognition command, at the dlib installation it show error like 'You need to install Visual Studio for C++' what I do?

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

      then please install visual studio if its asking that

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

      @@DattaPatil-cj3yh same error. Did it work for you after you install Visual Studio?

  • @KingDJETOGOUMLucas-ip7oi
    @KingDJETOGOUMLucas-ip7oi ปีที่แล้ว

    Hello. Please, how to install black and LAPACK on windows?

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

      Sure thanks will do that

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

    It's work nice, thanks bro

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

    21:33

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

    Did not work for me sadly. Tried to install python 3.8.17 in virtual environment still getting the same error... But thanks for showing the whole process and explaining the errors u got. Thats nice. Time Stamps wouldv been nice

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

      Surely thanks for the feedback
      Will add the timestamps

  • @anshulmodi50
    @anshulmodi50 2 ปีที่แล้ว

    for it's still not being installed

    • @Pythoholic
      @Pythoholic  2 ปีที่แล้ว

      Thanks for the feedback

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

    dlib error

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

    Hi sir, I've a issue with building wheel for dlib.its shows, could not build wheel for dlib, which is required to install pyproject.toml-based projects. If i install prproject.toml-based but it's shows same error again and again. I'm tried for a week, I can't find any solution. Kindly help me sir

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

      Which python version are u using

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

      ​@@Pythoholicpython 3.11.3 sir

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

      ​@@Pythoholicevery time its shows building wheel for dlib (pyproject.toml) didn't run sucessfully

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

      It won't work wirh 3.11
      I habe mentioned the version that dlib works with please use that
      Else u might have to use tensor or other tools to do it. There is a conflict which causes it to fail for other versions of python 3.8 8 guess

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

    thank you

  • @moulijayanti
    @moulijayanti 2 ปีที่แล้ว

    🎉