An overview of the contrib modules and a small explanation of opencv_contrib

An overview of the contrib modules and a small explanation


This list gives an overview of all modules available inside the contrib repository.
These are also the correct names for disabling the building of a specific module by adding

$ cmake -D OPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules -D BUILD_opencv_reponame=OFF <opencv_source_directory>
  1. opencv_adas: Advanced Driver Assistance Systems module with Forward Collision Warning.

  2. opencv_bgsegm: Improved Adaptive Background Mixture Model for Real-time Tracking / Visual Tracking of Human Visitors under Variable-Lighting Conditions.

  3. opencv_bioinspired: Biologically inspired vision models and derivated tools.

  4. opencv_ ccalib: Custom Calibration Pattern for 3D reconstruction.

  5. opencv_cvv: GUI for Interactive Visual Debugging of Computer Vision Programs.

  6. opencv_datasets: Interface for interfacing with existing computer vision databases.

  7. opencv_datasettools: Tools for working with different datasets.

  8. opencv_face: Recently added face recognition software which is not yet stabalized.

  9. opencv_latentsvm: Implementation of the LatentSVM detector algorithm.

  10. opencv_line_descriptor: Binary descriptors for lines extracted from an image.

  11. opencv_matlab: OpenCV Matlab Code Generator.

  12. opencv_optflow: Optical Flow Algorithms for tracking points.

  13. opencv_reg: Image Registration module.

  14. opencv_rgbd: RGB-Depth Processing module.

  15. opencv_saliency: Saliency API, understanding where humans focus given a scene.

  16. opencv_surface_matching: Surface Matching Algorithm Through 3D Features.

  17. opencv_text: Scene Text Detection and Recognition in Natural Scene Images.

  18. opencv_tracking: Long-term optical tracking API.

  19. opencv_xfeatures2d: Extra 2D Features Framework containing experimental and non-free 2D feature algorithms.

  20. opencv_ximgproc: Extended Image Processing: Structured Forests / Domain Transform Filter / Guided Filter / Adaptive Manifold Filter / Joint Bilateral Filter / Superpixels.

  21. opencv_xobjdetect: Integral Channel Features Detector Framework.

  22. opencv_xphoto: Additional photo processing algorithms: Color balance / Denoising / Inpainting.

  23. opencv_stereo: Stereo Correspondence done with different descriptors: Census / CS-Census / MCT / BRIEF / MV.

  24. opencv_hdf: Hierarchical Data Format I/O.

  25. opencv_fuzzy: New module focused on the fuzzy image processing.

安装opencv 和 opencv_contrib

下载安装

OpenCV3.0下载地址:http://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.0.0/
OpenCVcontrib下载地址:https://github.com/Itseez/opencvcontrib
cmake-gui下载地址:http://www.cmake.org/cmake/resources/software.html
下载以上内容并安装opencv和cmake-gui,我的OpenCV安装路径为D:\opencv3

使用cmake生成OpenCV.sln

打开cmake-gui
在where is the source code选择opencv的安装目录,我的是D:\opencv3\opencv\sources
在where to build the binaries里面选择要将opencv编译到的目录下面,我的是:D:\opencv3\opencv\mybuild
点击configure,在弹出的对话框内选择 Visual Studio 2013和default参数,点击finish。
这个时候cmake会开始编译不知道什么东西,然后会在屏幕中间出现一堆参数包括Name和Value,在其中找到Name为OPENCVEXTRAMODULESPATH的参数,然后把它的Value设置为opencvcontrib的路径,我的是D:/Files/Codes/Tracking/Exp/opencvcontrib-master/opencvcontrib-master/modules
然后点击Generate,等待。中间报了两次错,我去掉了BUILDopencvadas和WITH_CUDA等一系列看起来没用的东西,然后就完成了。

用VS编译生成debug和release库

打开D:\opencv3\opencv\mybuild目录下的OpenCV.sln
编译debug版本库:在“解决方案’OpenCV’(141个项目)”上面点击右键–>重新生成解决方案。
找到CMakeTargets中的INSTALL,然后右键选择“仅限于项目”–>“仅生成INSTALL”,然后就在D:\opencv3\opencv\mybuild\install中发现了许多东东。

重新配置自己的项目

VC++目录–>包含目录,添加:
D:\opencv3\opencv\mybuild\install\include
VC++目录–>库目录,添加:
D:\opencv3\opencv\mybuild\install\x86\vc12\lib
D:\opencv3\opencv\mybuild\install\x86\vc12\staticlib
链接器–>输入–>附加依赖项,添加:
opencv_bgsegm300d.lib
opencv_bioinspired300d.lib
opencv_calib3d300d.lib
opencv_ccalib300d.lib
opencv_core300d.lib
opencv_datasets300d.lib
opencv_face300d.lib
opencv_features2d300d.lib
opencv_flann300d.lib
opencv_hal300d.lib
opencv_highgui300d.lib
opencv_imgcodecs300d.lib
opencv_imgproc300d.lib
opencv_latentsvm300d.lib
opencvlinedescriptor300d.lib
opencv_ml300d.lib
opencv_objdetect300d.lib
opencv_optflow300d.lib
opencv_photo300d.lib
opencv_reg300d.lib
opencv_rgbd300d.lib
opencv_saliency300d.lib
opencv_shape300d.lib
opencv_stereo300d.lib
opencv_stitching300d.lib
opencv_superres300d.lib
opencvsurfacematching300d.lib
opencv_text300d.lib
opencv_tracking300d.lib
opencv_ts300d.lib
opencv_video300d.lib
opencv_videoio300d.lib
opencv_videostab300d.lib
opencv_xfeatures2d300d.lib
opencv_ximgproc300d.lib
opencv_xobjdetect300d.lib
opencv_xphoto300d.lib
ippicvmt.lib

五、参考文献

【1】https://github.com/Itseez/opencv_contrib/blob/master/README.md
【2】http://www.huqiwen.com/2012/11/27/compile-opencv-243-in-visual-studio-2012/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值