OpenCV 2.2.0 for Android

12,297 views

Published on

A tutorial of Compiling OpenCV 2.2.0 for Android.

Published in: Technology, Education
5 Comments
6 Likes
Statistics
Notes
No Downloads
Views
Total views
12,297
On SlideShare
0
From Embeds
0
Number of Embeds
93
Actions
Shares
0
Downloads
339
Comments
5
Likes
6
Embeds 0
No embeds

No notes for slide

OpenCV 2.2.0 for Android

  1. 1. OpenCV for Android Installation Tutorial Author: Tony
  2. 2. What's OpenCV?
  3. 4. Why OpenCV?
  4. 5. Open Source?
  5. 6. Commercial Use?
  6. 7. High Performance?
  7. 8. Keep on Going?
  8. 9. Portability?
  9. 11. Open Source Commercial Use High Performance Keep on Going Portability Creative by Yourself! BSD License for You! GPU, SIMD, OpenMP 2010.12 Android, Linux, etc.
  10. 12. Decompress OpenCV source code: tar xvf ~/Downloads/OpenCV-2.2.0.tar.bz2
  11. 14. Mkdir the build directory: mkdir build
  12. 16. Decompress the Android NDK: tar xvf ~/Downloads/android-ndk-r4-crystax.tar.bz2
  13. 18. Config the Makefile: cmake -D NDK_ROOT=~/Working/OpenCV-2.2.0/android/android-ndk-r4-crystax ../
  14. 20. Start to build source code: make
  15. 23. Build the android-jni: (in OpenCV-2.2.0/android/build) cd ../android-jni make HOME=/home/neutron/Working/OpenCV-2.2.0/android
  16. 25. Run the ant java based build: sh project_create.sh ant compile
  17. 27. Modify the build.xml file in android-jni: vim build.xml
  18. 29. Build the sample project – CVCamera: (in OpenCV-2.2.0/android/android-jni) cd ../apps/CVCamera cp sample.local.env.mk local.env.mk Modify the HOME variable in local.env.mk sh build.sh sh project_create.sh ant debug ant install

×