简体   繁体   English

无法运行openCV示例FaceDetection应用程序

[英]Cannot run openCV sample FaceDetection Application

I have Downloaded the openCV library. 我已经下载了openCV库。 Now when I m trying to run the sample faceDetection application it shows the following error : 现在,当我尝试运行示例faceDetection应用程序时,它显示以下错误:

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)

But the precompiled facedetection.apk runs without any problem. 但是预编译的facedetection.apk可以毫无问题地运行。 so whats going wrong when I am running it from sample application?? 所以当我从示例应用程序运行它时出了什么问题? Pls help me out..I am using ubuntu os. 请帮帮我..我正在使用ubuntu os。

解决了..我已将环境变量路径设置为ndk ..,并使用ln命令进行了链接,并且重建后已解决了问题。

If you use ubuntu, 如果您使用ubuntu,

project Right Click -> properties -> c/c++ build -> Build command 项目右键单击->属性-> c / c ++构建->构建命令

If this is ndk-build.cmd , you must fix " your ndk path/ndk-build " 如果这是ndk-build.cmd,则必须修复“ ndk path / ndk-build”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM