What do my pets do when no one is around? I decided to find out. This talk covers how (and then some).
A webcam and some JavaScript using WebRTC is enough to take snapshots, but the trick is finding the snapshots worth saving. I'll share how to write an image diffing algorithm that creates a visual motion heatmap, which can be used to programmatically recognize when a snapshot has caught something happening. The interesting snapshots are then uploaded to Twitter for remote viewing.
This talk is also available in article form here: http://codersblock.com/blog/motion-detection-with-javascript/.
Demos (and links to source code repos) are here: http://diffcam.com/.