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
f45b5b13
Commit
f45b5b13
authored
Nov 23, 2012
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Nov 23, 2012
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #172 from asmorkalov:default_cam_lib_path
parents
081887ee
3282e08f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
EngineCommon.h
android/service/engine/jni/include/EngineCommon.h
+7
-0
IOpenCVEngine.h
android/service/engine/jni/include/IOpenCVEngine.h
+1
-5
CMakeLists.txt
modules/androidcamera/CMakeLists.txt
+1
-1
camera_activity.cpp
modules/androidcamera/src/camera_activity.cpp
+6
-4
No files found.
android/service/engine/jni/include/EngineCommon.h
View file @
f45b5b13
...
...
@@ -5,10 +5,16 @@
#undef LOG_TAG
#define LOG_TAG "OpenCVEngine"
// OpenCV Engine API version
#ifndef OPEN_CV_ENGINE_VERSION
#define OPEN_CV_ENGINE_VERSION 2
#endif
#define LIB_OPENCV_INFO_NAME "libopencv_info.so"
// OpenCV Manager package name
#define OPENCV_ENGINE_PACKAGE "org.opencv.engine"
// Class name of OpenCV engine binder object. Is needned for connection to service
#define OPECV_ENGINE_CLASSNAME "org.opencv.engine.OpenCVEngineInterface"
#endif
\ No newline at end of file
android/service/engine/jni/include/IOpenCVEngine.h
View file @
f45b5b13
...
...
@@ -4,11 +4,7 @@
#include <binder/IInterface.h>
#include <binder/Parcel.h>
#include <utils/String16.h>
// OpenCV Manager package name
#define OPENCV_ENGINE_PACKAGE "org.opencv.engine"
// Class name of OpenCV engine binder object. Is needned for connection to service
#define OPECV_ENGINE_CLASSNAME "org.opencv.engine.OpenCVEngineInterface"
#include "EngineCommon.h"
enum
EngineMethonID
{
...
...
modules/androidcamera/CMakeLists.txt
View file @
f45b5b13
...
...
@@ -6,7 +6,7 @@ set(the_description "Auxiliary module for Android native camera support")
set
(
OPENCV_MODULE_TYPE STATIC
)
ocv_define_module
(
androidcamera INTERNAL opencv_core log dl
)
ocv_include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/camera_wrapper"
)
ocv_include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/camera_wrapper"
"
${
OpenCV_SOURCE_DIR
}
/android/service/engine/jni/include"
)
# Android source tree for native camera
SET
(
ANDROID_SOURCE_TREE
"ANDROID_SOURCE_TREE-NOTFOUND"
CACHE PATH
...
...
modules/androidcamera/src/camera_activity.cpp
View file @
f45b5b13
...
...
@@ -9,6 +9,7 @@
#include <opencv2/core/version.hpp>
#include "camera_activity.hpp"
#include "camera_wrapper.h"
#include "EngineCommon.h"
#undef LOG_TAG
#undef LOGE
...
...
@@ -267,12 +268,13 @@ void CameraWrapperConnector::fillListWrapperLibs(const string& folderPath, vecto
std
::
string
CameraWrapperConnector
::
getDefaultPathLibFolder
()
{
const
string
packageList
[]
=
{
"tegra3"
,
"armv7a_neon"
,
"armv7a"
,
"armv5"
,
"x86"
};
for
(
size_t
i
=
0
;
i
<
5
;
i
++
)
#define BIN_PACKAGE_NAME(x) "org.opencv.lib_v" CVAUX_STR(CV_MAJOR_VERSION) CVAUX_STR(CV_MINOR_VERSION) "_" x
const
char
*
const
packageList
[]
=
{
BIN_PACKAGE_NAME
(
"armv7a"
),
OPENCV_ENGINE_PACKAGE
};
for
(
size_t
i
=
0
;
i
<
sizeof
(
packageList
)
/
sizeof
(
packageList
[
0
]);
i
++
)
{
char
path
[
128
];
sprintf
(
path
,
"/data/data/
org.opencv.lib_v%d%d_%s/lib/"
,
CV_MAJOR_VERSION
,
CV_MINOR_VERSION
,
packageList
[
i
].
c_str
()
);
LOGD
(
"Trying package
\"
%s
\"
(
\"
%s
\"
)"
,
packageList
[
i
]
.
c_str
()
,
path
);
sprintf
(
path
,
"/data/data/
%s/lib/"
,
packageList
[
i
]
);
LOGD
(
"Trying package
\"
%s
\"
(
\"
%s
\"
)"
,
packageList
[
i
],
path
);
DIR
*
dir
=
opendir
(
path
);
if
(
!
dir
)
...
...
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