I already put bcm2835-v4l2 in modules (sudo nano modules, bcm2835-v4l2)
Script is this:
Code: Select all
GNU nano 2.2.6 File: SnapShot.sh
#!/bin/bash
#change these parameters to fit your need
IN_LOCAL=Cerje.jpeg
OUT_REMOTE=Cerje.jpeg
USER=******
PASSWD=********
SERVERIP=**.***.***.***
#do fswebcam twice, the first is to get webcam in stable condition
fswebcam -r 1000x800 --no-banner /dev/null -F 3
sleep 2
fswebcam -r 1000x800 --no-banner $IN_LOCAL
#ok now we will transfer via ftp
/usr/bin/ftp -v -n $SERVERIP <<END_OF_SESSION
user $USER $PASSWD
cd /public_html/Webcam/
promt off
binary
put $SIN_LOCAL $OUT_REMOTE
bye
END_OF_SESSION
http://i.imgur.com/U0MzeIz.png
Now even the raspistill is not perfect ( idon't know why or what is the problem? sky is blue), but is still better image.
How can I make beter image on fswebcam or upload images with some script like this with raspistill?
Maybe some other solution? ...