首先为我糟糕的英语道歉…
嗯,我有一个巨大的问题与2 .jar或库JAVACV和OPENCV,我试图建立一个登录与面部跟踪和面部识别,但当我试图运行Main.java弹出这个问题:
run:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_objdetect in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:701)
at com.googlecode.javacpp.Loader.load(Loader.java:578)
at com.googlecode.javacpp.Loader.load(Loader.java:532)
at com.googlecode.javacv.cpp.opencv_objdetect.<clinit>(opencv_objdetect.java:91)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at com.googlecode.javacpp.Loader.load(Loader.java:553)
at com.googlecode.javacpp.Loader.load(Loader.java:532)
at com.googlecode.javacv.cpp.opencv_objdetect$CvHaarClassifierCascade.<clinit>(opencv_objdetect.java:170)
at reconocimiento.ReconocimientoCaras.<init>(ReconocimientoCaras.java:51)
at reconocimiento.ReconocimientoCaras.<clinit>(ReconocimientoCaras.java:53)
at reconocimiento.Main.main(Main.java:25)
Caused by: java.lang.UnsatisfiedLinkError: C:UsersCarlosAppDataLocalTempjavacpp42613800564148jniopencv_objdetect.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
at java.lang.Runtime.load0(Runtime.java:795)
at java.lang.System.load(System.java:1062)
at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:690)
... 11 more
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
我该如何解决这个问题?
检查你的操作系统是32位还是64位。然后安装相应版本的opencv和javacv。