This project is about conducting an Experiment to see if a PI NoIR camera is able to perform NDVI calculations.
An automated system has been built and the experiment is on week 2 out of 4. When it's finished results will be shared and hopefully I will be able to share my code.
Please leave any questions as a comment and I will be glad to answer them.
Starting this post where I will publish my findings.
Expect results in around 1-2 months since this work is part of my Bachelor Thesis in computer science at Malmö university.
1. First image is the raw image from camera with custom white balance using a blue filter.
2. Second image is the image without applied colormap. It can be considered as grayscale since its only 1 channel of 255 values.
3. Third image is after a colormap has been applied. I'm currently using fastie's colormap.
Code is written in Python and fully automated process for collecting data. Pictures are taken 3 times a day.
As of now I'm scaling the images from 1920x1080 to 800x600 with Lancosz algorithm for interpolation. The reason being for noise reduction, smaller storage size and faster calculation time.
After processing the images on the raspberry pi I upload them to google drive.
I have tried to create a process for automated data collection to see if I can correlate NDVI values to values generated by the environment. If so one might be able to use NDVI values or another "color based index approach" for monitoring plant health .
Plants grown are from left to right Mixed Lettuce, Tatsoi, Australische Gele.
The experiment is conducted on the propagation stage of plants for Hydroponic farming.
Two separate containers has been setup with the same plants in both. The dependent variable is that a 3 part nutrient solution has been added since day one to one of the containers and I will plot differences in NDVI value between the two containers.
Checkout github repo here: https://github.com/PiddePannkauga/ndviMachine
Only intended for users who are comfortable with Python environment. Some editing of the code needs to be done to suit personal use but hopefully it will serve someone with ideas. I will look into adding better documentation but you can always reach me in the comment section here.
This graph represents the mean of NDVI values from each day during the experiment. One day is the composite of pictures taken at 6am, 12pm, 6pm. Only values between 0.28-0.9 are used since they tend to be plant pixels. Interesting results since I added nutrients from day 0 in one of the growboxes. From this graph it seems like the nutrient solution started taking effect from day 9 where the trend is shifting between the two growboxes.
 Esmael Hamuda, Martin Glavin, and Edward Jones. A survey of image processing
techniques for plant extraction and segmentation in the field. Computers and Electronics in Agriculture, 125:184--199, July 2016. **