使用OpenCV设置Android [英] Setting Up Android with OpenCV

查看:117
本文介绍了使用OpenCV设置Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

OpenCV在Android上使用Eclipse

什么是好的网站这解释了如何使用OpenCV配置Android SDK构建Android应用程序?

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

推荐答案

我昨天在OpenCV中设置了一个Android应用程序。

I set up an Android app with OpenCV yesterday.

有两种方法可以进行


  1. 使用OpenCV for Android

  2. 使用JavaCV

OpenCV for Android比JavaCV更全面地支持。按照Google的说明安装Eclipse,Android SDK和 NDK (don'忘记NDK!需要运行C ++代码,你的应用程序会神秘地崩溃,没有它)。之后,请按照教程安装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 for Android。这意味着您不需要设置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.

这篇关于使用OpenCV设置Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆