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/imgproc.hpp>
|
||||
#include <opencv2/videoio.hpp>
|
||||
#else
|
||||
#include <opencv/highgui.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <nan.h>
|
||||
|
||||
10
src/init.cc
10
src/init.cc
@ -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
|
||||
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user