Skip to content Skip to sidebar Skip to footer

Unable To Create Descriptormatcher In Opencv 3.2 - Android

I'm running the following openCV code in Android: FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB); DescriptorExtractor descriptor = DescriptorExtractor.creat

Solution 1:

Your code is right, i've tried it on my OpenCV 3.1 project and it's working flawlessly. I don't know about OpenCV 3.2 but it should be the same. Have you tried to enter the corresponding int value of your matcher ?

DescriptorMatchermatcher= DescriptorMatcher.create(4);

You can find the corresponding Int values here DescriptorMatcher OpenCV 3.2. It looks like DescriptorMatcher.BRUTEFORCE_HAMMING is considered as a long insted of int.

Solution 2:

There is currently a problem with the OpenCV Manager on Google Play. I doesn't support version 3.2 yet. To overcome the problem I copied the libs directory (sdk\native\libs) from the SDK to src/main/jniLibs of my application. Please note that I'm using Android Studio. In Eclipse it supposed to be located under the root of the app. see: Error while loading Native Library in Android

Post a Comment for "Unable To Create Descriptormatcher In Opencv 3.2 - Android"