opencv3.0 无法使用FeatureDetector.SURF

opencv的features2d包中提供了surf,sift和orb等特征点算法,根据测试结果发现在opencv3.0的java版本中存在一些bug,导致surf算法无法使用,会抛出如下异常:

OpenCV Error: Bad argument (Specified feature detector type is not supported.) in cv::javaFeatureDetector::create, file C:/build/master_winpack-bindings-win64-vc14-static/opencv/modules/features2d/misc/java/src/cpp/features2d_manual.hpp, line 155
Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: C:/build/master_winpack-bindings-win64-vc14-static/opencv/modules/features2d/misc/java/src/cpp/features2d_manual.hpp:155: error: (-5) Specified feature detector type is not supported. in function cv::javaFeatureDetector::create
]
	at org.opencv.features2d.FeatureDetector.create_0(Native Method)
	at org.opencv.features2d.FeatureDetector.create(FeatureDetector.java:88)

外网也有人发现此问题:https://stackoverflow.com/questions/30657774/surf-and-sift-algorithms-doesnt-work-in-opencv-3-0-java

补充:

OpenCV 中和 2D 特征检测相关的算法的头文件位于opencv\modules\features2d\include\opencv2\features2d.hpp,除SIFT、SURF以外的特征。opencv\modules\nonfree\include\opencv2\nonfree\features2d.hpp,只包含SIFT、SURF这两个受专利保护的特征,因此不是免费的(nonfree)。但是jar包中依然存在调用关系。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值