OpenCV 4 Android
OpenCV4Android
Want a Quick Start link? Use this tutorial: “OpenCV for Android SDK”.
想要快速开始吗?使用这个教程:“OpenCV for Android SDK”。
What you should know你应该知道的
There are two major types of OpenCV4Android beginners, first group is new to Android, and the second - to OpenCV. We’ll try to provide some advice for both:有两种大的类型的OpenCV4Android开始者,第一种是对Android还不熟悉,第二种是对OpenCV还不熟悉。我们将努力为两种都提供一些建议:
- If you’re an experienced OpenCV adept and you want to start with Android, you should remember, that Android is not desktop OS, you should prepare yourself for mobile development. We’re not aiming to teach you all about Android, so in case you’re not really familiar with the platform, you may consider consulting the official website for developers, or some short introduction like this one. At the same time, we’ve prepared a special “Introduction into Android Development” tutorial and a set of samples helping you to become familiar with Android specifics. What’s important, is that you can reuse your C++ desktop code. It’s even recommended to develop and debug your algorithms in familiar environment, using your PC and favourite IDE. Of course you have to keep efficiency in mind, but please avoid premature optimization. OpenCV was designed to be high-performance, so measure your actual performance before you start to worry. Keep in mind, that majority of modern mobile devices is surprisingly powerful.如果你是一个有经验的OpenCV研究员,而对Android不熟悉,想开始开发,那么你应该记住,Android不是一个桌面的操作系统,你应该做好做mobile开发的准备。我们不准备教你关于Android的所有知识,所以如果你对该平台不是很熟悉,那么你应该考虑咨询开发者官网,或者查看像这个这种的简短介绍。同时,我们已经准备了一个专门的“Android开发简介”教程,里面有一系列的例子将帮助你对Android熟悉起来。这里很重要的一点就是,你可以重用你的C++桌面代码。甚至建议你在熟悉的环境中使用自己的PC和最喜欢的IDE来开发和调试算法。当然,你必须时刻记住效率,但是请避免过早地最优化。OpenCV是设计的最优化的,所以在你开始担心之前请实际跑一下看看是否真的需要做优化。请记住,现代的移动设备大部分都惊人的强大。
- If you’re a confident Android developer, but you need some information on OpenCV, please have a look at the documentation and use the user-support resources if needed: forum and issue tracker. And do not forget to look into tutorials, they will help you to quickly understand what you can easily accomplish with OpenCV. Computer Vision field has a long history, but some problems are still unsolved. If you’re not sure if OpenCV could help you with your task, just ask your question at our forum, people there like to solve quirky problems. 如果你是一个自信的Android开发者,但是你需要一些关于OpenCV的信息,请查看一些这个文档,并且使用用户支持资源如果需要的话:论坛和问题追踪。并且不要忘记查看教程,它们将帮助你快速理解你可以轻松用OpenCV完成的事情。计算机视觉领域有很长的历史,但是有些问题还是没有解决。如果你不确定OpenCV是否能帮助你完成你的任务的话,只需在我们的论坛提出你的问题,那里的人们将乐于帮你快速解决问题。
How to start如何开始
OpenCv4Android is available as a SDK with a set of samples and Javadoc documentation for OpenCV Java API. It also contains prebuilt apk-files, which you can run on your device instantly. There are three OpenCV tutorials aimed to help you start:OpenCV4Android可作为一个SDK使用,其中带有OpenCV Java API的一系列的例子和Javadoc文档。它还包括预编译的apk文件,你可以立即在你的设备上运行。有三个帮你上手的OpenCV教程。
- “Introduction into Android Development” would be useful for the absolute beginner, because it shows you how to setup Android development environment.“Android开发简介”对于完全新手来说是有用的,因为它向你展示了如何安装Android开发环境。
- Detailed instructions on SDK are available in the “OpenCV for Android SDK” tutorial. You’ll see a couple of sample applications, which you can use as a basis for your own developments.关于SDK的详细介绍在“OpenCV for AndroidSDK”中可以找到。其中你会看到几个简单的应用,你可以用它们来作为你自己的开发基础。
- “Android development with OpenCV” shows you how to add OpenCV functionality into your Android application. For those who want to reuse their C++ code, we’ve created a special section: “Native/C++”. We propose this way for the professional developers, since native development is a bit harder, but gives you larger opportunities. Face detection sample shows an example of wrapping a C++ class to the Java.
If you need additional information on OpenCV usage models, you can check this page.
Online resources
User Communities:
- OpenCV Q&A forum: http://answers.opencv.org. Use it as a major resource for Computer Vision and OpenCV consultancy.
- Read-only OpenCV4Android group: https://groups.google.com/group/android-opencv. This group was replaced by the Q&A forum from above, but its archive is still available.
OpenCV4Android documentation:
- Tutorials: “Introduction into Android Development”, “OpenCV for Android SDK”, “Android development with OpenCV”.
- Documentation on “OpenCV Manager”: please check these slides.
- Javadoc html-files are included into the distribution and available online.
- Android Samples
- Android Best Practices
Information on OpenCV:
- Official documentation for the latest public release: http://docs.opencv.org.
- Daily documentation build: http://docs.opencv.org/master/.
- And please pay special attention to the tutorials and C++ cheatsheet!
3rd-party samples and tutorials:
- Open Source Google Glass samples by Jared Burrows and Andre Compagno
- Eyes detection and tracking on Android sample by Roman Hošek (the “face-detection” sample extension)
Providing feedback
- You know, we love contributions, especially pull requests on the GitHub!
If you think you’ve found a new bug, let’s double-check it:
- Please check that you use the latest version of OpenCV4Android.
- Please check the open “Android issues” on the tracker.
- Ask OpenCV community about your problem.
- If you’re still suspecting that you’re probably the first human who met such problem, let’s file a bug! Instructions are here.
Contacts
- Use OpenCV Q&A forum for most of your questions. And please help others, this is good for your karma!
- Email: android at opencv dot org. Again, please use the group first of all, we do not provide private consultancy!
- Twitter: https://twitter.com/OpenCV4Android.
OpenCV 4 Android的更多相关文章
- OpenCv for Android
Android开发:安装NDK,移植OpenCV2.3.1,JNI调用OpenCV全过程http://blog.csdn.net/yanzi1225627/article/details/852572 ...
- !! 2.对十份论文和报告中的关于OpenCV和Android NDK开发的总结
http://hujiaweibujidao.github.io/blog/2013/11/18/android-ndk-and-opencv-development-3/ Android Ndk a ...
- OpenCV在Android平台上的应用
今年8月份, OpenCV 2.3.1发布了. 虽然从2.2开始, OpenCV就号称支持Android平台, 但真正能让OpenCV在Android上运行起来还是在2.3.1版本上. 在这个版本上, ...
- opencv for android sample导入有误
我们下载好opencv for android 后导入eclipse的时候发现人脸检测还有一个sample项目会有小叉,但是好像没有文件有问题.这时我们该怎么办呢? 在window中: 我们右键选择p ...
- NDk编译opencv for Android,并引用在Unity3d游戏中的一般步骤
本文使用:Unity3d + opencv + Android Unity3d中可以调用opencv 编译好的.so 动态库,在生成Android apk时可以正常运行. 因为Android系统是 ...
- 编译并使用带有OpenCL模块的OpenCV for android SDK
OpenCV Android SDK中提供的静态.动态库是不支持OpenCL加速的,如果在程序中调用OpenCL相关函数,编译时不会报错,但运行时logcat会输出如下信息,提示OpenCL函数不可用 ...
- 交叉编译OpenCV的Android版本
交叉编译OpenCV的Android版本 OpenCV作为一个强大的图像处理库,在Android上也有强大的应用. OpenCV官网提供了SDK的下载,可以直接下载使用 OpenCV官网地址:http ...
- Android学习六---OpenCV for android samples
搭建好OpenCV4Android环境后,就要着手开发自己的应用了.对于一个没有OpenCV基础的人来开发OpenCV应用确实有点难度,不过我们可以从samples里学起,结合javadoc和万能的网 ...
- 在OpenCV for Android 2.4.5中使用SURF(nonfree module)
http://blog.csdn.net/ruifdu/article/details/9120559 在OpenCV4Android中没有nonfree module,因此也就没有了SURF和SIF ...
随机推荐
- 使用nginx反向代理进行负载均衡
在这里简单记录一下,我使用Nginx反向代理进行负载均衡,将请求发送到两台tomcat上. 首先解压两个tomcat,解压Nginx,一台tomcat配置可以不用动,但是我为了更方便只是将它的端口改为 ...
- Java Thread 多线程同步、锁、通信
参看:http://www.cnblogs.com/hoojo/archive/2011/05/05/2038101.html
- 你知道的,javascript语言的执行环境是"单线程模式",这种模式的好处是实现起来比较简单,执行环境相对单纯;坏处是只要有一个任务耗时很长,后面的任务都必须排队等着,会拖延整个程序的执行,因此很多时候需要进行“异步模式”,请列举js异步编程的方法。
回调函数,这是异步编程最基本的方法. 事件监听,另一种思路是采用事件驱动模式.任务的执行不取决于代码的顺序,而取决于某个事件是否发生. 发布/订阅,上一节的"事件",完全可以理解成 ...
- hibernate操作数据库时报错解决方式
java.sql.SQLException: Parameter index out of range (28 > number of parameters, which is 27). 这个说 ...
- maven项目将web2.5改为web3.1
用maven构建的web项目默认的web.xml为2.3的版本,而我们需要更改为我们想要的版本(3.1). 在这里有两种方式更改web.xml的版本: 第一种: 将项目切换为navigator视图,然 ...
- TortoiseSVN/Git覆盖图标失效的解决方案
之前在电脑上安装了TortoiseGit和TortoiseSVN这两种版本控制,使用一段时间之后发现,这两种版本控制的覆盖图标都无法显示,起初以为是git和svn使用的图标的不一样,有冲突,导致这两种 ...
- python查找文件相同的和包含汉字的
#!/usr/bin/env python # Version = 3.5.2 import os import time d_path = '/data/media' log_file = 'res ...
- 跟我学算法聚类(kmeans)
kmeans是一种无监督的聚类问题,在使用前一般要进行数据标准化, 一般都是使用欧式距离来进行区分,主要是通过迭代质心的位置 来进行分类,直到数据点不发生类别变化就停止, 一次分类别,一次变换质心,就 ...
- Java 循环遍历删除set list中的元素
删除List和Set中的某些元素 错误代码的写法: Set<String> set = new HashSet<String>(); set.add("aaaaaa& ...
- 判断当前Selection是否为prefab
[判断当前Selection是否为prefab] PrefabUtility.GetPrefabParent(target) == null && PrefabUtility.GetP ...