OpenCV 2.2.0 for Android

  • 10,605 views
Uploaded on

A tutorial of Compiling OpenCV 2.2.0 for Android.

A tutorial of Compiling OpenCV 2.2.0 for Android.

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
10,605
On Slideshare
0
From Embeds
0
Number of Embeds
5

Actions

Shares
Downloads
284
Comments
5
Likes
6

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. OpenCV for Android Installation Tutorial Author: Tony
  • 2. What's OpenCV?
  • 3.  
  • 4. Why OpenCV?
  • 5. Open Source?
  • 6. Commercial Use?
  • 7. High Performance?
  • 8. Keep on Going?
  • 9. Portability?
  • 10.  
  • 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.
  • 12. Decompress OpenCV source code: tar xvf ~/Downloads/OpenCV-2.2.0.tar.bz2
  • 13.  
  • 14. Mkdir the build directory: mkdir build
  • 15.  
  • 16. Decompress the Android NDK: tar xvf ~/Downloads/android-ndk-r4-crystax.tar.bz2
  • 17.  
  • 18. Config the Makefile: cmake -D NDK_ROOT=~/Working/OpenCV-2.2.0/android/android-ndk-r4-crystax ../
  • 19.  
  • 20. Start to build source code: make
  • 21.  
  • 22.  
  • 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
  • 24.  
  • 25. Run the ant java based build: sh project_create.sh ant compile
  • 26.  
  • 27. Modify the build.xml file in android-jni: vim build.xml
  • 28.  
  • 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
  • 30.  
  • 31.  
  • 32.  
  • 33.  
  • 34.  
  • 35.  
  • 36.  
  • 37.