Motion detection in Javascript
This is a small example of detecting movement with a webcam in javascript. The core concept is comparing frames to each other and detect differences based on a predetermined sensitivity.
For more information read this blog post: benjaminhorn.io