Published February 22, 2021 | Version v1.0
Software Open

frans-jan/stable-cam v1.0

  • 1. University of Oslo, Norway

Description

Background

These scripts should be of interest to ecologists and geoscientists that operate timelapse-cameras/phenocams, and want to achieve a consistent and stable dataset of photos, for example to calculate RGB-derived vegetation indices such as Green Chromatic Channel (GCC) and Green-Red Vegetation Index (GRVI) for fixed areas of interest. 

This code was used to remove unwanted camera movement that led to misaligned photos taken by phenocams and landscape cameras in Adventdalen, Svalbard. The corrected images are publicly available at https://doi.org/10.21343/kbpq-xb91. This repository holds two python scripts, stabilise_racks.py and stabilise_mountain.py.

  • Stabilise_racks.py can be used to adjust for the lateral and rotational movement of time-lapse cameras that are pointed directly down to vegetation (i.e. in a nadir orientation) and typically from a height of a couple of meters.
  • Stabilise_mountain.py can be used to adjust for the lateral movement of time-lapse cameras overseeing several square kilometers of a valley – for example when the camera is placed on a mountain ridge with an oblique viewing angle.

Further information on how to use these scripts to create a stable dataset is included in the scripts themselves, as well as an upcoming research paper (url to be added here soon – early 2021).

Limited support
These scripts are provided 'as is', which means that very limited support is available, but feel free to report an issue if something is broken. Some knowledge of python is required to adjust these scripts to your own setup, and it makes sense to read up on the documentation of OpenCV.

Funding sources
These scripts are part of the outcome of two research projects funded by the Research Council of Norway under project numbers 230970 (SnoEco) and 269927 (SIOS-InfraNor)

Files

frans-jan/stable-cam-v1.0.zip

Files (11.8 kB)

Name Size Download all
md5:f2d6ca818f61b8d8c02a16c83baeff26
11.8 kB Preview Download

Additional details

Related works