mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
fix some back compat
This commit is contained in:
parent
1407bd47b1
commit
f5366e2213
@ -11,6 +11,8 @@
|
|||||||
#include <opencv2/highgui.hpp>
|
#include <opencv2/highgui.hpp>
|
||||||
#include <opencv2/imgproc.hpp>
|
#include <opencv2/imgproc.hpp>
|
||||||
#include <opencv2/videoio.hpp>
|
#include <opencv2/videoio.hpp>
|
||||||
|
#else
|
||||||
|
#include <opencv/highgui.h>
|
||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <nan.h>
|
#include <nan.h>
|
||||||
|
|||||||
10
src/init.cc
10
src/init.cc
@ -36,11 +36,11 @@ init(Handle<Object> target) {
|
|||||||
StereoGC::Init(target);
|
StereoGC::Init(target);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
|
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
|
||||||
BackgroundSubtractorWrap::Init(target);
|
BackgroundSubtractorWrap::Init(target);
|
||||||
Features::Init(target);
|
Features::Init(target);
|
||||||
FaceRecognizerWrap::Init(target);
|
FaceRecognizerWrap::Init(target);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user