Open Source Computer Vision Library https://opencv.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Ethan Rublee 78461db503 CameraTemplate compiles... not sure if it runs. 15 years ago
..
android-cmake correct spelling of my email address.. 15 years ago
android-jni Adding color as default for CameraConfig, and updating the README.txt 15 years ago
apps CameraTemplate compiles... not sure if it runs. 15 years ago
Android.mk.in adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 15 years ago
Android.mk.master.in removing the duplicated zlib for android - seems to build and link fine with the old one ... 15 years ago
Android.mk.modules.in adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 15 years ago
AndroidCVModule.cmake changing the names of the opencv libraries for android, all except 3rd parties have opencv_ prepended 15 years ago
AndroidManifest.xml.in adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 15 years ago
Application.mk.in changing the names of the opencv libraries for android, all except 3rd parties have opencv_ prepended 15 years ago
CMakeLists.txt adding an include director to android cmake <opencv2/opencv.hpp> should work now 15 years ago
README.android.txt adding setup for some sample applications that use OpenCV on the android platform - nothing concrete yet - but soon. 15 years ago
android-opencv.mk.in patch from ticket #699 added 15 years ago
android.wiki adding a copy of the wiki entry for android build 15 years ago
changes.Android.txt adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 15 years ago
changes.diff adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 15 years ago
cvconfig.h.in adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 15 years ago
default.properties.in adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 15 years ago
diff.txt adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 15 years ago

README.android.txt

Author: Ethan Rublee
email: ethan.rublee@gmail.com


To build with cmake:

mkdir build
cd build
cmake ..
make



Make sure to set the path in the cache for the crystax ndk available
here:
http://www.crystax.net/android/ndk-r4.php


to include in an android project -
just include the generated android-opencv.mk in you android ndk project
(in an Android.mk file)
with:

include android-opencv.mk

this defines OPENCV_INCLUDES and OPENCV_LIBS - which you should add to your
makefiles like:

#define OPENCV_INCLUDES and OPENCV_LIBS
include $(PATH_TO_OPENCV_ANDROID_BUILD)/android-opencv.mk

LOCAL_LDLIBS += $(OPENCV_LIBS)

LOCAL_C_INCLUDES += $(OPENCV_INCLUDES)

for now, you also need to cd to android-jni and run make
this will create the android shared library with some useful functionality
that may be reused in android projects.