aga.gr

If you want it, you will find a way. If not, you will find an excuse

Using a Raspberry Pi and camera module to capture and upload an image to a website

Used packages:

1. ncftp client

apt-get install ncftp

2. imagemagick package to overlay website name and time/date with a semi-transparent background

apt-get install imagemagick

Script I used:

(more…)

One Comment

To see a list of possible options for running raspivid or raspistill, you can run:

raspivid | less

raspistill | less

Use the arrow keys to scroll and type q to exit.

Still captures

By default, captures are done at the highest resolution supported by the sensor. This can be changed using the -w and -h command line options.

Capture an image in jpeg format:

raspistill -o image.jpg

Taking a default capture after 2s (note times are specified in milliseconds) on viewfinder, saving in image.jpg

raspistill -t 2000 -o image.jpg

Take a capture at a different resolution.

raspistill -t 2000 -o image.jpg -w 640 -h 480

Now reduce the quality considerably to reduce file size

raspistill -t 2000 -o image.jpg -q 5

Force the preview to appear at coordinate 100,100, with width 300 and height 200 pixels.

raspistill -t 2000 -o image.jpg -p 100,100,300,200 (more…)

2 Comments