ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \ -D BUILD_EXAMPLES=ON .. \ -D OPENCV_ENABLE_NONFREE=ON ..
You may need to uninstall python-opencv
to use your build from source if the package was already installed with ROS or separately using the package manager. For that, and in order to prevent the package manager to remove all dependencies and brake your ROS installation, use instead the next command (only if you know what you are doing) to remove only your python-opencv
package:
sudo dpkg -P --force-all python-opencv
2 | No.2 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \ -D BUILD_EXAMPLES=ON .. \ -D OPENCV_ENABLE_NONFREE=ON ..
You may need to uninstall python-opencv
to use your build from source if the package was already installed with ROS or separately using the package manager. For that, and in order to prevent the package manager to remove all dependencies and brake your ROS installation, use instead the next command (only if you know what you are doing) to remove only your python-opencv
package:
sudo dpkg -P --force-all python-opencv
3 | No.3 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:4 | No.4 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:`
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON .. \
-D OPENCV_ENABLE_NONFREE=ON .. ..
`
5 | No.5 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:`
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON .. \
-D OPENCV_ENABLE_NONFREE=ON ..
`
6 | No.6 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \ -D BUILD_EXAMPLES=ON .. \ -D OPENCV_ENABLE_NONFREE=ON ..
7 | No.7 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON .. \
-D OPENCV_ENABLE_NONFREE=ON ..
..
8 | No.8 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \ -D BUILD_EXAMPLES=ON .. \ -D OPENCV_ENABLE_NONFREE=ON ..
9 | No.9 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \ -D BUILD_EXAMPLES=ON .. \ -D OPENCV_ENABLE_NONFREE=ON
....
10 | No.10 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:cmake -D CMAKE_BUILD_TYPE=RELEASE
\\
-D CMAKE_INSTALL_PREFIX=/usr/local\\
-D INSTALL_C_EXAMPLES=ON\\
-D INSTALL_PYTHON_EXAMPLES=ON\\
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules\\
-D BUILD_EXAMPLES=ON ..\\
-D OPENCV_ENABLE_NONFREE=ON..
Compile OpenCV
11 | No.11 Revision |
Since xfeatured2d module is not part of OpenCV anymore, but now included in opencv_contrib
(https://github.com/opencv/opencv_contrib/tree/master/modules/xfeatures2d) you need to build and install from source and add those modules to the build configuration.
Summarizing what you can find in the following link (https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/).
opencv_contrib
repositoryOPENCV_ENABLE_NONFREE=ON
. The whole command would look something like this:cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \-D INSTALL_C_EXAMPLES=ON \-D INSTALL_PYTHON_EXAMPLES=ON \-D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \-D BUILD_EXAMPLES=ON .. \-D OPENCV_ENABLE_NONFREE=ON....