If you can't read please download the document
Upload
picker-weng
View
12.190
Download
0
Embed Size (px)
Citation preview
OpenCV for Android Installation Tutorial
Author: Tony
What's OpenCV?
Why OpenCV?
Open Source?
Commercial Use?
High Performance?
Keep on Going?
Portability?
Open SourceCommercial UseHigh PerformanceKeep on GoingPortability
Creative by Yourself!BSD License for You!GPU, SIMD, OpenMP2010.12Android, Linux, etc.
Decompress OpenCV source code:tar xvf ~/Downloads/OpenCV-2.2.0.tar.bz2
Mkdir the build directory:mkdir build
Decompress the Android NDK:tar xvf ~/Downloads/android-ndk-r4-crystax.tar.bz2
Config the Makefile:cmake -D NDK_ROOT=~/Working/OpenCV-2.2.0/android/android-ndk-r4-crystax ../
Start to build source code:make
Build the android-jni: (in OpenCV-2.2.0/android/build)cd ../android-jnimake HOME=/home/neutron/Working/OpenCV-2.2.0/android
Run the ant java based build:sh project_create.shant compile
Modify the build.xml file in android-jni:vim build.xml
Build the sample project CVCamera:(in OpenCV-2.2.0/android/android-jni)cd ../apps/CVCameracp sample.local.env.mk local.env.mkModify the HOME variable in local.env.mksh build.shsh project_create.shant debugant install
Muokkaa otsikon tekstimuotoa napsauttamalla
Muokkaa jsennyksen tekstimuotoa napsauttamallaToinen jsennystasoKolmas jsennystasoNeljs jsennystasoViides jsennystasoKuudes jsennystasoSeitsems jsennystasoKahdeksas jsennystasoYhdekss jsennystaso