ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

trying to do surf detection

asked 2016-04-12 06:20:05 -0500

MOH gravatar image

updated 2016-04-12 08:17:51 -0500

i am trying to implement surf detection with ros and opencv but when i try to create the package it just shows me

[100%] Building CXX object project/CMakeFiles/Feature_Detector.dir/src/Feature_Detector.cpp.o

/home/maurice/catkin_ws/src/project/src/Feature_Detector.cpp:5:42: fatal error: opencv2/nonfree/features2d.hpp: No such file or directory

 #include <opencv2/nonfree/features2d.hpp>
compilation terminated.

make[2]: *** [project/CMakeFiles/Feature_Detector.dir/src/Feature_Detector.cpp.o] Error 1

make[1]: *** [project/CMakeFiles/Feature_Detector.dir/all] Error 2

make: *** [all] Error 2

Invoking "make -j4 -l4" failed

i have inserted the package in CMakeLists.txt

find_package(catkin REQUIRED COMPONENTS

and then i have also added the dependencies in the package.xml

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-12 09:32:10 -0500

Mehdi. gravatar image

As for Ubuntu, AFAIK the non free modules cannot just be installed directly using apt-get from the official ppa. In order to get the non free modules (including SURF) you could delete the opencv you have and install opencv by compiling it from source. Another alternative is to find some repositories that include the non free modules already. Some of them are mentioned here.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-04-12 06:20:05 -0500

Seen: 946 times

Last updated: Apr 12 '16