This code is from: Wilkinson, M., Bell, M. C., & Morison, J. I. (2021). A Raspberry Pi‐based camera system and image processing procedure for low cost and long‐term monitoring of forest canopy dynamics. Methods in Ecology and Evolution, 12(7), 1316-1322. The code is provided to the public under an Open Government Licence, details of which can be found here: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/
The original code is available here in the supporting information section: https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13610