How it's done



Raspberry Pi

The best computer $35 can buy.

The Raspberry Pi is a credit-card-sized single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools.

The Raspberry Pi has a Broadcom BCM2835 system on a chip (SoC), which includes an ARM1176JZF-S 700 MHz processor, VideoCore IV GPU, and was originally shipped with 256 megabytes of RAM, later upgraded (Model B & Model B+) to 512 MB. It does not include a built-in hard disk or solid-state drive, but it uses an SD card for booting and persistent storage, with the Model B+ using a MicroSD.

--Wikipedia

Raspberry Pi

Mjpg Streamer

Webcam

Logitech c310

An afordable high definition webcam.


M-JPEG Streamer

http://sourceforge.net/projects/mjpg-streamer

This software takes input from the webcam and produces an http stream web browsers can understand.

M-JPEG Streamer

Code

The command that brings it all together.

mjpg_streamer -i "mjpg-streamer-code-182/mjpg-streamer/input_uvc.so -f 15 -r 640x360" -o "mjpg-streamer-code-182/mjpg-streamer/output_http.so -w /usr/local/www"