Various demos using
getUserMedia() and diff-cam-engine.
Each folder contains a different demo. Visit http://diffcam.com/ to see these demos in action.
Very basic demo showing how to access the webcam.
Web app that accepts two images via drag-and-drop, then lets you diff them to see any pixels that are not the same.
Watches a live stream from the webcam, showing a real-time motion heatmap with a score indicating how much motion is present.
A "security" demo that watches a live stream from the webcam, drawing a box around any motion it sees, with accompanying audio cues. Turret can be disabled by "hitting" it on screen.
Failed attempt at time-delayed motion sensing. Spooky results. This code is terrible, do not use as-is.