设置使用Android的OpenCV的Android、OpenCV

2023-09-08 00:15:15 作者:味生一无

可能重复:    OpenCV的Andr​​oid上使用Eclipse

什么是一个很好的网站,介绍如何配置了Android SDK构建Android应用程序与OpenCV的?

What is a good site that explains how to configure the Android SDK to build Android apps with OpenCV?

推荐答案

我设置了​​OpenCV的Andr​​oid应用程序昨天。

I set up an Android app with OpenCV yesterday.

有两种方式去了解它。

使用OpenCV的Andr​​oid版 使用JavaCV

OpenCV的Andr​​oid版更全面超越JavaCV支持。按照谷歌的说明来安装Eclipse的Andr​​oid SDK和 NDK (不要忘了NDK!它需要运行C ++ code,你的应用程序将神秘崩溃没有它)。然后,按照这个tutorial要安装OpenCV。试用示例应用程序。

OpenCV for Android is more fully supported than JavaCV. Follow Google's instructions to install Eclipse, the Android SDK and NDK (don't forget the NDK! It is needed to run C++ code. Your apps will mysteriously crash without it). Afterwards, follow this tutorial to install openCV. Try out the sample applications.

另外,你可以尝试使用JavaCV而不是OpenCV的Andr​​oid版。这意味着你将不再需要安装了Android NDK。这也意味着你不需要写任何的C ++。我没有尝试这个。但我怀疑它更容易。不足之处是:它不支持所有的OpenCV确实

Alternatively, you can try using JavaCV instead of OpenCV for Android. This means you won't need to setup the Android NDK. It also means you won't need to write any C++. I didn't try this. But I suspect it is easier. The downside is: it doesn't support everything OpenCV does.