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
b558bb48
Commit
b558bb48
authored
Feb 05, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tutorial-5 -> Tutorial-3
parent
902463b6
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
13 deletions
+13
-13
CMakeLists.txt
samples/android/CMakeLists.txt
+1
-1
.classpath
samples/android/tutorial-3-cameracontrol/.classpath
+0
-0
.project
samples/android/tutorial-3-cameracontrol/.project
+0
-0
org.eclipse.jdt.core.prefs
...rial-3-cameracontrol/.settings/org.eclipse.jdt.core.prefs
+0
-0
AndroidManifest.xml
samples/android/tutorial-3-cameracontrol/AndroidManifest.xml
+2
-2
CMakeLists.txt
samples/android/tutorial-3-cameracontrol/CMakeLists.txt
+1
-1
icon.png
...es/android/tutorial-3-cameracontrol/res/drawable/icon.png
+0
-0
tutorial3_surface_view.xml
...ial-3-cameracontrol/res/layout/tutorial3_surface_view.xml
+1
-1
strings.xml
...s/android/tutorial-3-cameracontrol/res/values/strings.xml
+1
-1
Sample3CameraControl.java
...rc/org/opencv/samples/tutorial5/Sample3CameraControl.java
+6
-6
SampleJavaCameraView.java
...rc/org/opencv/samples/tutorial5/SampleJavaCameraView.java
+1
-1
No files found.
samples/android/CMakeLists.txt
View file @
b558bb48
...
...
@@ -13,7 +13,7 @@ add_subdirectory(color-blob-detection)
add_subdirectory
(
tutorial-1-camerapreview
)
add_subdirectory
(
tutorial-2-mixedprocessing
)
add_subdirectory
(
tutorial-
5
-cameracontrol
)
add_subdirectory
(
tutorial-
3
-cameracontrol
)
#hello-android sample
if
(
HAVE_opencv_highgui
)
...
...
samples/android/tutorial-
5
-cameracontrol/.classpath
→
samples/android/tutorial-
3
-cameracontrol/.classpath
View file @
b558bb48
File moved
samples/android/tutorial-
5
-cameracontrol/.project
→
samples/android/tutorial-
3
-cameracontrol/.project
View file @
b558bb48
File moved
samples/android/tutorial-
5
-cameracontrol/.settings/org.eclipse.jdt.core.prefs
→
samples/android/tutorial-
3
-cameracontrol/.settings/org.eclipse.jdt.core.prefs
View file @
b558bb48
File moved
samples/android/tutorial-
5
-cameracontrol/AndroidManifest.xml
→
samples/android/tutorial-
3
-cameracontrol/AndroidManifest.xml
View file @
b558bb48
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.opencv.samples.tutorial
5
"
package=
"org.opencv.samples.tutorial
3
"
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
5
CameraControl"
<activity
android:name=
"Sample
3
CameraControl"
android:label=
"@string/app_name"
android:screenOrientation=
"landscape"
android:configChanges=
"keyboardHidden|orientation"
>
...
...
samples/android/tutorial-
5
-cameracontrol/CMakeLists.txt
→
samples/android/tutorial-
3
-cameracontrol/CMakeLists.txt
View file @
b558bb48
set
(
sample example-tutorial-
5
-cameracontrol
)
set
(
sample example-tutorial-
3
-cameracontrol
)
add_android_project
(
${
sample
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
LIBRARY_DEPS
${
OpenCV_BINARY_DIR
}
SDK_TARGET 11
${
ANDROID_SDK_TARGET
}
)
if
(
TARGET
${
sample
}
)
...
...
samples/android/tutorial-
5
-cameracontrol/res/drawable/icon.png
→
samples/android/tutorial-
3
-cameracontrol/res/drawable/icon.png
View file @
b558bb48
File moved
samples/android/tutorial-
5-cameracontrol/res/layout/tutorial5
_surface_view.xml
→
samples/android/tutorial-
3-cameracontrol/res/layout/tutorial3
_surface_view.xml
View file @
b558bb48
...
...
@@ -7,6 +7,6 @@
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
android:visibility=
"gone"
android:id=
"@+id/tutorial
5
_activity_java_surface_view"
/>
android:id=
"@+id/tutorial
3
_activity_java_surface_view"
/>
</LinearLayout>
samples/android/tutorial-
5
-cameracontrol/res/values/strings.xml
→
samples/android/tutorial-
3
-cameracontrol/res/values/strings.xml
View file @
b558bb48
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string
name=
"app_name"
>
OCV T
5
Camera Control
</string>
<string
name=
"app_name"
>
OCV T
3
Camera Control
</string>
</resources>
samples/android/tutorial-
5-cameracontrol/src/org/opencv/samples/tutorial5/Sample5
CameraControl.java
→
samples/android/tutorial-
3-cameracontrol/src/org/opencv/samples/tutorial5/Sample3
CameraControl.java
View file @
b558bb48
package
org
.
opencv
.
samples
.
tutorial
5
;
package
org
.
opencv
.
samples
.
tutorial
3
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
...
...
@@ -28,7 +28,7 @@ import android.view.View.OnTouchListener;
import
android.view.WindowManager
;
import
android.widget.Toast
;
public
class
Sample
5
CameraControl
extends
Activity
implements
CvCameraViewListener2
,
OnTouchListener
{
public
class
Sample
3
CameraControl
extends
Activity
implements
CvCameraViewListener2
,
OnTouchListener
{
private
static
final
String
TAG
=
"OCVSample::Activity"
;
private
SampleJavaCameraView
mOpenCvCameraView
;
...
...
@@ -46,7 +46,7 @@ public class Sample5CameraControl extends Activity implements CvCameraViewListen
{
Log
.
i
(
TAG
,
"OpenCV loaded successfully"
);
mOpenCvCameraView
.
enableView
();
mOpenCvCameraView
.
setOnTouchListener
(
Sample
5
CameraControl
.
this
);
mOpenCvCameraView
.
setOnTouchListener
(
Sample
3
CameraControl
.
this
);
}
break
;
default
:
{
...
...
@@ -56,7 +56,7 @@ public class Sample5CameraControl extends Activity implements CvCameraViewListen
}
};
public
Sample
5
CameraControl
()
{
public
Sample
3
CameraControl
()
{
Log
.
i
(
TAG
,
"Instantiated new "
+
this
.
getClass
());
}
...
...
@@ -67,9 +67,9 @@ public class Sample5CameraControl extends Activity implements CvCameraViewListen
super
.
onCreate
(
savedInstanceState
);
getWindow
().
addFlags
(
WindowManager
.
LayoutParams
.
FLAG_KEEP_SCREEN_ON
);
setContentView
(
R
.
layout
.
tutorial
5
_surface_view
);
setContentView
(
R
.
layout
.
tutorial
3
_surface_view
);
mOpenCvCameraView
=
(
SampleJavaCameraView
)
findViewById
(
R
.
id
.
tutorial
5
_activity_java_surface_view
);
mOpenCvCameraView
=
(
SampleJavaCameraView
)
findViewById
(
R
.
id
.
tutorial
3
_activity_java_surface_view
);
mOpenCvCameraView
.
setVisibility
(
SurfaceView
.
VISIBLE
);
...
...
samples/android/tutorial-
5
-cameracontrol/src/org/opencv/samples/tutorial5/SampleJavaCameraView.java
→
samples/android/tutorial-
3
-cameracontrol/src/org/opencv/samples/tutorial5/SampleJavaCameraView.java
View file @
b558bb48
package
org
.
opencv
.
samples
.
tutorial
5
;
package
org
.
opencv
.
samples
.
tutorial
3
;
import
java.io.FileOutputStream
;
import
java.util.List
;
...
...
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