Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 28 lines (18 sloc) 617 Bytes
#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