2.0.1 • Published 6 years ago

directcam v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

directcam

A small library to access DirectShow compatible cameras through NodeJS

Basic Usage:

const dcam = require("directcam");
const fs = require("fs");

dcam.cameras(null, function(err, cams){
    console.table(cams);
    console.log("hello!");
    dcam.grab(cams.Moniker, function(err, img){
        fs.writeFileSync("img.jpg", img);
    });
});

Functions

  • All callback functions need to be in function(err, result){} format

directcam.cameras(args, callback) Camera

returns an array of camera objects in the system to the callback function

Camera Object:

{
    index: Number,
    Name: string,
    Moniker: string (device reference)
}

directcam.grab(moniker, callback) frame

returns an image frame to the callback function

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago