Ask Your Question
1

3.0 alpha missing nonfree package

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

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
6

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

berak gravatar image

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

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

so,

  • 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

Comments

2

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 -0600 )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 -0600 )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 -0600 )edit
1

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 -0600 )edit
1

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 -0600 )edit

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

-- Installing: /usr/local/lib/libopencv_xfeatures2d.so -- Set runtime path of "/usr/local/lib/libopencv_xfeatures2d.so.3.0.0" 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 -0600 )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 -0600 )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 -0600 )edit

Question Tools

Stats

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

Seen: 11,104 times

Last updated: Aug 28 '14