Webcam Interface On Raspberry Pi
Raspberry PI persists in its pride stage due to its relevance in performing image processing applications. Real time image processing schemes can be developed using a Raspberry Pi, as it supports the webcam interface, and there by we can process the algorithms for detection, recognition, segmentation, surveillance etc.
Hardware Modules:
- Raspberry Pi
- USB Webcam
Additional Software Packages:
fswebcam
package
The webcam should be connected to the USB port of the Raspberry Pi. after connecting open the LX Terminal and type inlsusb.
If
the camera is detected then a message will be displayed, as shown in the image
above (marked in red). Now install fswebcamto start using the camera. To install the fswebcam software package, type in as follows:
sudo apt-get install fswebcam
After
the installation enter the command fswebcam followed with a desired file name
for saving the image.
fswebcam testimage.jpg
For selecting a proper resolution follow the commands given below:
fswebcam -r 640x480
testimage.jpg
The camera will capture the snapshot and it will be saved in the
main folder using the preferred name.
Interfacing RaspBerry Pi
Comments
Post a Comment