如果从源代码编译OpenCV,则可以自己编辑opencv / modules / features2d / misc / java / src / cpp
/ features2d_manual.hpp来修复缺少的绑定。
我通过以下更改对其进行了修复:
(line 6)#ifdef HAVE_OPENCV_FEATURES2D#include "opencv2/features2d.hpp"#include "opencv2/xfeatures2d.hpp"#include "features2d_converters.hpp"...(line 121) case SIFT: fd = xfeatures2d::SIFT::create(); break; case SURF: fd = xfeatures2d::SURF::create(); break;...(line 353) case SIFT: de = xfeatures2d::SIFT::create(); break; case SURF: de = xfeatures2d::SURF::create(); break;
唯一的要求是您与源一起构建opencv_contrib可选模块(您可以从https://github.com/Itseez/opencv_contrib下载git项目,并仅在opencv的ccmake设置上设置其本地路径。
哦,请记住,SIFT和SURF是非免费软件^^;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)