Working of a Webcam
A simple webcam comprises a digital camera attached to a computer. These cameras are easy to connect through a USB port. A piece of software grabs frames from the camera. For example, the software might grab a still image from the camera once every 30 seconds. The software then turns that image into a normal JPG file and uploads it to a Web server. This image can be placed on any Web page. Several companies offer free space to upload images. This is the simplest possible webcam. Putting a JPG image into a web page is straightforward, but it has the disadvantage that readers must refresh the image.