-
Quick Start Tutorial: Using Android binary package with Eclipse (start from here!)
- OpenCV documentation:
-
Latest (updated daily): http://opencv.itseez.com/trunk
-
2.3.1: http://opencv.itseez.com/
-
C++ cheatsheet: https://code.ros.org/trac/opencv/browser/trunk/opencv/doc/opencv_cheatsheet.pdf
-
-
Issue tracker: 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 at OpenCV-2.3.1/bin folder inside the binary package. Unfortunately you should use the real device if you want to run all the samples, because emulators are not compatible with OpenCV native camera.
-
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 OpenCV sources.
Known problems (beta2 package)
-
#1244 OpenCV native camera and all provided samples do not work on some devices (Motorola Droid) because of problem in camera initialization code.
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
-
AndroidExperimental - This is temporary page describing how to build OpenCV with a stanalone toolchain