本文介绍了无法运行OpenCV的样本人脸检测应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经下载了OpenCV库。现在,当我米试图运行示例应用人脸检测它显示了以下错误:
I have Downloaded the openCV library. Now when I m trying to run the sample faceDetection application it shows the following error :
08-11 15:59:55.071: E/AndroidRuntime(13837): FATAL EXCEPTION: main
08-11 15:59:55.071: E/AndroidRuntime(13837): java.lang.UnsatisfiedLinkError: Couldn't load detection_based_tracer: findLibrary returned null
08-11 15:59:55.071: E/AndroidRuntime(13837): at java.lang.Runtime.loadLibrary(Runtime.java:429)
08-11 15:59:55.071: E/AndroidRuntime(13837): at java.lang.System.loadLibrary(System.java:554)
08-11 15:59:55.071: E/AndroidRuntime(13837): at com.kratin.opencvfacedetection.FdActivity$1.onManagerConnected(FdActivity.java:36)
08-11 15:59:55.071: E/AndroidRuntime(13837): at org.opencv.android.AsyncServiceHelper$1.onServiceConnected(AsyncServiceHelper.java:206)
08-11 15:59:55.071: E/AndroidRuntime(13837): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1064)
08-11 15:59:55.071: E/AndroidRuntime(13837): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1081)
08-11 15:59:55.071: E/AndroidRuntime(13837): at android.os.Handler.handleCallback(Handler.java:587)
08-11 15:59:55.071: E/AndroidRuntime(13837): at android.os.Handler.dispatchMessage(Handler.java:92)
08-11 15:59:55.071: E/AndroidRuntime(13837): at android.os.Looper.loop(Looper.java:130)
08-11 15:59:55.071: E/AndroidRuntime(13837): at android.app.ActivityThread.main(ActivityThread.java:3701)
08-11 15:59:55.071: E/AndroidRuntime(13837): at java.lang.reflect.Method.invokeNative(Native Method)
08-11 15:59:55.071: E/AndroidRuntime(13837): at java.lang.reflect.Method.invoke(Method.java:507)
08-11 15:59:55.071: E/AndroidRuntime(13837): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
08-11 15:59:55.071: E/AndroidRuntime(13837): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
08-11 15:59:55.071: E/AndroidRuntime(13837): at dalvik.system.NativeStart.main(Native Method)
但是precompiled facedetection.apk毫无问题运行。所以怎么回事错了,当我从示例应用程序,运行它?请帮助我out..I正在使用Ubuntu操作系统。
But the precompiled facedetection.apk runs without any problem. so whats going wrong when I am running it from sample application?? Pls help me out..I am using ubuntu os.
推荐答案
Solved..I已设置环境变量路径中使用ln命令来ndk..and取得联系,后问题解决了重建。
Solved..I have set the environment variable path to ndk..and made link using ln command and the problem solved after rebuild..
这篇关于无法运行OpenCV的样本人脸检测应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!