webcam lightness sensor
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
etc
src
.eslintrc.js
.gitignore
index.html
index.js
package.json
readme.md

readme.md

cambro

cambro uses your webcam to detect changes in lightness. This data is then sent over websockets and you can do whatever you want with it. Like this:

cambro demo

Install

You're gonna need Node.js. After running npm install, run npm start and hit up http://localhost:5555 in one window and http://localhost:5555/client in another. Make sure you've given it permission to use your webcam.

Customize

There's a settings object at the top of src/cambro.js that lets you tweak things like grid size and lightness threshold. Keep in mind cambro is crunching a lot of data so the more you split the grid or increase the resolution the more it's gonna chug.