mirror of
https://github.com/opencv/opencv.git
synced 2026-07-28 23:03:03 +04:00
fixed opencv_java build
This commit is contained in:
@@ -24,15 +24,9 @@ JNI_OnLoad(JavaVM* vm, void* )
|
||||
return -1;
|
||||
|
||||
bool init = true;
|
||||
#ifdef HAVE_OPENCV_FEATURES2D
|
||||
init &= cv::initModule_features2d();
|
||||
#endif
|
||||
#ifdef HAVE_OPENCV_VIDEO
|
||||
init &= cv::initModule_video();
|
||||
#endif
|
||||
#ifdef HAVE_OPENCV_CONTRIB
|
||||
init &= cv::initModule_contrib();
|
||||
#endif
|
||||
|
||||
if(!init)
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user