fix some back compat

This commit is contained in:
Peter Braden 2015-07-24 09:46:09 +02:00
parent 1407bd47b1
commit f5366e2213
2 changed files with 7 additions and 5 deletions

View File

@ -11,6 +11,8 @@
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/videoio.hpp>
#else
#include <opencv/highgui.h>
#endif
#include <string.h>
#include <nan.h>

View File

@ -36,11 +36,11 @@ init(Handle<Object> target) {
StereoGC::Init(target);
#endif
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
BackgroundSubtractorWrap::Init(target);
Features::Init(target);
FaceRecognizerWrap::Init(target);
#endif
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
BackgroundSubtractorWrap::Init(target);
Features::Init(target);
FaceRecognizerWrap::Init(target);
#endif
};