【发布时间】:2015-03-07 00:13:20
【问题描述】:
首先,OpenCV 示例都不能在 Nexus 6 Android 5.0 上运行。在 OpenCV 管理器安装提示后,我看到一个屏幕显示“未找到项目,重试”。后来我设置了android studio并导入了opencv模块并编写了一个初始化OpenCV的基本程序。该应用程序崩溃并抛出这篇文章中提到的错误:OpenCV Service Intent must be explicit, Android 5.0 Lolipop。遵循建议后,我能够得到下载 OpenCV 管理器的提示,并成功安装了 OpenCV 管理器。但是当我返回应用程序时,我发现它无法获取库路径。 logcat 反复显示这些消息-
W/ContextImpl﹕ Implicit intents with startService are not safe: Intent { act=org.opencv.engine.BIND } android.content.ContextWrapper.bindService:538 org.opencv.android.AsyncServiceHelper.initOpenCV:24 org.opencv.android.OpenCVLoader.initAsync:44
D/OpenCVManager/Helper﹕ Service connection created
D/OpenCVManager/Helper﹕ Trying to get library path
W/ContextImpl﹕ Implicit intents with startService are not safe: Intent { act=org.opencv.engine.BIND } android.content.ContextWrapper.bindService:538 org.opencv.android.AsyncServiceHelper.initOpenCV:24 org.opencv.android.OpenCVLoader.initAsync:44
D/OpenCVManager/Helper﹕ Service connection created
D/OpenCVManager/Helper﹕ Trying to get library path
如何克服这个问题并开始在 Lollipop 上使用 OpenCV for Android?
【问题讨论】:
标签: android opencv android-5.0-lollipop