Repository for OpenCV's extra modules
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
This repository is intended for the 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.
So, all the new modules should be developed separately, and published in the
opencv_contribrepository at first. Later, when the module matures and gains popularity, it is moved to the central OpenCV repository, and the development team provides production-quality support for this module.
You can build OpenCV, so it will include the modules from this repository. Contrib modules are under constant development and it is recommended to use them alongside the master branch or latest releases of OpenCV.
Here is the CMake command for you:
$ cd $ cmake -DOPENCV_EXTRA_MODULES_PATH=/modules $ make -j5
As the result, OpenCV will be built in thewith all modules from
opencv_contribrepository. If you don't want all of the modules, use CMake's
BUILD_opencv_*options. Like in this example:
$ cmake -DOPENCV_EXTRA_MODULES_PATH=/modules -DBUILD_opencv_legacy=OFF
If you also want to build the samples from the "samples" folder of each module, also include the "-DBUILD_EXAMPLES=ON" option.
If you prefer using the gui version of cmake (cmake-gui), then, you can add
opencvcore by doing the following:
Select the opencv source code folder and the folder where binaries will be built (the 2 upper forms of the interface).
configurebutton. You will see all the opencv build parameters in the central interface.
Browse the parameters and look for the form called
OPENCV_EXTRA_MODULES_PATH(use the search form to focus rapidly on it).
OPENCV_EXTRA_MODULES_PATHby the proper pathname to the
/modulesvalue using its browse button.
configurebutton followed by the
generatebutton (the first time, you will be asked which makefile style to use).
opencvcore with the method you chose (make and make install if you chose Unix makefile at step 6).
To run, linker flags to contrib modules will need to be added to use them in your code/IDE. For example to use the aruco module, "-lopencv_aruco" flag will be added.
In order to keep a clean overview containing all contributed modules, the following files need to be created/adapted:
Update the README.md file under the modules folder. Here, you add your model with a single line description.
Add a README.md inside your own module folder. This README explains which functionality (separate functions) is available, links to the corresponding samples and explains in somewhat more detail what the module is expected to do. If any extra requirements are needed to build the module without problems, add them here also.