Kamis, 14 Mei 2009

All About Webcams

If you have been exploring the Web for any length of time, then you have run across any
number of Webcams in your travels. Webcams range from the silly to the serious -- a Webcam might point at a coffee pot or a space shuttle launch pad. There are business cams, personal cams, private cams, traffic cams... You name it and there's probably a Webcam pointed at it.

Have you ever considered setting up a Webcam yourself? You might want to create a funny Webcam by pointing it at your hamster or putting it inside your refrigerator. But it turns out there are lots of productive uses for Webcams, too. For example:

  • You will be out of town for a week and you want to keep an eye on your house.
  • You'd like to be able to check on the baby sitter and make sure everything is OK while you are at work.
  • You'd like to know what your dog does in the back yard all day.
  • You want to let the grandparents watch the new baby during nap time.
­ If there is something that you would like to monitor remotely, a Webcam makes it easy. In this article, we will look at the steps you can take to put up your own simple Web camera.
The Basic Idea

Photo courtesy Amazon.com
This simple USB Webcam from Creative Labs costs around $30.
Webcams, like most things, range from simple to complex. If you understand the essence of a simple Webcam setup, increasing the complexity is only a matter of adding functionality through software, custom code and/or equipment connections.

A simple Webcam setup consists of a digital camera attached to your computer, typically through the USB port. The camera part of the Webcam setup is just a digital camera -- there's really nothing special going on there. The "Webcam" nature of the camera comes with the software. Webcam software "grabs a frame" from the digital camera at a preset interval (for example, the software might grab a still image from the camera once every 30 seconds) and transfers it to another location for viewing. If you're interested in using your Webcam for streaming video, you'll want a Webcam system with a high frame rate. Frame rate indicates the number of pictures the software can grab and transfer in one second. For streaming video, you need a minimum rate of at least 15 frames per second (fps), and 30 fps is ideal. To achieve high frame rates, you need a high-speed Internet connection.

Once it captures a frame, the software broadcasts the image over your Internet connection. There are several broadcast methods. Using the most common method, the software turns that image into a JPEG file and uploads it to a Web server using File Transfer Protocol (FTP). You can easily place a JPEG image on any Web page (for information on creating Web pages and adding JPEG images, see How Web Pages Work).

If you don't have your own Web server, lots of companies offer you a free place to upload your images, saving you the trouble of having to set up and maintain a Web server or a hosted Web site.

This is the simplest possible Webcam. Let's see what you need to make it happen.

Source: http://computer.howstuffworks.com



­