Version 1/15
-
Next » -
Current version
Alexander Smorkalov, 2013-03-04 08:30 am
Android¶
Android is awesome, and so is OpenCV, so wouldn't it be awesomer if they could work together? Well they can, and its now officially supported in OpenCV!
Read our Android Release Notes to see what's new for Android developers in OpenCV.
Resources¶
- Quick Start Tutorial: Using Android binary package with Eclipse (start from here!)
- User Communities:
- Android-OpenCV group: https://groups.google.com/group/android-opencv (for Android-specific questions)
- General OpenCV group: http://tech.groups.yahoo.com/group/OpenCV (for general OpenCV questions and discussions)
- Contacts
- Email: [email protected] (please use the Anroid-OpenCV group first of all, information should be available to everybody)
- Twitter: http://twitter.com/AndroidOpenCV
- OpenCV documentation:
- Latest (updated daily): http://opencv.itseez.com/trunk
- 2.4.0: http://opencv.itseez.com
- C++ cheatsheet: http://code.opencv.org/trac/opencv/browser/trunk/opencv/doc/opencv_cheatsheet.pdf
- Issue tracker: http://code.opencv.org (read-only old Trac https://code.ros.org/trac/opencv/wiki).
If you submit a ticket, please provide the correct "component" name -android
). If you could not identify the cause of the error, please provide the following information in your ticket:- Version number of Android platform (all 3 components of the version - for example: 2.2.1);
- Exact CPU model of your device ("
adb shell cat /proc/cpuinfo
" command); - Output of "
adb logcat
" command; - Name of a sample if the problem is reproducible for any of the samples included into the binary package.
Download¶
Developers have 2 basic ways to develop applications with OpenCV on Android.- We recommend to download the prebuilt OpenCV package and follow the instructions from our tutorial: Using Android binary package with Eclipse. This package contains Eclipse library project and samples.
Package also includes prebuilt apk-files, which you can run on your device immediately. They are placed atOpenCV-2.4.0/bin
folder inside the binary package. - You can build OpenCV from sources and have the full control over the library. See the OpenCV trunk for Android page for instructions. Please note, that this is not recommended way and think twice before you checkout the OpenCV sources.
Known problems¶
Actual instructions¶
- Using Android binary package with Eclipse (recommended)
- Using C++ OpenCV code with Android binary package (advanced guide for NDK developers)
- OpenCV Trunk - These are the bleeding edge trunk instructions
Deprecated¶
- OpenCV 2.2 for Android - These are the instructions if you are building against the 2.2 release of OpenCV.
- OpenCV 2.3.0 for Android - These are the instructions if you are building against the 2.3.0 release of OpenCV.
- Build Android NDK application with prebuilt OpenCV 2.3.0 alpha
- Prebuilt OpenCV 2.3.1 Package instruction on old wiki
- How to build Android NDK application with prebuilt OpenCV
- AndroidExperimental - This is temporary page describing how to build OpenCV with a stanalone toolchain