2010-09-23 15:48:12 +02:00
|
|
|
android-jni
|
2010-09-22 03:47:11 +02:00
|
|
|
|
|
|
|
this is an example of an android library project that has some reusable
|
|
|
|
code that exposes part of OpenCV to android. In particular this provides a
|
|
|
|
native camera interface for loading live video frames from the android camera
|
|
|
|
into native opencv functions(as cv::Mat's)
|
|
|
|
|
2010-09-23 15:48:12 +02:00
|
|
|
pre-reqs:
|
|
|
|
* build the opencv/android libraries - up one directory
|
|
|
|
* you need swig in you path for android-jni
|
|
|
|
on ubuntu - sudo apt-get install swig
|
|
|
|
others: http://www.swig.org/
|
|
|
|
|
|
|
|
to build:
|
2010-09-22 03:47:11 +02:00
|
|
|
|
|
|
|
make
|
|
|
|
|
2010-09-22 15:24:37 +02:00
|
|
|
that should work... If it doesn't make sure to edit the generated local.env.mk
|
2010-09-23 15:48:12 +02:00
|
|
|
to reflect your machine's setup
|
2010-09-22 03:47:11 +02:00
|
|
|
|
2010-09-23 15:48:12 +02:00
|
|
|
see the sample for how to use this in your own projects
|
2010-09-22 03:47:11 +02:00
|
|
|
|
|
|
|
|