Adding modules from opencv_contrib to OpenCV

后端 未结 4 2029
闹比i
闹比i 2020-12-30 05:32

I\'m trying to add the xfeatures2d module from opencv_contrib to an existing OpenCV/Python project.

I\'ve downloaded the latest version of

4条回答
  •  鱼传尺愫
    2020-12-30 06:27

    Another possibility (and the easiest one I found!) is to install the 2.4.9 release which already include SIFT and SURF algorithm. You just have to do then

    import cv2
    sift = cv2.SIFT()
    (...)
    

提交回复
热议问题