How to use Surf on OpenCV3.0.0

asked 2015-12-26 09:19:43 -0600

nistar gravatar image

updated 2015-12-26 09:20:12 -0600

Download the "opencv_contrib" on https://github.com/itseez/opencv_contrib

  1. cd /opencv-3.0.0

  2. cmake -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib-master/modules /opencv-3.0.0

  3. make -j5

But when I 'make", there is a error. I don't know how to do.

[ 65%] Built target opencv_face

[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_test_bioinspired.dir/test/test_retina_ocl.cpp.o

[ 65%] Building CXX object modules/bgsegm/CMakeFiles/opencv_test_bgsegm.dir/test/test_main.cpp.o

make[2]: * [modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/grayworld_white_balance.cpp.o] Error 1

make[1]: * [modules/xphoto/CMakeFiles/opencv_xphoto.dir/all] Error 2

make[1]: * Waiting for unfinished jobs....

[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_test_bioinspired.dir/test/test_main.cpp.o

[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_perf_bioinspired.dir/perf/opencl/perf_retina.cpp.o

[ 65%] Linking CXX executable ../../bin/opencv_test_bioinspired

[ 65%] Linking CXX executable ../../bin/opencv_perf_bioinspired

[ 65%] Linking CXX executable ../../bin/opencv_test_bgsegm

[ 65%] Built target opencv_test_bioinspired

[ 65%] Built target opencv_perf_bioinspired

[ 65%] Built target opencv_test_bgsegm

make: * [all] Error 2

edit retag flag offensive close merge delete

Comments

hmm, are you sure, you did not lose something in the output ? where's the actual error ?

berak gravatar imageberak ( 2015-12-26 09:36:16 -0600 )edit

I don't lose anythings, I think so.

The command has problem?

nistar gravatar imagenistar ( 2015-12-26 09:49:27 -0600 )edit

I use the command 'cmake -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib-master/modules /opencv-3.0.0/build'. And 'make' successfully, then 'sudo make install'.

But ‘#include <opencv2 xfeatures2d.hpp="">’, there isn't the file in /usr/local/include/opencv2

nistar gravatar imagenistar ( 2015-12-26 14:10:21 -0600 )edit