move backgroundsubtrator::init out if HAVE_OPENCV_VIDEO and into new HAVE_BACKGROUNDSUBTRACTOR

This commit is contained in:
Simon Hailes 2017-11-11 14:00:19 +00:00
parent 1085b662e0
commit cdb8d7ff9b

View File

@ -50,16 +50,17 @@ extern "C" void init(Local<Object> target) {
StereoBM::Init(target);
StereoSGBM::Init(target);
StereoGC::Init(target);
#if CV_MAJOR_VERSION == 2 && CV_MINOR_VERSION >=4
#ifdef HAVE_OPENCV_VIDEO
BackgroundSubtractorWrap::Init(target);
#endif
#ifdef HAVE_OPENCV_FEATURES2D
Features::Init(target);
#endif
LDAWrap::Init(target);
#endif
#endif
#ifdef HAVE_BACKGROUNDSUBTRACTOR
BackgroundSubtractorWrap::Init(target);
#endif
#ifdef HAVE_OPENCV_FACE
FaceRecognizerWrap::Init(target);
#endif