Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (20 sloc) 0.729 kb
#include "OpenCV.h"
class VideoCaptureWrap: public node::ObjectWrap {
cv::VideoCapture cap;
static Persistent<FunctionTemplate> constructor;
static void Init(Handle<Object> target);
static NAN_METHOD(New);
VideoCaptureWrap(const std::string& filename);
VideoCaptureWrap(int device);
static NAN_METHOD(Read);
static NAN_METHOD(ReadSync);
//(Optional) For setting width and height of the input video stream
static NAN_METHOD(SetWidth);
static NAN_METHOD(SetHeight);
// to set frame position
static NAN_METHOD(SetPosition);
static NAN_METHOD(GetFrameAt);
//close the stream
static NAN_METHOD(Close);
Jump to Line
Something went wrong with that request. Please try again.