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
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
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?
@@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
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?
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
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.
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
@@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?
@@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?
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
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
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
I have watched so many videos, but none were successful. I followed your methods and finally got success. Thank you so much!
When i was at the 19:39 it says that The system cannot find the path specified. How to fix?
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
after installing the python 3.8 version and installing cmake still it is showing the same error : Failed building wheel for dlib
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
Thank you soooo much sir🤗... I'm soooo grateful to you...🥳🎉
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?
still facing same issue what did i do wrong
whats the issue
Check my comment
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
As in the video I have mentioned this process works for python 3.8 as dlib has compatibility issues with python 3.10
Thank you 😍
hello, i am getting the error "ERROR: Failed building wheel for dlib"....what to do...? thanks
which python version are u using
@@Pythoholicfirst attempt was to do using 3.6. changed to 3.11 now
Okay please make use of 3.8 or 3.9
@@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
Yup update the driver
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?
Koi help kar do yr plz, mere isme ek hi error aa raha har tarike se, " Failed to build wheel for dlib"
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
Pahle latest version par try Kiya tha nahi hua to fir abhi 3.8 install kar rakha hai
Wait vo mera laptop update par hai to thoda time le Raha hote hi me apko send krta hun virtual environment ka output
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?
okay let me check
I am currently using python 3.8 for facial recognition project , i am using mac os ,dblib and cmake are not installing
Didn't get it.. please let me know
Can you please tell for pythons 11
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.
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
@@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?
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
Sir.. I have a doubt can this access webcam and recognise live
yea u can
just make use of another video that i have i have shown how to use it with webcam
After installing Cmake , there is need to install Visual Studio or not?
not mandatory
@@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?
then please install visual studio if its asking that
@@DattaPatil-cj3yh same error. Did it work for you after you install Visual Studio?
Hello. Please, how to install black and LAPACK on windows?
Sure thanks will do that
It's work nice, thanks bro
thanks bro
21:33
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
Surely thanks for the feedback
Will add the timestamps
for it's still not being installed
Thanks for the feedback
dlib error
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
Which python version are u using
@@Pythoholicpython 3.11.3 sir
@@Pythoholicevery time its shows building wheel for dlib (pyproject.toml) didn't run sucessfully
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
thank you
🎉