Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture interface via Camera class #16

Open
jywarren opened this issue Apr 18, 2016 · 1 comment
Open

Capture interface via Camera class #16

jywarren opened this issue Apr 18, 2016 · 1 comment

Comments

@jywarren
Copy link
Member

Feature request

Webcam capture is currently implemented only in the parent SpectralWorkbench project, and needs porting into this library.

See specficially: https://github.com/publiclab/spectral-workbench/blob/master/app/assets/javascripts/capture.js

The interface could be:

var camera = new SpectralWorkbench.Camera();

// Spectrum would need to detect images in the constructor 
var spectrum = new SpectralWorkbench.Spectrum(camera.fetchImage({
  resolution: '800x600', // default; optional
}));

Also see the new getUserMedia camera selection API in publiclab/spectral-workbench#353

@jywarren
Copy link
Member Author

I've broken out an initial step for this in #56 -- to simply port over the existing capture.js file from spectral-workbench, and hook it up. Later, we can do tighter integration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant