How to build OpenCV extra module while OpenCV is installed with ros

asked 2016-03-16 11:44:10 -0600

Sagexs gravatar image

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!

edit retag flag offensive close merge delete

Comments

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

ahendrix gravatar image ahendrix  ( 2016-03-16 12:39:01 -0600 )edit

Unfortunately not

Sagexs gravatar image Sagexs  ( 2016-03-21 03:30:00 -0600 )edit

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

Avio gravatar image Avio  ( 2017-03-21 05:31:54 -0600 )edit

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.

Rosy gravatar image Rosy  ( 2017-09-13 05:12:24 -0600 )edit