#1283, Mat <->Bitmap converters are updated to support CV_8UC(1,3,4) & non-continuous Mat-s and RGBA_8888 & RGB_565 Bitmaps; Android samples project files are updated according to the latest SDK req-s.
parent
f7fd7929e1
commit
62591a1d5a
25 changed files with 436 additions and 395 deletions
@ -1,9 +1,10 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> |
||||
<classpathentry kind="src" path="OpenCV_src"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> |
||||
<classpathentry kind="src" path="OpenCV_src"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> |
||||
<classpathentry kind="output" path="bin/classes"/> |
||||
</classpath> |
||||
|
@ -1,76 +1,138 @@ |
||||
#include <jni.h> |
||||
|
||||
#include "opencv2/core/core.hpp" |
||||
#include "opencv2/imgproc/imgproc.hpp" |
||||
|
||||
#include <android/bitmap.h> |
||||
|
||||
#ifdef __cplusplus |
||||
#include <android/log.h> |
||||
#define LOG_TAG "org.opencv.android.Utils" |
||||
#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)) |
||||
#ifdef DEBUG |
||||
#define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)) |
||||
#else //!DEBUG
|
||||
#define LOGD(...) |
||||
#endif //DEBUG
|
||||
|
||||
using namespace cv; |
||||
|
||||
|
||||
extern "C" { |
||||
#endif |
||||
|
||||
/*
|
||||
* Class: org_opencv_android_Utils |
||||
* Method: nBitmapToMat(Bitmap b) |
||||
* Signature: (L)J |
||||
* Method: void nBitmapToMat(Bitmap b, long m_addr) |
||||
*/ |
||||
|
||||
JNIEXPORT jlong JNICALL Java_org_opencv_android_Utils_nBitmapToMat |
||||
(JNIEnv * env, jclass cls, jobject bitmap) |
||||
JNIEXPORT void JNICALL Java_org_opencv_android_Utils_nBitmapToMat |
||||
(JNIEnv * env, jclass cls, jobject bitmap, jlong m_addr) |
||||
{ |
||||
AndroidBitmapInfo info; |
||||
void* pixels; |
||||
cv::Mat* m = new cv::Mat(); |
||||
|
||||
if ( AndroidBitmap_getInfo(env, bitmap, &info) < 0 ) |
||||
return (jlong)m; // can't get info
|
||||
|
||||
if (info.format != ANDROID_BITMAP_FORMAT_RGBA_8888) |
||||
return (jlong)m; // incompatible format
|
||||
|
||||
if ( AndroidBitmap_lockPixels(env, bitmap, &pixels) < 0 ) |
||||
return (jlong)m; // can't get pixels
|
||||
|
||||
m->create(info.height, info.width, CV_8UC4); |
||||
if(m->data && pixels) |
||||
memcpy(m->data, pixels, info.height * info.width * 4); |
||||
|
||||
AndroidBitmap_unlockPixels(env, bitmap); |
||||
|
||||
return (jlong)m; |
||||
void* pixels = 0; |
||||
Mat& dst = *((Mat*)m_addr); |
||||
|
||||
try { |
||||
LOGD("nBitmapToMat"); |
||||
CV_Assert( AndroidBitmap_getInfo(env, bitmap, &info) >= 0 ); |
||||
CV_Assert( info.format == ANDROID_BITMAP_FORMAT_RGBA_8888 || |
||||
info.format == ANDROID_BITMAP_FORMAT_RGB_565 ); |
||||
CV_Assert( AndroidBitmap_lockPixels(env, bitmap, &pixels) >= 0 ); |
||||
CV_Assert( pixels ); |
||||
dst.create(info.height, info.width, CV_8UC4); |
||||
if( info.format == ANDROID_BITMAP_FORMAT_RGBA_8888 ) |
||||
{ |
||||
LOGD("nBitmapToMat: RGBA_8888 -> CV_8UC4"); |
||||
Mat tmp(info.height, info.width, CV_8UC4, pixels); |
||||
tmp.copyTo(dst); |
||||
} else { |
||||
// info.format == ANDROID_BITMAP_FORMAT_RGB_565
|
||||
LOGD("nBitmapToMat: RGB_565 -> CV_8UC4"); |
||||
Mat tmp(info.height, info.width, CV_8UC2, pixels); |
||||
cvtColor(tmp, dst, CV_BGR5652RGBA); |
||||
} |
||||
AndroidBitmap_unlockPixels(env, bitmap); |
||||
return; |
||||
} catch(cv::Exception e) { |
||||
AndroidBitmap_unlockPixels(env, bitmap); |
||||
LOGE("nBitmapToMat catched cv::Exception: %s", e.what()); |
||||
jclass je = env->FindClass("org/opencv/core/CvException"); |
||||
if(!je) je = env->FindClass("java/lang/Exception"); |
||||
env->ThrowNew(je, e.what()); |
||||
return; |
||||
} catch (...) { |
||||
AndroidBitmap_unlockPixels(env, bitmap); |
||||
LOGE("nBitmapToMat catched unknown exception (...)"); |
||||
jclass je = env->FindClass("java/lang/Exception"); |
||||
env->ThrowNew(je, "Unknown exception in JNI code {nBitmapToMat}"); |
||||
return; |
||||
} |
||||
} |
||||
|
||||
/*
|
||||
* Class: org_opencv_android_Utils |
||||
* Method: nBitmapToMat(long m, Bitmap b) |
||||
* Signature: (JL)Z |
||||
* Method: void nMatToBitmap(long m_addr, Bitmap b) |
||||
*/ |
||||
JNIEXPORT jboolean JNICALL Java_org_opencv_android_Utils_nMatToBitmap |
||||
(JNIEnv * env, jclass cls, jlong m, jobject bitmap) |
||||
JNIEXPORT void JNICALL Java_org_opencv_android_Utils_nMatToBitmap |
||||
(JNIEnv * env, jclass cls, jlong m_addr, jobject bitmap) |
||||
{ |
||||
AndroidBitmapInfo info; |
||||
void* pixels; |
||||
cv::Mat* mat = (cv::Mat*) m; |
||||
|
||||
if ( mat == 0 || mat->data == 0) |
||||
return false; // no native Mat behind
|
||||
|
||||
if ( AndroidBitmap_getInfo(env, bitmap, &info) < 0 ) |
||||
return false; // can't get info
|
||||
|
||||
if (info.format != ANDROID_BITMAP_FORMAT_RGBA_8888) |
||||
return false; // incompatible format
|
||||
|
||||
if ( AndroidBitmap_lockPixels(env, bitmap, &pixels) < 0 ) |
||||
return false; // can't get pixels
|
||||
|
||||
if(mat->data && pixels) |
||||
memcpy(pixels, mat->data, info.height * info.width * 4); |
||||
|
||||
AndroidBitmap_unlockPixels(env, bitmap); |
||||
|
||||
return true; |
||||
void* pixels = 0; |
||||
Mat& dst = *((Mat*)m_addr); |
||||
|
||||
try { |
||||
LOGD("nMatToBitmap"); |
||||
CV_Assert( AndroidBitmap_getInfo(env, bitmap, &info) >= 0 ); |
||||
CV_Assert( info.format == ANDROID_BITMAP_FORMAT_RGBA_8888 || |
||||
info.format == ANDROID_BITMAP_FORMAT_RGB_565 ); |
||||
CV_Assert( dst.dims == 2 && info.height == (uint32_t)dst.rows && info.width == (uint32_t)dst.cols ); |
||||
CV_Assert( dst.type() == CV_8UC1 || dst.type() == CV_8UC3 || dst.type() == CV_8UC4 ); |
||||
CV_Assert( AndroidBitmap_lockPixels(env, bitmap, &pixels) >= 0 ); |
||||
CV_Assert( pixels ); |
||||
if( info.format == ANDROID_BITMAP_FORMAT_RGBA_8888 ) |
||||
{ |
||||
Mat tmp(info.height, info.width, CV_8UC4, pixels); |
||||
if(dst.type() == CV_8UC1) |
||||
{ |
||||
LOGD("nMatToBitmap: CV_8UC1 -> RGBA_8888"); |
||||
cvtColor(dst, tmp, CV_GRAY2RGBA); |
||||
} else if(dst.type() == CV_8UC3){ |
||||
LOGD("nMatToBitmap: CV_8UC3 -> RGBA_8888"); |
||||
cvtColor(dst, tmp, CV_RGB2RGBA); |
||||
} else if(dst.type() == CV_8UC4){ |
||||
LOGD("nMatToBitmap: CV_8UC4 -> RGBA_8888"); |
||||
dst.copyTo(tmp); |
||||
} |
||||
} else { |
||||
// info.format == ANDROID_BITMAP_FORMAT_RGB_565
|
||||
Mat tmp(info.height, info.width, CV_8UC2, pixels); |
||||
if(dst.type() == CV_8UC1) |
||||
{ |
||||
LOGD("nMatToBitmap: CV_8UC1 -> RGB_565"); |
||||
cvtColor(dst, tmp, CV_GRAY2BGR565); |
||||
} else if(dst.type() == CV_8UC3){ |
||||
LOGD("nMatToBitmap: CV_8UC3 -> RGB_565"); |
||||
cvtColor(dst, tmp, CV_RGB2BGR565); |
||||
} else if(dst.type() == CV_8UC4){ |
||||
LOGD("nMatToBitmap: CV_8UC4 -> RGB_565"); |
||||
cvtColor(dst, tmp, CV_RGBA2BGR565); |
||||
} |
||||
} |
||||
AndroidBitmap_unlockPixels(env, bitmap); |
||||
return; |
||||
} catch(cv::Exception e) { |
||||
AndroidBitmap_unlockPixels(env, bitmap); |
||||
LOGE("nMatToBitmap catched cv::Exception: %s", e.what()); |
||||
jclass je = env->FindClass("org/opencv/core/CvException"); |
||||
if(!je) je = env->FindClass("java/lang/Exception"); |
||||
env->ThrowNew(je, e.what()); |
||||
return; |
||||
} catch (...) { |
||||
AndroidBitmap_unlockPixels(env, bitmap); |
||||
LOGE("nMatToBitmap catched unknown exception (...)"); |
||||
jclass je = env->FindClass("java/lang/Exception"); |
||||
env->ThrowNew(je, "Unknown exception in JNI code {nMatToBitmap}"); |
||||
return; |
||||
} |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
} // extern "C"
|
||||
|
@ -1,8 +1,8 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="src" path="OpenCV-2.3.1_src"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> |
||||
<classpathentry kind="output" path="bin/classes"/> |
||||
</classpath> |
||||
|
@ -1,40 +1,33 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Sample - face-detection</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
<linkedResources> |
||||
<link> |
||||
<name>OpenCV-2.3.1_src</name> |
||||
<type>2</type> |
||||
<locationURI>_android_OpenCV_2_3_1_df28900a/src</locationURI> |
||||
</link> |
||||
</linkedResources> |
||||
</projectDescription> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Sample - face-detection</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
|
@ -1,3 +1,3 @@ |
||||
android.library.reference.1=../../OpenCV-2.3.1 |
||||
android.library.reference.1=../../../android/build |
||||
# Project target. |
||||
target=android-8 |
||||
|
@ -1,8 +1,8 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="src" path="OpenCV-2.3.1_src"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> |
||||
<classpathentry kind="output" path="bin/classes"/> |
||||
</classpath> |
||||
|
@ -1,40 +1,33 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Sample - image-manipulations</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
<linkedResources> |
||||
<link> |
||||
<name>OpenCV-2.3.1_src</name> |
||||
<type>2</type> |
||||
<locationURI>_android_OpenCV_2_3_1_df28900a/src</locationURI> |
||||
</link> |
||||
</linkedResources> |
||||
</projectDescription> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Sample - image-manipulations</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
|
@ -1,8 +1,8 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="src" path="OpenCV-2.3.1_src"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> |
||||
<classpathentry kind="output" path="bin/classes"/> |
||||
</classpath> |
||||
|
@ -1,40 +1,33 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Tutorial 1 Basic - 1. Add OpenCV</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
<linkedResources> |
||||
<link> |
||||
<name>OpenCV-2.3.1_src</name> |
||||
<type>2</type> |
||||
<locationURI>_android_OpenCV_2_3_1_df28900a/src</locationURI> |
||||
</link> |
||||
</linkedResources> |
||||
</projectDescription> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Tutorial 1 Basic - 1. Add OpenCV</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
|
@ -1,8 +1,8 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="src" path="OpenCV-2.3.1_src"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> |
||||
<classpathentry kind="output" path="bin/classes"/> |
||||
</classpath> |
||||
|
@ -1,40 +1,33 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Tutorial 1 Basic - 2. Use OpenCV Camera</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
<linkedResources> |
||||
<link> |
||||
<name>OpenCV-2.3.1_src</name> |
||||
<type>2</type> |
||||
<locationURI>_android_OpenCV_2_3_1_df28900a/src</locationURI> |
||||
</link> |
||||
</linkedResources> |
||||
</projectDescription> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Tutorial 1 Basic - 2. Use OpenCV Camera</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
|
@ -1,7 +1,7 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="output" path="bin/classes"/> |
||||
</classpath> |
||||
|
@ -1,43 +1,33 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Tutorial 2 Advanced - 1. Add Native OpenCV</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> |
||||
<triggers>auto,full,incremental,</triggers> |
||||
<arguments> |
||||
<dictionary> |
||||
<key>LaunchConfigHandle</key> |
||||
<value><project>/.externalToolBuilders/Tutorial 2.1 Builder.launch</value> |
||||
</dictionary> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Tutorial 2 Advanced - 1. Add Native OpenCV</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
|
@ -1,8 +1,8 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="src" path="OpenCV-2.3.1_src"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="src" path="gen"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> |
||||
<classpathentry kind="output" path="bin/classes"/> |
||||
</classpath> |
||||
|
@ -1,40 +1,33 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Tutorial 2 Advanced - 2. Mix Java+Native OpenCV</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
<linkedResources> |
||||
<link> |
||||
<name>OpenCV-2.3.1_src</name> |
||||
<type>2</type> |
||||
<locationURI>_android_OpenCV_2_3_1_df28900a/src</locationURI> |
||||
</link> |
||||
</linkedResources> |
||||
</projectDescription> |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>Tutorial 2 Advanced - 2. Mix Java+Native OpenCV</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
|
Loading…
Reference in new issue