Code used to acquire the images on a Raspberry Pi