Lakshya-Kejriwal/Real-Time-Video-Stabilization

'opencv2/nonfree/nonfree.hpp' file not found, where to find it?

Opened this issue · 2 comments

Scanning dependencies of target video_stabilization
[ 33%] Building CXX object CMakeFiles/video_stabilization.dir/main.cpp.o
/Users/peng/Documents/YSG/OD_dev/Real-Time-Video-Stabilization-master/main.cpp:5:10: fatal error:
'opencv2/nonfree/nonfree.hpp' file not found
#include "opencv2/nonfree/nonfree.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/video_stabilization.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/video_stabilization.dir/all] Error 2
make: *** [all] Error 2

install opencv2.4.x, not opencv3/4

Replace the relevant include with #include "opencv2/xfeatures2d/nonfree.hpp"