Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
04a428c1
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
04a428c1
编写于
11月 27, 2010
作者:
E
Ethan Rublee
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adding color as default for CameraConfig, and updating the README.txt
上级
8acb3de2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
2 deletion
+7
-2
android/android-jni/README.txt
android/android-jni/README.txt
+4
-0
android/android-jni/sample.local.env.mk
android/android-jni/sample.local.env.mk
+1
-0
android/android-jni/src/com/opencv/camera/CameraConfig.java
android/android-jni/src/com/opencv/camera/CameraConfig.java
+2
-2
未找到文件。
android/android-jni/README.txt
浏览文件 @
04a428c1
...
@@ -34,4 +34,8 @@ code. See Calibration or CVCamera in the opencv/android/apps directory
...
@@ -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
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.
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
浏览文件 @
04a428c1
...
@@ -6,4 +6,5 @@ OPENCV_CONFIG=../build/android-opencv.mk
...
@@ -6,4 +6,5 @@ OPENCV_CONFIG=../build/android-opencv.mk
#you can download the ndk from http://www.crystax.net/android/ndk-r4.php
#you can download the ndk from http://www.crystax.net/android/ndk-r4.php
ANDROID_NDK_ROOT
=
$(HOME)
/android-ndk-r4-crystax
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
ARM_TARGETS
=
armeabi armeabi-v7a
\ No newline at end of file
android/android-jni/src/com/opencv/camera/CameraConfig.java
浏览文件 @
04a428c1
...
@@ -24,7 +24,7 @@ public class CameraConfig extends Activity {
...
@@ -24,7 +24,7 @@ public class CameraConfig extends Activity {
// Restore preferences
// Restore preferences
SharedPreferences
settings
=
ctx
.
getSharedPreferences
(
CAMERA_SETTINGS
,
SharedPreferences
settings
=
ctx
.
getSharedPreferences
(
CAMERA_SETTINGS
,
0
);
0
);
int
mode
=
settings
.
getInt
(
CAMERA_MODE
,
CAMERA_MODE_
BW
);
int
mode
=
settings
.
getInt
(
CAMERA_MODE
,
CAMERA_MODE_
COLOR
);
return
mode
;
return
mode
;
}
}
...
@@ -52,7 +52,7 @@ public class CameraConfig extends Activity {
...
@@ -52,7 +52,7 @@ public class CameraConfig extends Activity {
SharedPreferences
settings
=
ctx
.
getSharedPreferences
(
CAMERA_SETTINGS
,
SharedPreferences
settings
=
ctx
.
getSharedPreferences
(
CAMERA_SETTINGS
,
0
);
0
);
size
[
0
]
=
settings
.
getInt
(
IMAGE_WIDTH
,
600
);
size
[
0
]
=
settings
.
getInt
(
IMAGE_WIDTH
,
600
);
size
[
1
]
=
settings
.
getInt
(
IMAGE_HEIGHT
,
6
00
);
size
[
1
]
=
settings
.
getInt
(
IMAGE_HEIGHT
,
4
00
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录