Easiest way to install Dlib for Python in Raspberry Pi

preview_player
Показать описание
In this video I will show you how to install dlib for python in Raspberry Pi.

Commands used in this video:

sudo nano /etc/dphys-swapfile
sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
free -m

sudo raspi-config

sudo apt-get update
sudo apt-get install build-essential cmake
sudo apt-get install libgtk-3-dev
sudo apt-get install libboost-all-dev

pip3 install numpy
pip3 install dlib

Рекомендации по теме
Комментарии
Автор

hi sir i am unable to find memory split option[to change 64 to 16] in raspi-config,
i am using raspberry pi 4b model, plz help me out sir, i cant download any libraries for python dlib, opencv etc, plz plz hlep me sir.

ArjunVirat-bk
Автор

Hi Sir, i am facing a problem while importing dlib --
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/dist-packages/dlib/__init__.py", line 19, in <module>
from _dlib_pybind11 import *
ImportError: libatlas.so.3: cannot open shared object file: No such file or directory

Please help me resolve this.

rajdeepshaw
Автор

hi, thanks for sharing, which raspberry pi version do you recommend? or are you using?

scart
Автор

I am using raspberry Pi 02W and it is already 4 hrs and it's building wheel aand not complete

immortalgamer
Автор

I tried it but after reboot it gives error failed to share memory split. Can you help me?

faizahassan
Автор

Sir
I amno getting the option of camera in Raspberry pi 4 board.
Please help me where to enable

bipinbiharisahoo
Автор

Pip install dlib is taking 3 hours and yet not completed.
Stuck at "Running setup.py bdist_wheel for dlib ... "
How long will it take?
I'm using Raspberry pi B+

barathkumar
Автор

i used raspberry pi camera and it got this error....VIDEOIO ERROR: V4L: can't open camera by index 0
Traceback (most recent call last):
File "face_detect.py", line 18, in <module>
frame = imutils.resize(frame, width=450)
File "/home/pi/.local/lib/python3.7/site-packages/imutils/convenience.py", line 69, in resize
(h, w) = image.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'

ajitkumarchaurasiya
Автор

Sir
Can i install usb web cam logitech

bipinbiharisahoo
Автор

I have instaled dlib and cv2 without erreur using just pip install dlib the installation finished successfully...should i execute alll this command or not ?

ismailnasri
Автор

Nice wallpaper where can I download that pic

pradeepmanoharan
Автор

Hello bro i tried it for raspberry pi 4 after rebooting it shows failed to allocate memory please help me bro, i have only one week left to complete the project, i can pay u bro

bharathnellore
Автор

took me 15 seconds for dlib installaatino

vivekkommi