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
04a428c1
Commit
04a428c1
authored
Nov 27, 2010
by
Ethan Rublee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding color as default for CameraConfig, and updating the README.txt
parent
8acb3de2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
README.txt
android/android-jni/README.txt
+4
-0
sample.local.env.mk
android/android-jni/sample.local.env.mk
+2
-0
CameraConfig.java
android/android-jni/src/com/opencv/camera/CameraConfig.java
+2
-2
No files found.
android/android-jni/README.txt
View file @
04a428c1
...
...
@@ -34,4 +34,8 @@ 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 ;)
android/android-jni/sample.local.env.mk
View file @
04a428c1
...
...
@@ -6,4 +6,5 @@ OPENCV_CONFIG=../build/android-opencv.mk
#you can download the ndk from http://www.crystax.net/android/ndk-r4.php
ANDROID_NDK_ROOT=$(HOME)/android-ndk-r4-crystax
#define only armeabi-v7a to make the final apk smaller or armeabi
ARM_TARGETS=armeabi armeabi-v7a
\ No newline at end of file
android/android-jni/src/com/opencv/camera/CameraConfig.java
View file @
04a428c1
...
...
@@ -24,7 +24,7 @@ public class CameraConfig extends Activity {
// Restore preferences
SharedPreferences
settings
=
ctx
.
getSharedPreferences
(
CAMERA_SETTINGS
,
0
);
int
mode
=
settings
.
getInt
(
CAMERA_MODE
,
CAMERA_MODE_
BW
);
int
mode
=
settings
.
getInt
(
CAMERA_MODE
,
CAMERA_MODE_
COLOR
);
return
mode
;
}
...
...
@@ -52,7 +52,7 @@ public class CameraConfig extends Activity {
SharedPreferences
settings
=
ctx
.
getSharedPreferences
(
CAMERA_SETTINGS
,
0
);
size
[
0
]
=
settings
.
getInt
(
IMAGE_WIDTH
,
600
);
size
[
1
]
=
settings
.
getInt
(
IMAGE_HEIGHT
,
6
00
);
size
[
1
]
=
settings
.
getInt
(
IMAGE_HEIGHT
,
4
00
);
}
...
...
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