add_subdirectory(color-blob-detection)
add_subdirectory(tutorial-1-camerapreview)
-add_subdirectory(tutorial-4-mixed)
+add_subdirectory(tutorial-2-mixedprocessing)
add_subdirectory(tutorial-5-cameracontrol)
#hello-android sample
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.tutorial4"
+ package="org.opencv.samples.tutorial2"
android:versionCode="21"
android:versionName="2.1">
android:icon="@drawable/icon"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
- <activity android:name="Sample4Mixed"
+ <activity android:name="Sample2MixedProcessing"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:configChanges="keyboardHidden|orientation">
-set(sample example-tutorial-4-mixed)
+set(sample example-tutorial-2-nativeprocessing)
if(BUILD_FAT_JAVA_LIB)
set(native_deps opencv_java)
using namespace cv;
extern "C" {
-JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_Sample4Mixed_FindFeatures(JNIEnv*, jobject, jlong addrGray, jlong addrRgba);
+JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial2_Sample2NativeProcessing_FindFeatures(JNIEnv*, jobject, jlong addrGray, jlong addrRgba);
-JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_Sample4Mixed_FindFeatures(JNIEnv*, jobject, jlong addrGray, jlong addrRgba)
+JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial2_Sample2NativeProcessing_FindFeatures(JNIEnv*, jobject, jlong addrGray, jlong addrRgba)
{
Mat& mGr = *(Mat*)addrGray;
Mat& mRgb = *(Mat*)addrRgba;
<org.opencv.android.JavaCameraView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:id="@+id/tutorial4_activity_surface_view" />
+ android:id="@+id/tutorial2_activity_surface_view" />
</LinearLayout>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">OCV T2 Mixed Processing</string>
+</resources>
-package org.opencv.samples.tutorial4;
+package org.opencv.samples.tutorial2;
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame;
import android.view.MenuItem;
import android.view.WindowManager;
-public class Sample4Mixed extends Activity implements CvCameraViewListener2 {
+public class Sample2MixedProcessing extends Activity implements CvCameraViewListener2 {
private static final String TAG = "OCVSample::Activity";
private static final int VIEW_MODE_RGBA = 0;
}
};
- public Sample4Mixed() {
+ public Sample2MixedProcessing() {
Log.i(TAG, "Instantiated new " + this.getClass());
}
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
- setContentView(R.layout.tutorial4_surface_view);
+ setContentView(R.layout.tutorial2_surface_view);
- mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.tutorial4_activity_surface_view);
+ mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.tutorial2_activity_surface_view);
mOpenCvCameraView.setCvCameraViewListener(this);
}
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">OCV T4 Mix Java+Native OpenCV</string>
-</resources>