Say Cheese!

Minimal javascript library for integrating a webcam and snapshots into your app.

Taking pictures

Say Cheese exposes a simple, event-based API for taking snapshots from your webcam:

$(function() {
  var sayCheese = new SayCheese('#container-element', { audio: true });
  sayCheese.on('start', function() {
    this.takeSnapshot();
  });

  sayCheese.on('snapshot', function(snapshot) {
    // a snapshot has been taken, do something with it :)
  });

  sayCheese.start();
});

Compatibility

Works for the following browsers:

  • Google Chrome
  • Opera
  • Firefox

Source and documentation

You can nab the source and see some slightly more detailed documentation at the GitHub repo. Feel free to file any issues or patches or whatever.