OpenCV4Android

Version 3 (Alexander Smorkalov, 2013-03-04 08:30 am)

1 1
h1. Android
2 1
3 1
{{>toc}}
4 1
5 2 Alexander Smorkalov
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! See the [[Android Release Notes]].
6 1
7 2 Alexander Smorkalov
h2. How to start 
8 1
9 2 Alexander Smorkalov
Developers have [[AndroidWays|2 basic ways]] to develop applications with the OpenCV4Android:
10 2 Alexander Smorkalov
# We recommend to download the "prebuilt OpenCV package":http://sourceforge.net/projects/opencvlibrary/files/opencv-android and follow the instructions from our tutorial: "Using Android binary package with Eclipse":http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html *(start from here)*. This package contains Eclipse library project and [[AndroidSamples|samples]]. Package also includes prebuilt apk-files, which you can run on your device immediately. They are placed at @OpenCV-2.4.0/bin@ folder inside the binary package.
11 2 Alexander Smorkalov
# You can build OpenCV from sources and have the full control over the library. See the [[Trunk OpenCV for Android|OpenCV trunk for Android]] page for instructions. Please note, that this is not recommended way and think [[AndroidWays|twice]] before you checkout the OpenCV sources.
12 1
13 2 Alexander Smorkalov
h2. Getting help
14 1
15 2 Alexander Smorkalov
h3. User Communities
16 1
17 2 Alexander Smorkalov
* Android-OpenCV group: https://groups.google.com/group/android-opencv (for Android-specific questions)
18 2 Alexander Smorkalov
* General OpenCV group: http://tech.groups.yahoo.com/group/OpenCV (for general OpenCV questions and discussions)
19 1
20 2 Alexander Smorkalov
h3. OpenCV documentation
21 1
22 2 Alexander Smorkalov
* Latest (updated daily): http://opencv.itseez.com/trunk
23 2 Alexander Smorkalov
* 2.4.0: http://opencv.itseez.com
24 3 Alexander Smorkalov
* C++ cheatsheet: source:trunk/opencv/doc/opencv_cheatsheet.pdf
25 1
26 2 Alexander Smorkalov
h3. OpenCV4Android documentation
27 1
28 2 Alexander Smorkalov
* "Using Android binary package with Eclipse":http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html 
29 1
* "Using C++ OpenCV code with Android binary package":http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html (advanced guide for NDK developers)
30 1
* [[Trunk OpenCV for Android|OpenCV Trunk]] - These are the bleeding edge trunk instructions
31 1
* [[AndroidSamples|Android Samples]]
32 1
* [[AndroidBestPractices|Android Best Practices]]
33 1
34 2 Alexander Smorkalov
h2. Providing feedback
35 2 Alexander Smorkalov
36 3 Alexander Smorkalov
You know, we love [[How_to_contribute|contributions]]! And please check the open Android issues on the "bug tracker":http://code.opencv.org/projects/opencv/issues?query_id=4.
37 2 Alexander Smorkalov
38 2 Alexander Smorkalov
* Issue tracker: http://code.opencv.org (you're already here). If you submit a ticket, please provide the correct "Category" name - @android@). If you could not identify the cause of the error, please provide the following information in your ticket:
39 2 Alexander Smorkalov
** Version number of Android platform (all 3 components of the version - for example: 2.2.1);
40 2 Alexander Smorkalov
** Exact CPU model of your device ("@adb shell cat /proc/cpuinfo@" command);
41 2 Alexander Smorkalov
** Output of "@adb logcat@" command;
42 2 Alexander Smorkalov
** Name of a sample if the problem is reproducible for any of the samples included into the binary package.
43 2 Alexander Smorkalov
44 2 Alexander Smorkalov
* Contacts
45 2 Alexander Smorkalov
** Email: [email protected] *(please use the Anroid-OpenCV group first of all, information should be available to everybody)*
46 2 Alexander Smorkalov
** Twitter: http://twitter.com/AndroidOpenCV
47 2 Alexander Smorkalov
48 2 Alexander Smorkalov
h2. Deprecated pages
49 1
50 1
 * "OpenCV 2.2 for Android":http://opencv.willowgarage.com/wiki/Android2.2 - These are the instructions if you are building against the 2.2 release of OpenCV.
51 1
 * "OpenCV 2.3.0 for Android":http://opencv.willowgarage.com/wiki/Android2.3.0 - These are the instructions if you are building against the 2.3.0 release of OpenCV.
52 1
 * "Build Android NDK application with prebuilt OpenCV 2.3.0 alpha":http://opencv.willowgarage.com/wiki/AndroidPrebuiltOpenCV230
53 1
 * "Prebuilt OpenCV 2.3.1 Package instruction on old wiki":http://opencv.willowgarage.com/wiki/AndroidPrebuiltOpenCV231
54 1
55 1
 * "How to build Android NDK application with prebuilt OpenCV":http://opencv.willowgarage.com/wiki/OpenCVAndroidBinariesBuild
56 1
 * "AndroidExperimental":http://opencv.willowgarage.com/wiki/AndroidExperimental - This is temporary page describing how to build OpenCV with a stanalone toolchain