Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以,我在这里有点困惑。我有一个 opencv 项目,它导入图像并对其进行处理并提供输出。所以我想将此项目用作我的 android 项目中的一部分。那么我该如何进行。我已经安装了 SDK、NDK openCV lib。任何帮助都会很棒。
使用 NDK 作为静态库编译您的项目。
使用 JNI 入口点创建一个共享库,该库从 Java 获取必要的输入并将结果返回给 Java。将它与您的静态库和 OpenCV 链接。
创建一个使用此共享库的 Java Android 项目。