Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

camera-vc0706

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camera-vc0706

Library to run the camera-vc0706 Tessel module

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
3
Weekly downloads
 
Created
Source

#Camera Driver for the camera-vc0706 Tessel camera module (VC0706).

##Installation

npm install camera-vc0706

##Methods


// Take a still picture. Returns raw buffer data which you can pipe into a raw http stream or save in memory
camera.takePicture( function(err, picture) {...} );

// Set the size of images.
// Options are vga' (640x320), 'qvga'(320x240) or 'qqvga' (160x120). Default is 'vga'.
// Note that the resolution is saved in Flash and will be persisted between power cycles
camera.setResolution( resolution, function(err) {...} );

// Determine the amount of compression on each image. 
// Should be a number between 0 and 255. Default is 0x35. 
// Note that the compression is saved in Flash and will be persisted between power cycles
camera.setCompression(compressionFactor, function(err) {...} );

Events

// The camera is ready to receive commands
camera.on('ready', function() {...} );

// The camera was unable to initialize
camera.on('error', function(err) {...} );

// A photo was taken
camera.on('picture', function(picture) {...} );

// A resolution value was set
camera.on('resolution', function(resolution) {...} );

// A compression value was set
camera.on('compression', function(compression) {...} );

License

MIT

Keywords

FAQs

Package last updated on 24 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc