DescriptorExtractor.create method fails with 'Specified descriptor extractor type is not supported' (Bug #4419)
Description
private static final DescriptorExtractor descriptorExtractor = DescriptorExtractor.create(DescriptorExtractor.BRIEF);
Caused by: CvException [org.opencv.core.CvException: cv::Exception: c:\builds\master_packslaveaddon-win64-vc12-static\opencv\modules\features2d\misc\java\src\cpp\features2d_manual.hpp:374: error: (-5) Specified descriptor extractor type is not supported. in function cv::javaDescriptorExtractor::create
]
History
Updated by Philipp Hasper over 9 years ago
BRIEF has been moved to the contrib repository (https://github.com/Itseez/opencv_contrib) Are you using the pre-built OpenCV or did you build it yourself? In the latter case, you should include the build of contrib as explained in the link
Updated by be rak over 9 years ago
unfortunately, it won't work even with the contrib repo on board.
none of the xfeature2d classes are available in java atm.
if you take a close look at features2d_manual.hpp, you can see, that it was even tried to pull them in, but then discarded.
i made a quick attempt with conditional blocks like #ifdef HAVE_OPENCV_XFEATURES2D, but that did not work either - the opencv2/xfeatures2d.hpp header is not available, when compiling this.
imho, the whole features2d_manual.hpp factory approach should be removed in favour of ORB.create() , SIFT.create(), etc.
Updated by Mark Grubb over 9 years ago
Philipp Hasper wrote:
BRIEF has been moved to the contrib repository (https://github.com/Itseez/opencv_contrib) Are you using the pre-built OpenCV or did you build it yourself? In the latter case, you should include the build of contrib as explained in the link
I am using pre-built.
It appears the build is faulty.
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5030