Fixed dependency from opencv_nonfree in Java bindings
This commit is contained in:
@@ -21,4 +21,16 @@ JNI_OnUnload(JavaVM *vm, void *reserved)
|
||||
//do nothing
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
} // extern "C"
|
||||
|
||||
#include "opencv2/opencv_modules.hpp"
|
||||
|
||||
#if HAVE_OPENCV_MODULES_NONFREE
|
||||
#include "opencv2/nonfree/nonfree.hpp"
|
||||
static bool makeUseOfNonfree = initModule_nonfree();
|
||||
#endif
|
||||
|
||||
#if HAVE_OPENCV_MODULES_FEATURES2D
|
||||
#include "opencv2/features2d/features2d.hpp"
|
||||
static bool makeUseOfNonfree = initModule_features2d();
|
||||
#endif
|
Reference in New Issue
Block a user