Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
902463b6
Commit
902463b6
authored
Feb 05, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tutorial4 sample renamed to Tutorial-2-MixedProcessing
parent
08cd51df
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
13 additions
and
13 deletions
+13
-13
CMakeLists.txt
samples/android/CMakeLists.txt
+1
-1
.classpath
samples/android/tutorial-2-mixedprocessing/.classpath
+0
-0
.cproject
samples/android/tutorial-2-mixedprocessing/.cproject
+0
-0
.project
samples/android/tutorial-2-mixedprocessing/.project
+0
-0
org.eclipse.jdt.core.prefs
...al-2-mixedprocessing/.settings/org.eclipse.jdt.core.prefs
+0
-0
AndroidManifest.xml
...es/android/tutorial-2-mixedprocessing/AndroidManifest.xml
+2
-2
CMakeLists.txt
samples/android/tutorial-2-mixedprocessing/CMakeLists.txt
+1
-1
Android.mk
samples/android/tutorial-2-mixedprocessing/jni/Android.mk
+0
-0
Application.mk
...les/android/tutorial-2-mixedprocessing/jni/Application.mk
+0
-0
jni_part.cpp
samples/android/tutorial-2-mixedprocessing/jni/jni_part.cpp
+2
-2
icon.png
.../android/tutorial-2-mixedprocessing/res/drawable/icon.png
+0
-0
tutorial2_surface_view.xml
...l-2-mixedprocessing/res/layout/tutorial2_surface_view.xml
+1
-1
strings.xml
...android/tutorial-2-mixedprocessing/res/values/strings.xml
+1
-1
Sample2MixedProcessing.java
.../org/opencv/samples/tutorial2/Sample2MixedProcessing.java
+5
-5
No files found.
samples/android/CMakeLists.txt
View file @
902463b6
...
...
@@ -12,7 +12,7 @@ add_subdirectory(image-manipulations)
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
...
...
samples/android/tutorial-
4-mixed
/.classpath
→
samples/android/tutorial-
2-mixedprocessing
/.classpath
View file @
902463b6
File moved
samples/android/tutorial-
4-mixed
/.cproject
→
samples/android/tutorial-
2-mixedprocessing
/.cproject
View file @
902463b6
File moved
samples/android/tutorial-
4-mixed
/.project
→
samples/android/tutorial-
2-mixedprocessing
/.project
View file @
902463b6
File moved
samples/android/tutorial-
4-mixed
/.settings/org.eclipse.jdt.core.prefs
→
samples/android/tutorial-
2-mixedprocessing
/.settings/org.eclipse.jdt.core.prefs
View file @
902463b6
File moved
samples/android/tutorial-
4-mixed
/AndroidManifest.xml
→
samples/android/tutorial-
2-mixedprocessing
/AndroidManifest.xml
View file @
902463b6
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.opencv.samples.tutorial
4
"
package=
"org.opencv.samples.tutorial
2
"
android:versionCode=
"21"
android:versionName=
"2.1"
>
...
...
@@ -9,7 +9,7 @@
android:icon=
"@drawable/icon"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
>
<activity
android:name=
"Sample
4Mixed
"
<activity
android:name=
"Sample
2MixedProcessing
"
android:label=
"@string/app_name"
android:screenOrientation=
"landscape"
android:configChanges=
"keyboardHidden|orientation"
>
...
...
samples/android/tutorial-
4-mixed
/CMakeLists.txt
→
samples/android/tutorial-
2-mixedprocessing
/CMakeLists.txt
View file @
902463b6
set
(
sample example-tutorial-
4-mixed
)
set
(
sample example-tutorial-
2-nativeprocessing
)
if
(
BUILD_FAT_JAVA_LIB
)
set
(
native_deps opencv_java
)
...
...
samples/android/tutorial-
4-mixed
/jni/Android.mk
→
samples/android/tutorial-
2-mixedprocessing
/jni/Android.mk
View file @
902463b6
File moved
samples/android/tutorial-
4-mixed
/jni/Application.mk
→
samples/android/tutorial-
2-mixedprocessing
/jni/Application.mk
View file @
902463b6
File moved
samples/android/tutorial-
4-mixed
/jni/jni_part.cpp
→
samples/android/tutorial-
2-mixedprocessing
/jni/jni_part.cpp
View file @
902463b6
...
...
@@ -8,9 +8,9 @@ using namespace std;
using
namespace
cv
;
extern
"C"
{
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_tutorial
4_Sample4Mixed
_FindFeatures
(
JNIEnv
*
,
jobject
,
jlong
addrGray
,
jlong
addrRgba
);
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_tutorial
2_Sample2NativeProcessing
_FindFeatures
(
JNIEnv
*
,
jobject
,
jlong
addrGray
,
jlong
addrRgba
);
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_tutorial
4_Sample4Mixed
_FindFeatures
(
JNIEnv
*
,
jobject
,
jlong
addrGray
,
jlong
addrRgba
)
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_tutorial
2_Sample2NativeProcessing
_FindFeatures
(
JNIEnv
*
,
jobject
,
jlong
addrGray
,
jlong
addrRgba
)
{
Mat
&
mGr
=
*
(
Mat
*
)
addrGray
;
Mat
&
mRgb
=
*
(
Mat
*
)
addrRgba
;
...
...
samples/android/tutorial-
4-mixed
/res/drawable/icon.png
→
samples/android/tutorial-
2-mixedprocessing
/res/drawable/icon.png
View file @
902463b6
File moved
samples/android/tutorial-
4-mixed/res/layout/tutorial4
_surface_view.xml
→
samples/android/tutorial-
2-mixedprocessing/res/layout/tutorial2
_surface_view.xml
View file @
902463b6
...
...
@@ -6,6 +6,6 @@
<org.opencv.android.JavaCameraView
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
android:id=
"@+id/tutorial
4
_activity_surface_view"
/>
android:id=
"@+id/tutorial
2
_activity_surface_view"
/>
</LinearLayout>
samples/android/tutorial-
4-mixed
/res/values/strings.xml
→
samples/android/tutorial-
2-mixedprocessing
/res/values/strings.xml
View file @
902463b6
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string
name=
"app_name"
>
OCV T
4 Mix Java+Native OpenCV
</string>
<string
name=
"app_name"
>
OCV T
2 Mixed Processing
</string>
</resources>
samples/android/tutorial-
4-mixed/src/org/opencv/samples/tutorial4/Sample4Mixed
.java
→
samples/android/tutorial-
2-mixedprocessing/src/org/opencv/samples/tutorial2/Sample2MixedProcessing
.java
View file @
902463b6
package
org
.
opencv
.
samples
.
tutorial
4
;
package
org
.
opencv
.
samples
.
tutorial
2
;
import
org.opencv.android.BaseLoaderCallback
;
import
org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame
;
...
...
@@ -17,7 +17,7 @@ import android.view.Menu;
import
android.view.MenuItem
;
import
android.view.WindowManager
;
public
class
Sample
4Mixed
extends
Activity
implements
CvCameraViewListener2
{
public
class
Sample
2MixedProcessing
extends
Activity
implements
CvCameraViewListener2
{
private
static
final
String
TAG
=
"OCVSample::Activity"
;
private
static
final
int
VIEW_MODE_RGBA
=
0
;
...
...
@@ -58,7 +58,7 @@ public class Sample4Mixed extends Activity implements CvCameraViewListener2 {
}
};
public
Sample
4Mixed
()
{
public
Sample
2MixedProcessing
()
{
Log
.
i
(
TAG
,
"Instantiated new "
+
this
.
getClass
());
}
...
...
@@ -69,9 +69,9 @@ public class Sample4Mixed extends Activity implements CvCameraViewListener2 {
super
.
onCreate
(
savedInstanceState
);
getWindow
().
addFlags
(
WindowManager
.
LayoutParams
.
FLAG_KEEP_SCREEN_ON
);
setContentView
(
R
.
layout
.
tutorial
4
_surface_view
);
setContentView
(
R
.
layout
.
tutorial
2
_surface_view
);
mOpenCvCameraView
=
(
CameraBridgeViewBase
)
findViewById
(
R
.
id
.
tutorial
4
_activity_surface_view
);
mOpenCvCameraView
=
(
CameraBridgeViewBase
)
findViewById
(
R
.
id
.
tutorial
2
_activity_surface_view
);
mOpenCvCameraView
.
setCvCameraViewListener
(
this
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment