I\'ve installed OpenCV on ubuntu using this link and I\'m trying to use SURF descriptor. I knew that they changed the location of these type of descriptors to the nonfree mo
Actually, I just updated openCV using the following commands then it worked:
sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
sudo apt-get update
sudo apt-get install libopencv-nonfree-dev
sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
sudo apt-get update
sudo apt-get install libopencv-nonfree-dev
---this answer works well for me, thanks @Maystro
after this step, just link your program to -lopencv_nonfree, or you cannot access to surf.
This worked for me:
sudo add-apt-repository --remove ppa:xqms/opencv-nonfree
sudo add-apt-repository --yes ppa:jeff250/opencv
sudo apt-get update
sudo apt-get install libopencv-dev
sudo apt-get install libopencv-nonfree-dev
Here's where I found it:
https://askubuntu.com/a/1141214/689474