Here is a link to some Python Raspberry Pi Scripts I made that allow you to take images, videos, and timelapses. The scripts are easier to use than the command line because it automatically numbers the videos/pictures. It also has space for you to make desired camera settings changes. Currently the timelapse script takes a bunch of pictures and saves them individually, but I plan on making a version that threads them together into a video.
The first two scripts require OpenCV to be installed on the Raspberry Pi (RPi). While OpenCV is a large library that takes a while to install, the capabilities of it outweighs this hassle. It may seem slightly overkill just for taking pictures and videos on the RPi, it seemed the only way to get user keypress input. It also enables many other functions like the tracking of molecular organisms.
Here are the functions of the scripts in this repo:
- python script to record videos and/or take pictures with the Raspberry Pi Foldscope
- can customize the filetype and filename for the pictures/videos
- can save multiple pictures/videos with the same basic filename e.g. video_1.avi, video_2.avi etc.
- python script to play back a previously recorded video
- can navigate frame-by-frame forward and backward
- can save multiple pictures of the frames of the video
- python script for taking timelapse pictures
- take pictures for set intervals of time with indexed name
- DOES NOT require OpenCV
I’m glad I finally got around to posting this. It’s been a while since I last got to use these, so there may be issues. I also plan on making a little tutorial on how to install OpenCV for anyone who may have trouble. Hopefully this will be helpful. Good luck!