mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
32 lines
629 B
C++
32 lines
629 B
C++
#include "OpenCV.h"
|
|
|
|
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
|
|
|
|
#include "opencv2/contrib/contrib.hpp"
|
|
|
|
class FaceRecognizerWrap: public node::ObjectWrap {
|
|
public:
|
|
cv::Ptr<cv::FaceRecognizer> rec;
|
|
|
|
static Persistent<FunctionTemplate> constructor;
|
|
static void Init(Handle<Object> target);
|
|
static Handle<Value> New(const Arguments &args);
|
|
|
|
FaceRecognizerWrap(cv::Ptr<cv::FaceRecognizer> f);
|
|
|
|
JSFUNC(Train)
|
|
JSFUNC(Update)
|
|
|
|
JSFUNC(PredictSync)
|
|
//static void EIO_Predict(eio_req *req);
|
|
//static int EIO_AfterPredict(eio_req *req);
|
|
|
|
|
|
// TODO Save
|
|
// TODO Load
|
|
};
|
|
|
|
|
|
|
|
#endif
|