1.0.0 • Published 9 years ago
watcher.js v1.0.0
Watcher.js
A javascript motion detector/security camera
Live example
martijnwelker.github.io/Watcher.js/
Usage
var watcher = new Watcher('<container>', {<options>});
watcher.startCapture();
watcher.takeSnapshot(); // optional
watcher.watch();
watcher.stop(); // optional
watcher.showDetection();
Options
containerClass: Class for the main container
videoContainerClass: Class for the video + detection layer container
videoClass: Class for the video element
detectClass: Class for the detection overlayer
detectionContainerClass: Class for the detections
detectionClass: Class for a detection img
blurAmount: amount to blur before comparing, increasing reduces noise
compareTo: "lastFrame" (default) || "snapshot" // compare to static image or last frame, snapshot requires you to run .takeSnapshot()
Browser support
http://caniuse.com/#feat=stream
1.0.0
9 years ago