![]() ![]() I keep getting this error anytime I try to compile OpenCV … someone please help ? We also need the package management tool pip, which installs NumPy right away: If you do not have a Python installed, you can install it by following the steps below: sudo apt - get install python2. If you already have Python installed and want to know which version is installed, you can simply enter python into the console and get the exact version at the beginning (the command for Python 3+ is python3). However, this mainly affects smaller libraries, as common libraries (NumPy, SciPy, etc.) usually provide the respective files for both versions. There are some differences between the versions, especially as some libraries are not (yet) executable with Python 3+. ![]() ![]() You can either use Python 2.7 or Python 3+. Depending on the application, one of the versions may be better suited.Īfterwards, OpenCV can be compiled. Whether version 3.0 or 2.4 of OpenCV is taken is up to you. If everything worked, we could clone OpenCV from git. sudo apt - get install build - essential git cmake pkg - config libjpeg8 - dev libtiff4 - dev libjasper - dev libpng12 - dev libavcodec - dev libavformat - dev libswscale - dev libv4l - dev libgtk2. Then you can install all the important tools and libraries needed for OpenCV (installation takes a few minutes). Even on a Raspberry Pi B + compiling takes about 6 times as long, with a Pi 2 in total “only” takes about an hour.įirst of all, we update the package lists: sudo apt - get update & sudo apt - get upgrade & sudo rpi - updateĪ reboot is necessary if it has been updated. This advanced tutorial shows how to install OpenCV on the Raspberry Pi and how to integrate it into Python.įor the time being, I would like to recommend everyone a Raspberry Pi Model B to use, because this is a lot more powerful than its predecessor. In addition, OpenCV (Open Source Computer Vision) can be integrated into both its C ++ files and its Python scripts.Įspecially in terms of feature recognition in images taken by the Raspberry Pi, OpenCV is very helpful. It provides many very useful features such as face recognition, the creation of depth maps (stereo vision, optical flow), text recognition or even for machine learning. Anyone who has dealt with image processing in relation to the Raspberry Pi will sooner or later come across the OpenCV library.
0 Comments
Leave a Reply. |