Building OpenCV_Contrib for Java
Hi,
I am new to openCV and attempting to build jar files for Opencv_contrib modules. Anyone succeeded doing that?
Pls. share your experience.
Thanks BP
Asked: 2015-07-16 01:52:57 -0600
Seen: 1,631 times
Last updated: Jul 16 '15
you'll need cmake, python(to generate the wrappers), ant, and a jdk.
follow instructions here and here
last, but not least, - don't expect too much. atm, only the bioinspired module is exposed to java by default. (you can use the face one, too, but have to enable it manually)
Thanks Berak.
Managed to build from source but now i am facing the below mentioned problem.
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Ljava/lang/String;)J at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Native Method) at org.opencv.objdetect.CascadeClassifier.<init>(CascadeClassifier.java:45)
Pls. note i have loaded native library inside a static block but still i am facing this issue. Pls. share if you have any solution/fix the same.
thanks BP