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

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • 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 RUclips!
    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
    🍀 RUclipsr @BePythoholic 🎲
    🍀 ko-fi.com/pyth...
    🍀 buymeacoffee.co...
    🍀 Podcast (Blabber Cloud) : tinyurl.com/Pyt...
    🎯 Click Below
    🚨 RUclips -- 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

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

  • @JeromInthu
    @JeromInthu Месяц назад +2

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

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

  • @kachanvlogs3239
    @kachanvlogs3239 Год назад +3

    still facing same issue what did i do wrong

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

    21:33

  • @sayalishinde7752
    @sayalishinde7752 8 месяцев назад +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  8 месяцев назад

      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 8 месяцев назад

      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

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

  • @satisfy779
    @satisfy779 11 месяцев назад +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  11 месяцев назад

      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 11 месяцев назад

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

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

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

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

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

    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

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

    Can you please tell for pythons 11

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

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

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

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

  • @KingDJETOGOUMLucas-ip7oi
    @KingDJETOGOUMLucas-ip7oi 10 месяцев назад

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

    • @Pythoholic
      @Pythoholic  8 месяцев назад

      Sure thanks will do that

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

    dlib error

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

    It's work nice, thanks bro

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

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

    🎉

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

    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  Год назад +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 Год назад

      @@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 Год назад

      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

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

    thank you

  • @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 2 месяца назад

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

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

    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