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.
28 lines
617 B
C++
Executable File
28 lines
617 B
C++
Executable File
#include "OpenCV.h"
|
|
|
|
#ifdef HAVE_OPENCV_OBJDETECT
|
|
|
|
#if CV_MAJOR_VERSION >= 3
|
|
#include <opencv2/objdetect.hpp>
|
|
#endif
|
|
|
|
class CascadeClassifierWrap: public Nan::ObjectWrap {
|
|
public:
|
|
cv::CascadeClassifier cc;
|
|
|
|
static Nan::Persistent<FunctionTemplate> constructor;
|
|
static void Init(Local<Object> target);
|
|
static NAN_METHOD(New);
|
|
|
|
CascadeClassifierWrap(v8::Value* fileName);
|
|
|
|
//static Handle<Value> LoadHaarClassifierCascade(const v8::Arguments&);
|
|
|
|
static NAN_METHOD(DetectMultiScale);
|
|
|
|
static void EIO_DetectMultiScale(uv_work_t *req);
|
|
static int EIO_AfterDetectMultiScale(uv_work_t *req);
|
|
};
|
|
|
|
#endif
|