1

The OpenCV 3.0 binary package for Windows doesn't include the contrib binaries. For instance, if you try to run the python sample called find_obj.py it fails with the exception below:

AttributeError: 'module' object has no attribute 'xfeatures2d'

Is there any place to download the contrib binaries without compiling the entire OpenCV ? What's the purpose of having OpenCV binaries and not the contrib binaries available ?

Tarantula
  • 19,031
  • 12
  • 54
  • 71
  • 1
    Check out: http://stackoverflow.com/a/28323252/1658810 Sorry to say but looks like you will have to build them yourself. – Lilith Daemon Jul 25 '15 at 01:40
  • 4
    _What's the purpose of having OpenCV binaries and not the contrib binaries available ?_ OpenCV's extra modules: This repository is intended for development of so-called "extra" modules, contributed functionality. New modules quite often do not have stable API, and they are not well-tested. Thus, they shouldn't be released as a part of official OpenCV distribution, since the library maintains binary compatibility, and tries to provide decent performance and stability. – Miki Jul 25 '15 at 01:42
  • Also its not hard to build yourself, and you often times can optimize the build for your specific system to help speed it up. I haven't done any formal testing, but have noticed roughly a 5-10% increase in speed by building it myself. – Lilith Daemon Jul 25 '15 at 01:48
  • possible duplicate of [contrib module missing in opencv 3.0?](http://stackoverflow.com/questions/28323077/contrib-module-missing-in-opencv-3-0) – J Richard Snape Jul 26 '15 at 00:47

1 Answers1

1

So, I searched everywhere and it seems that the binary for the contrib module isn't provided and you have to compile it by yourself.

Tarantula
  • 19,031
  • 12
  • 54
  • 71