Using OpenCV's 'Absolute Difference' function between one frame and the next, Processing isolates only the movement it is recording.

blog.rafolio.co.uk

tutorial from createdigitalmotion.com

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…