Ask Your Question

3.0 alpha missing nonfree package

asked 2014-08-28 08:15:38 -0500

Mavericklsd gravatar image

I updated my OpenCV library to 3.0 alpha yesterday and wanted to use SURF as before, but I can't find the required package in source code anymore. Neither can I find the SIFT and FREAK used to be in the nonfree package. Are SURF and SIFT permanently removed from new library?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-28 08:21:59 -0500

berak gravatar image

updated 2014-08-28 08:22:59 -0500

3.0 is pretty much on the move right now, expect more 'surprises' like that.

the content of the nonfree module was moved to another repo


  • either clone the opencv_contrib repo, add -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules to your cmake cmdline, like mentioned in the readme , and recompile the opencv repo, running make install will then copy both the opencv as well as the opencv_contrib headers/libs/so's to your install dir. (if you're building without cuda, you might even need to tweak it)

  • or fall back to 2.4.9 by doing git checkout 2.4 in the opencv repo

edit flag offensive delete link more



And keep in mind, like suggested at the DEV forum, that there were several build errors for the master, which should be fixed in a day or 2 when my PR's get in that ensure a stable build.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-08-28 08:23:15 -0500 )edit

@StevenPuttemans, @berak: Do you maybe know where the Dense-FeatureDetector went? Seems to be removed :/ (sry for occupying this post here)

Guanta gravatar imageGuanta ( 2014-08-28 09:51:40 -0500 )edit

@Guanta, i'd like to know that, too ;) (tried to build subsense, which needs it)

berak gravatar imageberak ( 2014-08-28 09:59:06 -0500 )edit

No idea, but tons is missing. No createsamples utility, the experimental softcascade, ... no idea what happened with it :D

StevenPuttemans gravatar imageStevenPuttemans ( 2014-08-28 10:09:10 -0500 )edit

Yes, it solves the problem. I manage to compile the opencv_contrib along with the opencv according to berak's intruction. Thank you very much!

Mavericklsd gravatar imageMavericklsd ( 2014-08-28 10:17:11 -0500 )edit

After some hours, think I have successfully installed opencv_contrib. During 'sudo make install' I got thing like:

-- Installing: /usr/local/lib/ -- Set runtime path of "/usr/local/lib/" to "/usr/local/lib" -- Installing: /usr/local/include/opencv2/xfeatures2d.hpp -- Installing: /usr/local/include/opencv2/xfeatures2d/nonfree.hpp

with no errors. In /usr/local/include/opencv2 I find "xfeatures2d/nonfree.hpp", "xfeatures2d/cuda.hpp" and "xfeatures2d.hpp".

But I still can't import SIFT in my python code! If I use "cv2.SIFT" I have: AttributeError: 'module' object has no attribute 'SIFT'

And if I use cv2.xfeatures2d.SIFT, I have: AttributeError: 'module' object has no attribute 'xfeatures2d'

Any ideas? What should I do?

HSJunior gravatar imageHSJunior ( 2014-09-19 08:41:07 -0500 )edit

will that be still included in the official binary of 3.0? that would be much easier to use

flyfj gravatar imageflyfj ( 2014-10-04 12:08:37 -0500 )edit

No you will just have to include the correct new headers and modules. Nonfree is out for good!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-04 15:59:13 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2014-08-28 08:15:38 -0500

Seen: 10,685 times

Last updated: Aug 28 '14