How do I use opencv2/nonfree in ROS Kinetic ?

asked 2016-10-30 19:30:00 -0500

elpidiovaldez gravatar image

I am using ROS KInetic on lubuntu 16.04(Xenial).

The Xenial repositories supply opencv2 instead of opencv3, and apparently opencv3 will not compile from source on Xenial because some CUDA stuff is incompatible with the version of GCC. Sigh...

Now I thought everything would be solved by using ROS as it includes their own packaged version of opencv3 in the Xenial repository. Unfortunately the supplied version of opencv lacks the non-free components (I would like to use SURF and SIFT). I don't want to attempt installing opencv3 from source because I imagine that the version packaged by ROS is there for a reason and has some customisation specific to ROS.

Is there any simple way to get these non-free components installed into the directories used by the ROS version of opencv3 ?

edit retag flag offensive close merge delete