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.
23 lines
399 B
C++
23 lines
399 B
C++
#include "OpenCV.h"
|
|
|
|
|
|
class TrackedObject: public Nan::ObjectWrap {
|
|
public:
|
|
int channel;
|
|
cv::Mat hsv;
|
|
cv::Mat hue;
|
|
cv::Mat mask;
|
|
cv::Mat prob;
|
|
|
|
cv::Mat hist;
|
|
cv::Rect prev_rect;
|
|
|
|
static Nan::Persistent<FunctionTemplate> constructor;
|
|
static void Init(Local<Object> target);
|
|
static NAN_METHOD(New);
|
|
|
|
TrackedObject(cv::Mat image, cv::Rect rect, int channel);
|
|
|
|
JSFUNC(Track);
|
|
};
|