Skip to content

wrap linux tool fswebcam to manipulate cameras

Notifications You must be signed in to change notification settings

sigoden/fswebcam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manupulate uvc cameras on linux (mounted on /dev/video*), powerd by fswebcam.

Install

Linux

#Linux relies on fswebcam currently
#Tested on ubuntu

sudo apt-get install fswebcam

Usage

API Usage

//Available in nodejs
var Camera = require( "@sigodenjs/fswebcam" );

//Return type with base 64 image
var opts = {
    callbackReturn: "base64"
};
Camera.capture( "test_picture", opts, function(err, data) {
    var image = "<img src='" + data + "'>";
});


//Get list of cameras
Camera.listDevices( function(err, devices) {
    var anotherCam = new Camera({ device: devices[0] });
});

//Creates webcam instance
var camera = new Camera(opts);

//Will automatically append location output type
camera.capture( "test_picture", function(err, data) {});

About

wrap linux tool fswebcam to manipulate cameras

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published