gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 16:42:38 25 4
gpt4 key购买 nike

我已经下载了openCV库。现在,当我尝试运行示例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)

但是预编译的facedetection.apk可以毫无问题地运行。所以当我从示例应用程序运行它时出了什么问题?请帮帮我..我正在使用ubuntu os。

最佳答案

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

关于android - 无法运行openCV示例FaceDetection应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11913900/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com