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

Поділитися
Вставка
  • Опубліковано 4 лют 2025
  • Install Face Recognition for Python 3.8 on Windows 11 | Install Dlib with CMake
    Recognize and manipulate faces from Python or from the command line with the world's simplest face recognition library.
    Built using dlib's state-of-the-art face recognition built with deep learning.
    Credits for the Developers : Author: Adam Geitgey
    How to use GIT and GITHUB to clone repository and if you get "git is not recognised" error : • Mastering Git and Gith...
    URL for your easy access:
    ⭐ face_recognition module : pypi.org/proje...
    ⭐ Install Visual studio: visualstudio.m...
    ⭐ Dlib documentation: dlib.net/
    ⭐ Cmake documentation: cmake.org/cmak...
    ⭐ face recognition install steps: face-recogniti...
    #FaceRecognition #InstallFaceRecognitionWithPython #FaceRecognitionForWindows
    Stay tuned to the channel. Please hit like and subscribe if you haven't already.
    🎉 Slides on the channel are available here in the link below:
    ko-fi.com/pyth...
    🎉 Pythoholic is Creating visual content for all tech and programming on UA-cam!
    You can support by buying a coffee ☕️ here -
    ko-fi.com/pyth...
    🍀 If you wish to support me please choose the links below:
    INSTAMOJO: instamojo.com/...
    PAYPAL: paypal.me/pythoholic
    GADGETS I USE: www.amazon.in/shop/pythoholic
    Learn Once. Never Forget
    🍀 UA-camr @BePythoholic 🎲
    🍀 ko-fi.com/pyth...
    🍀 buymeacoffee.co...
    🍀 Podcast (Blabber Cloud) : tinyurl.com/Pyt...
    🎯 Click Below
    🚨 UA-cam -- tinyurl.com/PythoholicYT
    Disclaimer: The content provided in the channel is not affiliated in any way to the organization. We provide information here on the channel based on the knowledge we have on the topic. We advise our viewers to please do their own research and read more about them from the source provided by the organization to get a better outlook on the topic that has been covered.
    These videos are just to provide you a platform to learn, and there can be mistakes and we are always trying to improve based on your feedback. we recommend viewers have an open mind. Please support the channel to get more content like these in the future.
    #AWS #Technology #Pythoholic

КОМЕНТАРІ • 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!

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

  • @brundashetty5702
    @brundashetty5702 3 місяці тому

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

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

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

  • @kaelthunderhoof5619
    @kaelthunderhoof5619 10 місяців тому

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

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

  • @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 роки тому +2

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

    • @Pythoholic
      @Pythoholic  2 роки тому

      which python version are u using

    • @roshanmathew4889
      @roshanmathew4889 2 роки тому

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

    • @Pythoholic
      @Pythoholic  2 роки тому +1

      Okay please make use of 3.8 or 3.9

    • @roshanmathew4889
      @roshanmathew4889 2 роки тому

      @@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  2 роки тому

      Yup update the driver

  • @suriyaprakash5172
    @suriyaprakash5172 2 роки тому +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?

  • @kachanvlogs3239
    @kachanvlogs3239 Рік тому +3

    still facing same issue what did i do wrong

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

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

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

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

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

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

  • @hrashipadiyar1201
    @hrashipadiyar1201 Рік тому +1

    Can you please tell for pythons 11

  • @phongbui5911
    @phongbui5911 Рік тому +1

    It's work nice, thanks bro

  • @KingDJETOGOUMLucas-ip7oi
    @KingDJETOGOUMLucas-ip7oi Рік тому

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

  • @keepitalivebro
    @keepitalivebro Рік тому +1

    21:33

  • @anshulmodi50
    @anshulmodi50 2 роки тому

    for it's still not being installed

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

  • @kachanvlogs3239
    @kachanvlogs3239 Рік тому

    dlib error

  • @santoshnarwad3528
    @santoshnarwad3528 Рік тому

    thank you

  • @moulijayanti
    @moulijayanti 2 роки тому

    🎉