Code for vegetation analysis using a Raspberry Pi and modified webcams