Building OpenCV_Contrib for Java

asked 2015-07-16 01:52:57 -0600

bpworld gravatar image

updated 2015-07-16 05:12:56 -0600

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

edit retag flag offensive close merge delete

Comments

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)

berak gravatar imageberak ( 2015-07-16 06:01:23 -0600 )edit

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

bpworld gravatar imagebpworld ( 2015-07-22 06:53:08 -0600 )edit