Install OpenCV 4 with Python and C++ support on Raspberry Pi

preview_player
Показать описание
How to install OpenCV 4 with Python and C++ support on Raspberry Pi.

Text version of the video:

Links used in the video:

If you want to build/compile OpenCV for Raspberry Pi yourself:

Install commands:
sudo apt install libgtk-3-dev libcanberra-gtk3-dev
sudo apt install libtiff-dev zlib1g-dev
sudo apt install libjpeg-dev libpng-dev
sudo apt install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev
sudo apt install python-numpy python3-numpy
Рекомендации по теме
Комментарии
Автор

Perfect, so many tutorials out there which are very long and don't work, this one was short, precise and most important of all works like a charm. Love the text version of the video. Thank you for this great tutorial.

harshalsarode
Автор

This installation worked perfectly for me on a Raspberry Pi 4, Python 3.7.3, OpenCV 4, Raspbian Buster (Linux rpocv 4.19.75-v7l+ #1270). Thanks for a great tutorial!

JimWroten
Автор

the only tutorial that actually works can't thank you enough man
you are a lifesaver

hamzahimran
Автор

Installed opencv successfully on first attempt itself(on raspberry pi 3B raspian for simple and great tutorial...

balajim
Автор

Both c++ and python code works like a charm. Thank you sir.

saimmetinkaryagar
Автор

you my friend just saved me from possibly the next 2 days of suffering.

itsrobelschwarz
Автор

Wow man.. . . Salute. . .only recommended way I guess. Thanks for the pre-built binary and settings.. . You just won my heart

mowazzemhosen
Автор

Wonderful ! Génial !
The first tutorial that works for my Raspberry pi 3 (quick / easy in addition)
I think i will buy your book to thank you

roshanisylvain
Автор

Thanks a ton, man!
It worked on rpi 4.Thanks again for the great tutorial. Keep going :)

sindhurraju
Автор

this is so cool! It is working on my raspberry pi 3. I tried to install it on a virtual machine on my mac but it didnt work. Thank you a lot!

romanfrancisconavajuarez
Автор

Thank you so much! I have to install opencv many times to no avail, but this tutorial is amazing and works perfectly! I would subscribe a million times if I could!

jugglingsix
Автор

Amazing guide !! It worked like a charm !!!

georgesg
Автор

Thanks this worked well. However it did take me more than one attempt. For newbies like me, this might caution your attempts (1) Make sure you do a clean installation remove older versions of OpenCV with >> sudo find / -name "*opencv*" -exec rm -i {} \; (2) I found that numpy wasn't completely installed and getting a missing library error try this >> sudo apt-get install python-dev libatlas-base-dev. It works absolutely fine after that :)

drzobekenobe
Автор

Thanks for tutorial it worked on my raspbian using rasberry pi 3 B, it will be nice if you put on some subtitle sir. regards

andinugroho
Автор

Thank you for the great video.you saved me.
I spend 3 days, finally I found your wonderful video👍😊.
This is working.

MARUTI
Автор

Hello, I have an issu running opencv.... My error is....
ImportError: open shared object file: No such file or directory.
Is this library should be install?

xavibaca
Автор

If have problems you must uninstall you raspberry pi before you install you open cv of the tutorial .
And install OpenCV
It works with me
Thank you so much 😍😍😍😍😍😍😍

goodlife
Автор

Sir it doesn't work on raspberry pi 4

rachity
Автор

Is this opencv package includes opencv contrib modules too?

kumuthinikulanthavel
Автор

can i ask you a qst please i tried to compile C++ code and i've got this error : fatal error: opencv2/opencv.hpp: No such file or directory
7 | #include <opencv2/opencv.hpp>
do you have any idea?

jamilatagdimi