OpenCV on Android

 

How to: android-opencv development
  1. svn checkout http://android-opencv.googlecode.com/svn/trunk/ android-opencv-read-only
  2. Steps 2, 6 and 7 are from the readme //may change in the future, so check before proceeding. ( http://code.google.com/p/android-opencv/wiki/opencv )
    use crystax ndk 4 - http://crystax.net/android/ndk.php
    OpenCV needs this custom NDK, which has STLport support
    Direct Download link:
    http://www.crystax.net/data/android-ndk-r4-linux-x86-crystax-4.tar.bz2 
  3. Extract the downloaded file to: 
    ~/android-ndk-r4-crystax
  4. Add NDK to your path
    1. open a text editor
    2. open ~/.bashrc file
    3. append the following lines (replace “mustafae” with your own username.
      PATH="${PATH}":/home/mustafae/android-ndk-r4-crystax
      export PATH
  5. sudo apt-get install swig
    //for automatic generation of native library bindings
  6. cd android-opencv-read-only/opencv
  7. sh build.sh
  8. Get a cup of tea.
  9.