I'd like to record multiple images (e.g. 50) with the Raspberry Pi HQ Camera module. These images are recorded with the simple command line raspistill -ss 125 -ISO 400 -fli auto -o test.png -e png
. Since I have to record .png files, the image dimensions are 3040x4056.
If I run a simple bash script, which contains 50 of those command lines, it seems like there is a very long "processing time" between the images.
So is there a way to record 50 of those images one after another without any delay (or at least very short delay)?
I doubt you can do this with
raspistill
on the command line - especially with trying to write PNG images fast. I think you'll need to move to Python along the following lines - adapted from here. Note that the images are acquired in the RAM so there is no disk I/O during the acquisition phase.Save the following as
acquire.py
:Then make it executable with:
And run with:
If you want to write the image list to disk as PNG, you can use something like this (untested) with PIL added to the end of the above code: