Setting up motion is easy enough if you have some scripting skills - a lot easier than the opencv approach in the article. There are articles online using motion with raspberry pi and a USB webcam to do the sort thing described in the article (eg
http://m.instructables.com/id/Raspberry-Pi-remote-webcam/).