====== OpenALPR ======
===== Android =====
[[https://github.com/openalpr/openalpr/wiki/Android-compilation|reference]]
==== Requirements ====
=== android sdk ===
=== android-ndk ===
/etc/profile.d/sdk.sh
export NDKROOT=/lab/sdk/android-ndk-r10e
export ANDROID_HOME=/lab/sdk/android-sdk-linux
export PATH=${PATH}:${NDKROOT}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools/
export ANDROID_CMAKE_TOOLCHAIN=/lab/sdk/android-cmake/android.toolchain.cmake
=== Eclipse ===
* Add ADT (android) plugin Help -> add new software -> https://dl-ssl.google.com/android/eclipse/ and set android sdk path
* Add CDT (C++) plugin: Help -> add new software -> http://download.eclipse.org/tools/cdt/releases/8.8
=== opencv ===
[[http://opencv.org/downloads.html|opencv for android sdk]]
* Unpack to /lab/sdk/ and Import /lab/sdk/**OpenCV-android-sdk** into eclipse
* On opencv projects add C++ nature: Properties -> New -> Other -> C/C++ -> Convert to a C/C++ project
* Project Properties -> C/C++ Build, and replace “Build command” text to "${NDKROOT}/ndk-build"
* Project Properties -> Android -> set target
=== tess-two ===
* [[https://github.com/rmtheis/tess-two|github]]
git clone git://github.com/rmtheis/tess-two tess
cd tess
cd tess-two
ndk-build
android update project --path .
ant release
/lab/sdk/OpenCV-android-sdk
=== android-cmake ===
cd /lab/sdk
git clone https://github.com/taka-no-me/android-cmake.git
# update path in sdk.sh above