Robotics StackExchange | Archived questions

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_contrib

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 and the if opencv is installed with ros?

Best regards!

Asked by Sagexs on 2016-03-16 11:44:10 UTC

Comments

Can you get the modules you need by installing opencv-contrib? sudo apt-get install libopencv-contrib-dev ?

Asked by ahendrix on 2016-03-16 12:39:01 UTC

Unfortunately not

Asked by Sagexs on 2016-03-21 03:30:00 UTC

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 ...

Asked by Avio on 2017-03-21 05:31:54 UTC

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.

Asked by Rosy on 2017-09-13 05:12:24 UTC

Answers