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
620d122f
Commit
620d122f
authored
Jul 05, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contrib module is added to java wrappers; fixed algorithm initialisation for python bindings
parent
b1eba01a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
5 deletions
+51
-5
CMakeLists.txt
modules/java/CMakeLists.txt
+1
-1
jni_part.cpp
modules/java/generator/src/cpp/jni_part.cpp
+7
-0
cv2.cpp
modules/python/src2/cv2.cpp
+2
-3
cv2.cv.hpp
modules/python/src2/cv2.cv.hpp
+41
-0
CMakeLists.txt
samples/android/face-detection/CMakeLists.txt
+0
-1
No files found.
modules/java/CMakeLists.txt
View file @
620d122f
...
...
@@ -6,7 +6,7 @@ if(NOT ANDROID OR NOT PYTHON_EXECUTABLE OR ANDROID_NATIVE_API_LEVEL LESS 8)
endif
()
set
(
the_description
"The java bindings"
)
ocv_add_module
(
java BINDINGS opencv_core opencv_imgproc OPTIONAL opencv_objdetect opencv_features2d opencv_video opencv_highgui opencv_ml opencv_calib3d opencv_photo opencv_nonfree
)
ocv_add_module
(
java BINDINGS opencv_core opencv_imgproc OPTIONAL opencv_objdetect opencv_features2d opencv_video opencv_highgui opencv_ml opencv_calib3d opencv_photo opencv_nonfree
opencv_contrib
)
ocv_module_include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/generator/src/cpp"
)
# get list of modules to wrap
...
...
modules/java/generator/src/cpp/jni_part.cpp
View file @
620d122f
...
...
@@ -18,6 +18,10 @@
# include "opencv2/ml/ml.hpp"
#endif
#ifdef HAVE_OPENCV_CONTRIB
# include "opencv2/contrib/contrib.hpp"
#endif
extern
"C"
{
JNIEXPORT
jint
JNICALL
...
...
@@ -40,6 +44,9 @@ JNI_OnLoad(JavaVM* vm, void* )
#ifdef HAVE_OPENCV_ML
init
&=
cv
::
initModule_ml
();
#endif
#ifdef HAVE_OPENCV_CONTRIB
init
&=
cv
::
initModule_contrib
();
#endif
if
(
!
init
)
return
-
1
;
...
...
modules/python/src2/cv2.cpp
View file @
620d122f
...
...
@@ -22,12 +22,11 @@
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_NONFREE
#include "opencv2/nonfree/nonfree.hpp"
static
bool
makeUseOfNonfree
=
cv
::
initModule_nonfree
();
# include "opencv2/nonfree/nonfree.hpp"
#endif
using
cv
::
flann
::
IndexParams
;
using
cv
::
flann
::
SearchParams
;
...
...
modules/python/src2/cv2.cv.hpp
View file @
620d122f
...
...
@@ -3878,11 +3878,52 @@ static PyMethodDef old_methods[] = {
/************************************************************************/
/* Module init */
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_NONFREE
# include "opencv2/nonfree/nonfree.hpp"
#endif
#ifdef HAVE_OPENCV_FEATURES2D
# include "opencv2/features2d/features2d.hpp"
#endif
#ifdef HAVE_OPENCV_VIDEO
# include "opencv2/video/video.hpp"
#endif
#ifdef HAVE_OPENCV_ML
# include "opencv2/ml/ml.hpp"
#endif
#ifdef HAVE_OPENCV_CONTRIB
# include "opencv2/contrib/contrib.hpp"
#endif
static
PyObject
*
init_cv
()
{
PyObject
*
m
,
*
d
;
cvSetErrMode
(
CV_ErrModeParent
);
bool
init
=
true
;
#ifdef HAVE_OPENCV_NONFREE
init
&=
cv
::
initModule_nonfree
();
#endif
#ifdef HAVE_OPENCV_FEATURES2D
init
&=
cv
::
initModule_features2d
();
#endif
#ifdef HAVE_OPENCV_VIDEO
init
&=
cv
::
initModule_video
();
#endif
#ifdef HAVE_OPENCV_ML
init
&=
cv
::
initModule_ml
();
#endif
#ifdef HAVE_OPENCV_CONTRIB
init
&=
cv
::
initModule_contrib
();
#endif
if
(
!
init
)
return
0
;
#define MKTYPE(NAME) NAME##_specials(); to_ok(&NAME##_Type)
MKTYPE
(
cvcontourtree
);
...
...
samples/android/face-detection/CMakeLists.txt
View file @
620d122f
...
...
@@ -2,7 +2,6 @@ set(sample example-face-detection)
if
(
BUILD_FAT_JAVA_LIB
)
set
(
native_deps opencv_java
)
ocv_include_modules
(
opencv_contrib
)
else
()
set
(
native_deps opencv_contrib
)
endif
()
...
...
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