David Pride has taken his Panasonic Lumix DSLR camera and a Raspberry Pi and created a little bit of magic. He’s adapted (read: taken apart and hacked with a soldering iron!) a quick release mechanism for the DSLR and wired it up to the Pi via an NPN transistor which gives him the ability to electronically trigger the taking of a picture.
Some adaptation of OpenCV code ensured that he triggered a shot on movement and then he set it up and let it rip. The sample shots (of which the one above is an example) can be seen, alongside his blog post, here.