Working with webcams
USB webcams are a great way to capture images and videos. Raspberry Pi supports common USB webcams.
Note
To be on the safe side, here is a list of the webcams supported by Pi: http://elinux.org/RPi_USB_Webcams.
I am using a Logitech HD c310 USB Webcam as shown in the following image:
Note
You can purchase it online, and you can find the product details and the specifications at http://www.logitech.com/en-in/product/hd-webcam-c310.
Attach your USB webcam to Raspberry Pi through the USB port on Pi and run the lsusb command in the terminal. This command lists all the USB devices connected to the computer. The output should be similar to the following output depending on which port is used to connect the USB webcam:
pi@raspberrypi ~/book/chapter04 $ lsusb Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 148f:2070 Ralink...