Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sigoden/fswebcam
wrap linux tool fswebcam to manipulate cameras
https://github.com/sigoden/fswebcam
fswebcam uvccamera webcam
Last synced: 1 day ago
JSON representation
wrap linux tool fswebcam to manipulate cameras
- Host: GitHub
- URL: https://github.com/sigoden/fswebcam
- Owner: sigoden
- Created: 2018-06-03T16:00:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T09:51:39.000Z (over 6 years ago)
- Last Synced: 2024-11-12T07:40:52.736Z (about 1 month ago)
- Topics: fswebcam, uvccamera, webcam
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [fswebcam](https://github.com/sigoden/fswebcamera)
Manupulate uvc cameras on linux (mounted on /dev/video*), powerd by [fswebcam](https://github.com/fsphil/fswebcam).
# Install
### Linux
```
#Linux relies on fswebcam currently
#Tested on ubuntusudo apt-get install fswebcam
```# Usage
### API Usage
``` javascript
//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 = "";
});//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) {});
```