How to build OpenCV extra module while OpenCV is installed with ros
Hey guy's!
I have installed ROS on my computer and this include opencv. Now I would like to a an extra module for opencv:
https://github.com/tolgabirdal/opencv...
The README sayed that I shall execute following commands:
$ cd <opencv_build_directory>
$ cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>
$ make -j5
where is the <opencv_build_directory> and the <opencv_source_directory> if opencv is installed with ros?
Best regards!
Can you get the modules you need by installing opencv-contrib?
sudo apt-get install libopencv-contrib-dev
?Unfortunately not
If we're talking about Kinetic on Ubuntu 16.04, the package
libopencv-contrib-dev
refers to OpenCV 2.4.9.apt-cache showpkg libopencv-contrib-dev
says:Reverse Depends: libopencv-dev,libopencv-contrib-dev 2.4.9.1+dfsg-1.5ubuntu1 ...
You can check your folder /opt/ros/kinetic/include/opencv-3.2.0-dev/opencv2. In my case, aruco has already been installed when I installed opencv with ros.