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

  Рет қаралды 35,437

Pythoholic

Pythoholic

Жыл бұрын

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/project/face-recogni...
⭐ Install Visual studio: visualstudio.microsoft.com/do...
⭐ Dlib documentation: dlib.net/
⭐ Cmake documentation: cmake.org/cmake/help/v3.18/
⭐ face recognition install steps: face-recognition.readthedocs....
#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/pythoholic
🎉 Pythoholic is Creating visual content for all tech and programming on KZbin!
You can support by buying a coffee ☕️ here -
ko-fi.com/pythoholic
🍀 If you wish to support me please choose the links below:
INSTAMOJO: instamojo.com/@pythoholic
PAYPAL: paypal.me/pythoholic
GADGETS I USE: www.amazon.in/shop/pythoholic
Learn Once. Never Forget
🍀 KZbinr @BePythoholic 🎲
🍀 ko-fi.com/pythoholic
🍀 buymeacoffee.com/Pythoholic
🍀 Podcast (Blabber Cloud) : tinyurl.com/Pythoholic
🎯 Click Below
🚨 KZbin -- 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

Пікірлер: 56
@mongonza8953
@mongonza8953 10 ай бұрын
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?
@kaelthunderhoof5619
@kaelthunderhoof5619 4 ай бұрын
When i was at the 19:39 it says that The system cannot find the path specified. How to fix?
@astropgn
@astropgn 8 ай бұрын
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 Жыл бұрын
Can you please tell for pythons 11
@suriyaprakash5172
@suriyaprakash5172 Жыл бұрын
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?
@Pythoholic
@Pythoholic Жыл бұрын
okay let me check
@phongbui5911
@phongbui5911 Жыл бұрын
It's work nice, thanks bro
@Pythoholic
@Pythoholic Жыл бұрын
thanks bro
@shrevijain9278
@shrevijain9278 Жыл бұрын
after installing the python 3.8 version and installing cmake still it is showing the same error : Failed building wheel for dlib
@Pythoholic
@Pythoholic Жыл бұрын
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
@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 Жыл бұрын
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
@sayalishinde7752
@sayalishinde7752 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
Thank you 😍
@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
@roshanmathew4889
@roshanmathew4889 Жыл бұрын
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 Жыл бұрын
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
@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
@KingDJETOGOUMLucas-ip7oi
@KingDJETOGOUMLucas-ip7oi 8 ай бұрын
Hello. Please, how to install black and LAPACK on windows?
@Pythoholic
@Pythoholic 6 ай бұрын
Sure thanks will do that
@DattaPatil-cj3yh
@DattaPatil-cj3yh Жыл бұрын
After installing Cmake , there is need to install Visual Studio or not?
@Pythoholic
@Pythoholic Жыл бұрын
not mandatory
@DattaPatil-cj3yh
@DattaPatil-cj3yh Жыл бұрын
@@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 19 күн бұрын
@@DattaPatil-cj3yh same error. Did it work for you after you install Visual Studio?
@kachanvlogs3239
@kachanvlogs3239 Жыл бұрын
still facing same issue what did i do wrong
@Pythoholic
@Pythoholic Жыл бұрын
whats the issue
@yannikhauser383
@yannikhauser383 Жыл бұрын
Check my comment
@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 Жыл бұрын
Surely thanks for the feedback Will add the timestamps
@kachanvlogs3239
@kachanvlogs3239 Жыл бұрын
dlib error
@satisfy779
@satisfy779 9 ай бұрын
Koi help kar do yr plz, mere isme ek hi error aa raha har tarike se, " Failed to build wheel for dlib"
@Pythoholic
@Pythoholic 9 ай бұрын
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 9 ай бұрын
Pahle latest version par try Kiya tha nahi hua to fir abhi 3.8 install kar rakha hai
@satisfy779
@satisfy779 9 ай бұрын
Wait vo mera laptop update par hai to thoda time le Raha hote hi me apko send krta hun virtual environment ka output
@santoshnarwad3528
@santoshnarwad3528 Жыл бұрын
thank you
@anshulmodi50
@anshulmodi50 Жыл бұрын
for it's still not being installed
@Pythoholic
@Pythoholic Жыл бұрын
Thanks for the feedback
@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
@keepitalivebro
@keepitalivebro Жыл бұрын
21:33
@moulijayanti
@moulijayanti Жыл бұрын
🎉
Access Location, Camera  & Mic of any Device 🌎🎤📍📷
15:48
zSecurity
Рет қаралды 2,2 МЛН
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 60 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
The secrets of the Windows installer
17:31
Enderman
Рет қаралды 110 М.
Live Face Recognition in Python
16:16
NeuralNine
Рет қаралды 151 М.
Solved face recognition install error | dlib install error
9:26
Amit Dhanawade
Рет қаралды 64 М.
Face recognition in real-time | with Opencv and Python
28:19
Pysource
Рет қаралды 263 М.
Unleash the power of Local LLM's with Ollama x AnythingLLM
10:15
Tim Carambat
Рет қаралды 111 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 5 МЛН
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 137 М.
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН