Python+OpenCV 3 - cant use SIFT

前端 未结 1 2002
滥情空心
滥情空心 2021-02-09 07:20

I compiled OpenCV 3 & opencv_contrib from latest source code. Installed it into site-packages folder for Python 2.7. I can follow all of the tutorials at http://docs.opencv.

相关标签:
1条回答
  • 2021-02-09 07:38

    as of 3.0, SIFT, SURF, BRIEF and FREAK were moved to a seperate opencv_contrib repo.

    you will have to download that, add it to your main cmake settings (please see the README there), and rebuild the main opencv repo. after 'make install' your python should have a new cv2.pyd, that contains those again. then:

    # note the additional namespace:
    sift = cv2.xfeatures2d.SIFT_create() 
    
    0 讨论(0)
提交回复
热议问题