Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
848 B
42 lines
848 B
// This file is part of OpenCV project. |
|
// It is subject to the license terms in the LICENSE file found in the top-level directory |
|
// of this distribution and at http://opencv.org/license.html |
|
|
|
#include "common.h" |
|
|
|
#include "opencv2/opencv_modules.hpp" |
|
|
|
#ifdef HAVE_OPENCV_FEATURES2D |
|
# include "opencv2/features2d.hpp" |
|
#endif |
|
|
|
#ifdef HAVE_OPENCV_VIDEO |
|
# include "opencv2/video.hpp" |
|
#endif |
|
|
|
#ifdef HAVE_OPENCV_CONTRIB |
|
# include "opencv2/contrib.hpp" |
|
#endif |
|
|
|
extern "C" { |
|
|
|
JNIEXPORT jint JNICALL |
|
JNI_OnLoad(JavaVM* vm, void* ) |
|
{ |
|
JNIEnv* env; |
|
if (vm->GetEnv((void**) &env, JNI_VERSION_1_6) != JNI_OK) |
|
return -1; |
|
|
|
/* get class with (*env)->FindClass */ |
|
/* register methods with (*env)->RegisterNatives */ |
|
|
|
return JNI_VERSION_1_6; |
|
} |
|
|
|
JNIEXPORT void JNICALL |
|
JNI_OnUnload(JavaVM*, void*) |
|
{ |
|
//do nothing |
|
} |
|
|
|
} // extern "C"
|
|
|