Easiest way to install OpenCV for python in Raspberry pi within few minutes

preview_player
Показать описание
In this video I will show you how to install OpenCV for python in the easiest way within few minutes.

Commands used in this video:

sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-100
sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo pip3 install opencv-contrib-python

"sudo pip3 install opencv-contrib-python==3.4.6.27" - this command as the latest version of openCV doesn't work with RPi.

sudo apt-get install python3-h5py

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

"Easiest way to install OpenCV for python in Raspberry pi within few minutes" The title deserves evrything working even installed in few minitues (<15 wiil Suggest everyone who are wasting their valuable time on unworthy video to install open cv, and here we go u are in right place so the one who are trying to install opencv go through the steps in this video ....those steps are enough to install cv2 in ur I Just Love Ur Video ....Thank You ... :-)

mohanamanikantarapolu
Автор

The first command didn't work for me, but this command replaced it well:
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103

sebastianzapata
Автор

I’ve tried like 100 descriptions to install it, this was the easiest and only working one. Thank you very much!!!

MR-dbzw
Автор

work for me . thankyou very much.

but for last step im stuck for a long time with response
Getting requirements to build wheel ... done

Preparing wheel metadata ... done

Requirement already satisfied: numpy>=1.14.5 in (from opencv-contrib-python) (1.16.2)

Building wheels for collected packages: opencv-contrib-python


Building wheel for opencv-contrib-python (PEP 517)

and i solve with this


cancel and try this

"sudo pip3 install

ihsanpratama
Автор

Check the message after executing the first line, if it failed then change the first line to "sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103" it will work.
I neglected the message at first and it didn't work.

vishalj
Автор

Thank you so much. I was struggling for last 1 month to install opencv. Finally thru this video I was able to install successfully

rajatpanda
Автор

awesome video! after countless videos of how to install opencv on pi zero w this is by far the best the others took HOURS.

josepuga
Автор

Finalmente sò riuscito a caricà CV senza problemi....Grazie di cuore...!!!

fernandotagliaferro
Автор

hi i'm from Mexico (Saludos por cierto y buen video) if somebody got the issuse: " ImportError: libhdf5_serial.so.103: cannot open shared object file: No such file or directory" can try: "sudo apt install libhdf5-103" it work's for me :) regards! and nice video

antonioislasromero
Автор

While importing opencv if you get error like "ImportError: undefined symbol: __atomic_fetch_add_8", then use


"sudo pip3 install - this command as the latest version of openCV doesn't work with RPi currently.

After this if you get "ImportError: libhdf5_serial.so.103: cannot open shared object file: No such file or directory" - this error then use the below command:

sudo apt-get install python3-h5py

SPARKLERSWeAreTheMakers
Автор

Hey, I m getting an error "unable to locate package libjasper-dev while running "sudo apt-get install libjasper-dev". Can you tell ne how to resolve it? please help

fatimaameeri
Автор

"sudo pip3 install
This throws an error: No matching distribution found for
did anyone solve this probelm ?

thapamilan
Автор

I'm trying to run the line "sudo pip3 install opencv-contrib-python" but I get the following error : "Could not find any downloads that satisfy the requirement opencv-contrib-python...." and then "No distributions at all found for opencv-contrib-python"

How can I fix it?

iobotic
Автор

sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


I get this error

katefernandez
Автор

THIS VIDEO WILL INSTALL OPEN CV on your RPI...just make sure to read the error messages and the edit in the description.

mtheory
Автор

How would I got about getting this to work for python 2.7? Instructions worked perfectly for python 3.

vince
Автор

'sudo' is not recognized as an internal or external command,
operable program or batch file.
pls help

VaibhavKKM
Автор

can we see camera on rasperry-pi lite if we start the apllication

mustafakendiguzel
Автор

I am trying to install it but in 1st command it shows me error that libhdf5-100 has no installation package

anupjadhav
Автор

I am stuck in last command is just running from more than 4 hours! why is it taking so long? should I cancel and re run the last command?

shrutir