mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
22 lines
511 B
C++
22 lines
511 B
C++
#include "OpenCV.h"
|
|
|
|
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
|
|
|
|
#include <opencv2/video/background_segm.hpp>
|
|
|
|
class BackgroundSubtractorWrap: public node::ObjectWrap {
|
|
public:
|
|
cv::Ptr<cv::BackgroundSubtractor> subtractor;
|
|
|
|
static Persistent<FunctionTemplate> constructor;
|
|
static void Init(Handle<Object> target);
|
|
static NAN_METHOD(New);
|
|
|
|
BackgroundSubtractorWrap(cv::Ptr<cv::BackgroundSubtractor> bg);
|
|
|
|
static NAN_METHOD(CreateMOG);
|
|
static NAN_METHOD(ApplyMOG);
|
|
};
|
|
|
|
#endif
|