mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Now building and passing tests locally in node v0.10.40 v0.12.7 and v4.1.1. Other modules would not build at node lower than v0.10, so I stopped there.
20 lines
510 B
C++
Executable File
20 lines
510 B
C++
Executable File
#include "OpenCV.h"
|
|
|
|
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);
|
|
};
|