Nonfree module is missing in OpenCV 3.0

后端 未结 2 1881
轮回少年
轮回少年 2020-11-27 06:30

I have built the openCV 3.0 alpha version from source with support for CUDA and TBB. Now, I want to do feature detection and feature matching using SURF algorithm. SurfFeatu

相关标签:
2条回答
  • 2020-11-27 07:05

    You could also install all the non-free stuff from this PPA

    sudo add-apt-repository ppa:ignaciovizzo/opencv3-nonfree
    sudo apt-get update
    sudo apt install libopencv-dev
    
    0 讨论(0)
  • 2020-11-27 07:18

    with opencv3.0, SURF/SIFT and some other things have been moved to a seperate opencv_contrib repo .

    you will have to download that, add it to your main opencv cmake settings (please look at the readme there), and rerun cmake/make.

    then:

    #include "opencv2/xfeatures2d.hpp"
    
    ...
    Ptr<SIFT> sift = cv::xfeatures2d::SIFT::create(...);
    sift->detect(...);
    
    0 讨论(0)
提交回复
热议问题