mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
With OpenCV >3.1 and 2.4.13, OpenCV can now be installed without specific modules. This makes it so that `node-opencv` will still be able to compile.
21 lines
388 B
C++
21 lines
388 B
C++
#include "OpenCV.h"
|
|
|
|
#if ((CV_MAJOR_VERSION == 2) && (CV_MINOR_VERSION >=4))
|
|
|
|
#ifdef HAVE_OPENCV_FEATURES2D
|
|
|
|
#include <opencv2/core/core.hpp>
|
|
#include <opencv2/features2d/features2d.hpp>
|
|
|
|
class Features: public Nan::ObjectWrap {
|
|
public:
|
|
static Nan::Persistent<FunctionTemplate> constructor;
|
|
static void Init(Local<Object> target);
|
|
|
|
static NAN_METHOD(Similarity);
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif
|