File: CascadeClassifierWrap.h

package info (click to toggle)
node-opencv 6.0.0+git20180416.cfc96ba0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 24,632 kB
  • sloc: xml: 476,707; cpp: 5,950; makefile: 114; sh: 59; ansic: 20
file content (27 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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