* [[:|Wiki Home]]
* [[:cheat_sheet|Cheat Sheet]]
* [[:compiling_on_virtualbox|Precompiled virtual tools]]
* [[:carambola_where_to_start|Where to start]]
* [[:carambola_connecting|Connecting to carambola]]
* [[:carambola_using_and_customizing|Using and Customizing]]
* [[:carambola_demo_projects|Demo projects/examples]]
* [[:carambola_hardware|Hardware]]
====== Install ======
Add USB webcam support as mentioned in [[carambola_motion|motion]]
Install fswebcam
opkg update
opkg install fswebcam
Edit configuration file
vi /tmp/fswebcam.conf
add text
device /dev/video0
input 0
loop 15
skip 20
background
resolution 640x480
set brightness=60%
set contrast=13%
jpeg 95
save /tmp/viewcam.jpg
palette MJPEG
====== Run ======
In order to run and capture once type:
fswebcam --device /dev/video0 output.jpeg
If you wish to alter resolution type:
fswebcam -d /dev/video0 -r 1600x1200 output.jpeg
Save picture with todays date and time
fswebcam -d /dev/video0 -r 1600x1200 /mnt/picture-`date +%d-%m-%y-%H-%M-%S`.jpeg
In order to start deamon type:
fswebcam -c /tmp/fswebcam.conf
In order to running daemon type:
killall -9 fswebcam
====== Get image ======
You can simply get image by accessing it using [[carambola_scp|scp]]
====== Links ======
* http://www.firestorm.cx/fswebcam/
* http://wiki.firestorm.cx/index.php/Fswebcam