With the camera set up complete, we'll need to install a few libraries before we can run our scripts.

For Windows: Here are links to windows installation tutorials, or pages where you can find the windows installer.

For Ubuntu: setup can be done via this command: sudo apt-get install python python-opencv python-pyaudio python-pygame

For OSX: First install OpenCV and Homebrew - I had to additionally install eigen ( brew install eigen ) to prevent compiler errors.

Then run the following:

brew install python

brew install gcc

brew install homebrew/python/pygame

brew install portaudio

Then download the pyaudio wrapper for OSX and install that as well.

The Repo:

Now that we've got the dependencies out of the way, head over to the git repository where this project is hosted, download it, and extract the files. Open up a command window or terminal in the directory with the extracted files, and run each script with the following commands, replacing 192.168.1.19 with the IP address of your camera:

python KaicongAudio.py 192.168.1.19

This script pulls audio from the mic and plays it on your speakers.

python KaicongVideo.py 192.168.1.19

This script displays video from the camera and displays it in an OpenCV window.

python KaicongMotor.py 192.168.1.19

This script opens up a black Pygame window. Click it with the mouse so it can capture your keyboard, then use the WASD keys to pan and tilt the camera!

At this point, we've successfully hooked up the camera and can intercept audio, video, and motor control from it via programming. But how did we do this? Read on to find out...