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 fb67186351 editing the camerasettings text 14 years ago
..
jni adding include of "jni.h" 14 years ago
res editing the camerasettings text 14 years ago
src/com/opencv optimizing calibration for android 14 years ago
AndroidManifest.xml Refactoring the image_pool for android, and adding some common utils for camera configuration. Also experimenting with optimization - grayscale preview is way faster than color right now. 14 years ago
Makefile fixing a small error in the armeabi selection 14 years ago
README.txt Adding color as default for CameraConfig, and updating the README.txt 14 years ago
default.properties adding cmake based android scripts and a reusable android library - samples to follow - haven't tested yet completely 14 years ago
project_create.sh working on cleaning up the android port - trying to fix the distortion coefficients bug 14 years ago
sample.local.env.mk fixing a small error in the armeabi selection 14 years ago

README.txt

android-jni

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)

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:

make

that should work... If it doesn't make sure to edit the generated local.env.mk
to reflect your machine's setup

see the sample for how to use this in your own projects

If you only support armeabi-v7a or armeabi your final apks will be much smaller.

To build the class files, either start a new Android project from existing sources
in eclipse
or from the commmand line:
sh project_create.sh
ant debug

This should be linked to in your android projects, if you would like to reuse the
code. See Calibration or CVCamera in the opencv/android/apps directory

With cdt installed in eclipse, you may also "convert to C++ project" once you have
opened this as an android project. Select makefile project->toolchain other to do this.

Eclipse tip of the day:
You may get build warnings when linking to the project, complainging about duplicate something
or other in you .svn directories. Right click project->settings->java build path->source->excude paths->add
.svn/ and **/.svn/ should do it ;)