filmov
tv
How to Install OpenCV with Modules on Ubuntu Linux

Показать описание
cmake Command:
$ cmake -D WITH_TBB=ON -D INSTALL_C_EXAMPLES=ON -D WITH_EIGEN=OFF -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D OPENCV_EXTRA_MODULES_PATH= *path of your contrib_master*/modules ..
Example of the command above if you have your folder at the directory /home/Downloads/:
$ cmake -D WITH_TBB=ON -D INSTALL_C_EXAMPLES=ON -D WITH_EIGEN=OFF -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D OPENCV_EXTRA_MODULES_PATH= /home/Downloads/opencv_contrib/modules ..
IMPORTANT: It is recommended to run the following commands before anything:
$ sudo apt-get update
$ sudo apt-get upgrade
NOTE: Please remove the '*' characters when placing the Path to your modules file.
NOTE #1: the double points at the end of the cake command IS NECESSARY! Do not delete!
NOTE #2: The WITH_EIGEN=OFF was used by me because I had an installation problem with the Eigen library. If you prefer, you can try to set it ON
NOTE #3: If you want to see ALL parameters you can install cmake-gui by typing the following command:
$ sudo apt-get install cmake-gui
------------------------------------------ UPDATE #1------------------------------------------
### FOR THOSE INSTALLING OpenCV 3.2.0 ###
If you are having the error saying something like the following error:
file DOWNLOAD cannot open file for write.
Call Stack (most recent call first):
There is a SOLUTION:
You must download the opencv_contrib-3.2.0 and this is NOT the one on the main github/opencv/opencv_contrib. You must go to the tab RELEASES and see the first release, the 3.2.0. The link is the following:
You will download the version compatible with the OpenCV version you are using it.
Besides this caveat, the steps are the same as described in the video.
Hope it helps!
----------------------------------------------------------------------------------------------------------------------------
$ cmake -D WITH_TBB=ON -D INSTALL_C_EXAMPLES=ON -D WITH_EIGEN=OFF -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D OPENCV_EXTRA_MODULES_PATH= *path of your contrib_master*/modules ..
Example of the command above if you have your folder at the directory /home/Downloads/:
$ cmake -D WITH_TBB=ON -D INSTALL_C_EXAMPLES=ON -D WITH_EIGEN=OFF -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D OPENCV_EXTRA_MODULES_PATH= /home/Downloads/opencv_contrib/modules ..
IMPORTANT: It is recommended to run the following commands before anything:
$ sudo apt-get update
$ sudo apt-get upgrade
NOTE: Please remove the '*' characters when placing the Path to your modules file.
NOTE #1: the double points at the end of the cake command IS NECESSARY! Do not delete!
NOTE #2: The WITH_EIGEN=OFF was used by me because I had an installation problem with the Eigen library. If you prefer, you can try to set it ON
NOTE #3: If you want to see ALL parameters you can install cmake-gui by typing the following command:
$ sudo apt-get install cmake-gui
------------------------------------------ UPDATE #1------------------------------------------
### FOR THOSE INSTALLING OpenCV 3.2.0 ###
If you are having the error saying something like the following error:
file DOWNLOAD cannot open file for write.
Call Stack (most recent call first):
There is a SOLUTION:
You must download the opencv_contrib-3.2.0 and this is NOT the one on the main github/opencv/opencv_contrib. You must go to the tab RELEASES and see the first release, the 3.2.0. The link is the following:
You will download the version compatible with the OpenCV version you are using it.
Besides this caveat, the steps are the same as described in the video.
Hope it helps!
----------------------------------------------------------------------------------------------------------------------------
Комментарии