Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
b5e009eb
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
b5e009eb
编写于
11月 13, 2012
作者:
A
Andrey Kamaev
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #144 from asmorkalov/fd_package_fix_2.4
上级
64847325
91a9923d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
28 addition
and
28 deletion
+28
-28
samples/android/face-detection/AndroidManifest.xml
samples/android/face-detection/AndroidManifest.xml
+1
-1
samples/android/face-detection/jni/DetectionBasedTracker_jni.cpp
.../android/face-detection/jni/DetectionBasedTracker_jni.cpp
+18
-18
samples/android/face-detection/jni/DetectionBasedTracker_jni.h
...es/android/face-detection/jni/DetectionBasedTracker_jni.h
+6
-6
samples/android/face-detection/src/org/opencv/samples/facedetect/DetectionBasedTracker.java
.../org/opencv/samples/facedetect/DetectionBasedTracker.java
+1
-1
samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java
...tection/src/org/opencv/samples/facedetect/FdActivity.java
+1
-1
samples/android/face-detection/src/org/opencv/samples/facedetect/FpsMeter.java
...detection/src/org/opencv/samples/facedetect/FpsMeter.java
+1
-1
未找到文件。
samples/android/face-detection/AndroidManifest.xml
浏览文件 @
b5e009eb
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.opencv.samples.f
d
"
package=
"org.opencv.samples.f
acedetect
"
android:versionCode=
"21"
android:versionName=
"2.1"
>
...
...
samples/android/face-detection/jni/DetectionBasedTracker_jni.cpp
浏览文件 @
b5e009eb
...
...
@@ -18,10 +18,10 @@ inline void vector_Rect_to_Mat(vector<Rect>& v_rect, Mat& mat)
mat
=
Mat
(
v_rect
,
true
);
}
JNIEXPORT
jlong
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeCreateObject
JNIEXPORT
jlong
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeCreateObject
(
JNIEnv
*
jenv
,
jclass
,
jstring
jFileName
,
jint
faceSize
)
{
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeCreateObject enter"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeCreateObject enter"
);
const
char
*
jnamestr
=
jenv
->
GetStringUTFChars
(
jFileName
,
NULL
);
string
stdFileName
(
jnamestr
);
jlong
result
=
0
;
...
...
@@ -49,14 +49,14 @@ JNIEXPORT jlong JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeC
return
0
;
}
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeCreateObject exit"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeCreateObject exit"
);
return
result
;
}
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeDestroyObject
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeDestroyObject
(
JNIEnv
*
jenv
,
jclass
,
jlong
thiz
)
{
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeDestroyObject enter"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeDestroyObject enter"
);
try
{
if
(
thiz
!=
0
)
...
...
@@ -79,13 +79,13 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeDe
jclass
je
=
jenv
->
FindClass
(
"java/lang/Exception"
);
jenv
->
ThrowNew
(
je
,
"Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"
);
}
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeDestroyObject exit"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeDestroyObject exit"
);
}
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeStart
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeStart
(
JNIEnv
*
jenv
,
jclass
,
jlong
thiz
)
{
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeStart enter"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeStart enter"
);
try
{
((
DetectionBasedTracker
*
)
thiz
)
->
run
();
...
...
@@ -104,13 +104,13 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeSt
jclass
je
=
jenv
->
FindClass
(
"java/lang/Exception"
);
jenv
->
ThrowNew
(
je
,
"Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"
);
}
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeStart exit"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeStart exit"
);
}
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeStop
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeStop
(
JNIEnv
*
jenv
,
jclass
,
jlong
thiz
)
{
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeStop enter"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeStop enter"
);
try
{
((
DetectionBasedTracker
*
)
thiz
)
->
stop
();
...
...
@@ -129,13 +129,13 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeSt
jclass
je
=
jenv
->
FindClass
(
"java/lang/Exception"
);
jenv
->
ThrowNew
(
je
,
"Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"
);
}
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeStop exit"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeStop exit"
);
}
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeSetFaceSize
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeSetFaceSize
(
JNIEnv
*
jenv
,
jclass
,
jlong
thiz
,
jint
faceSize
)
{
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeSetFaceSize enter"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeSetFaceSize enter"
);
try
{
if
(
faceSize
>
0
)
...
...
@@ -160,14 +160,14 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeSe
jclass
je
=
jenv
->
FindClass
(
"java/lang/Exception"
);
jenv
->
ThrowNew
(
je
,
"Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"
);
}
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeSetFaceSize exit"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeSetFaceSize exit"
);
}
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeDetect
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeDetect
(
JNIEnv
*
jenv
,
jclass
,
jlong
thiz
,
jlong
imageGray
,
jlong
faces
)
{
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeDetect enter"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeDetect enter"
);
try
{
vector
<
Rect
>
RectFaces
;
...
...
@@ -189,5 +189,5 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeDe
jclass
je
=
jenv
->
FindClass
(
"java/lang/Exception"
);
jenv
->
ThrowNew
(
je
,
"Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"
);
}
LOGD
(
"Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeDetect exit"
);
LOGD
(
"Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeDetect exit"
);
}
\ No newline at end of file
samples/android/face-detection/jni/DetectionBasedTracker_jni.h
浏览文件 @
b5e009eb
...
...
@@ -12,7 +12,7 @@ extern "C" {
* Method: nativeCreateObject
* Signature: (Ljava/lang/String;F)J
*/
JNIEXPORT
jlong
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeCreateObject
JNIEXPORT
jlong
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeCreateObject
(
JNIEnv
*
,
jclass
,
jstring
,
jint
);
/*
...
...
@@ -20,7 +20,7 @@ JNIEXPORT jlong JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeC
* Method: nativeDestroyObject
* Signature: (J)V
*/
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeDestroyObject
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeDestroyObject
(
JNIEnv
*
,
jclass
,
jlong
);
/*
...
...
@@ -28,7 +28,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeDe
* Method: nativeStart
* Signature: (J)V
*/
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeStart
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeStart
(
JNIEnv
*
,
jclass
,
jlong
);
/*
...
...
@@ -36,7 +36,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeSt
* Method: nativeStop
* Signature: (J)V
*/
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeStop
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeStop
(
JNIEnv
*
,
jclass
,
jlong
);
/*
...
...
@@ -44,7 +44,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeSt
* Method: nativeSetFaceSize
* Signature: (JI)V
*/
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeSetFaceSize
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeSetFaceSize
(
JNIEnv
*
,
jclass
,
jlong
,
jint
);
/*
...
...
@@ -52,7 +52,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_fd_DetectionBasedTracker_nativeSt
* Method: nativeDetect
* Signature: (JJJ)V
*/
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
d
_DetectionBasedTracker_nativeDetect
JNIEXPORT
void
JNICALL
Java_org_opencv_samples_f
acedetect
_DetectionBasedTracker_nativeDetect
(
JNIEnv
*
,
jclass
,
jlong
,
jlong
,
jlong
);
#ifdef __cplusplus
...
...
samples/android/face-detection/src/org/opencv/samples/f
d
/DetectionBasedTracker.java
→
samples/android/face-detection/src/org/opencv/samples/f
acedetect
/DetectionBasedTracker.java
浏览文件 @
b5e009eb
package
org.opencv.samples.f
d
;
package
org.opencv.samples.f
acedetect
;
import
org.opencv.core.Mat
;
import
org.opencv.core.MatOfRect
;
...
...
samples/android/face-detection/src/org/opencv/samples/f
d
/FdActivity.java
→
samples/android/face-detection/src/org/opencv/samples/f
acedetect
/FdActivity.java
浏览文件 @
b5e009eb
package
org.opencv.samples.f
d
;
package
org.opencv.samples.f
acedetect
;
import
java.io.File
;
import
java.io.FileOutputStream
;
...
...
samples/android/face-detection/src/org/opencv/samples/f
d
/FpsMeter.java
→
samples/android/face-detection/src/org/opencv/samples/f
acedetect
/FpsMeter.java
浏览文件 @
b5e009eb
package
org.opencv.samples.f
d
;
package
org.opencv.samples.f
acedetect
;
import
java.text.DecimalFormat
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录