Reputation: 353
I have installed Opencv 2.4.8 on my Linux(ubuntu 14.04) machine and it works fine. When I'm trying to test SURF descriptor using sample code from the online official documentation the compiler gave me no such file or director error for #include<opencv2/nonfree/nonfree.hpp>
.
From this link i have tried to update the opencv library for the nonfree modules with but still no success.
To make history short how can include SURF descriptor to my project or any idea how to fix this?
Upvotes: 3
Views: 13843
Reputation: 390
You need to enable OPENCV_ENABLE_NONFREE
when you build your opencv version.
I guess it goes like this in the prompt command cmake -D OPENCV_ENABLE_NONFREE=ON ..
But if you prefer cmake GUI see the picture below. picture
Upvotes: 1
Reputation: 61
sudo apt-get update
sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
sudo apt-get update
sudo apt-get install libopencv-nonfree-dev
Upvotes: 6