Hello I am currently trying to execute Feature Matching with FLANN from OpenCV in Java.
Here is code of this Tutorial: https://docs.opencv.org/master/d5/d6f/tutorial_feature_flann_matcher.html
My Project was created with "Java with Ant"
I have added the following dependencies
aistcv-4.5.3.jar, opencv-453.jar and opencv_java453.dll to Project folder.
When I try to run this code an error message comes up.
run:
Exception in thread "main" java.lang.UnsatisfiedLinkError: org/opencv/xfeatures2d/SURF.create_0(DIIZZ)J
at org.opencv.xfeatures2d.SURF.create(SURF.java:92)
at surfflannmatchingdemo.SURFFLANNMatching.run(SURFFLANNMatchingDemo.java:43)
at surfflannmatchingdemo.SURFFLANNMatchingDemo.main(SURFFLANNMatchingDemo.java:80)
C:\Users\Juergen\AppData\Local\NetBeans\Cache\12.5\executor-snippets\run.xml:111: The following error occurred while executing this line:
C:\Users\Juergen\AppData\Local\NetBeans\Cache\12.5\executor-snippets\run.xml:68: Java returned: 1
BUILD FAILED (total time: 0 seconds)
What am I doing wrong?
SURF is still patented.
you can only use it IF you build from src with OPENCV_ENABLE_NONFREE=ON.
(you also probably dont have any contrib modules if it is the prebuilt jar file from SF)
try to replace it with SIFT