opencv,编译xfeatures2d

时间:2016-06-27 08:31:34

标签: c++ macos opencv clang

我试图从https://github.com/Itseez/opencv_contrib为opencv添加额外的模块。我按照说明生成后,得到了这个:

OpenCV模块:

待建:核心flann imgproc highgui features2d calib3d aruco video bgsegm ml objdetect ocl bioinspired ccalib遗产照片gpu nonfree contrib face文本数据集dnn dpm fuzzy line_descriptor plot python reg rgbd saliency stereo stitching structured_light superres surface_matching tracking ts videostab xobjdetect photo

已禁用:world contrib_world ximgproc

依赖项禁用:optflow xfeatures2d

不可用:androidcamera dynamicuda java viz cvv hdf matlab sfm

我需要xfeatures2d,我该如何解决?我是OS X

1 个答案:

答案 0 :(得分:0)

根据我刚刚在OpenCV的cmake文件中检查过的内容,xfeatures2d模块依赖于 shape 模块,该模块未在您要构建的模块中列出。 由于没有给出更多错误,我只是猜测这可能会导致您的问题。尝试启用它。

无论如何,如果您不必手动显式构建它,则可以使用homebrew

使用contrib modules安装OpenCV3:

brew install homebrew/science/opencv3 --with-contrib
brew link opencv3 --force