![]() You might want to have a look at CMake tutorial () to learn cmake.Īs a simple example, DisplayImage.cpp ( online) reads an image and displays it. You can use CMake to build your OpenCV applications. You can use the following option if you want static libs.Īfter a while, you can build and install it as follows. ![]() D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules. Navigate to the resulting opencv directory and make a build directory. OpenCV contrib repository can also be obtained as follows. If you want the latest cutting-edge opencv version, you can get it from Git repository OpenCV repository by using following commands instead of using above methods. Then, you can use Archive Manager to extract the zip file. If not, you can get the current stable version OpenCV at OpenCV for Linux/Mac (). Getting optional packages for OpenCV.Īs a simple way to install OpenCV on Linux, you can enter the following command in terminal. Sudo apt install libv4l-dev libxvidcore-dev libx264-dev Sudo apt-get install libpng-dev libtiff-dev libdc1394-22-dev Sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev ![]() Sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev Sudo apt-get install cmake git libgtk-3-dev pkg-config To install the required packages, you can enter the following commands in terminal.
0 Comments
Leave a Reply. |