This code is part of the iGEM UniLausanne 2021 project. A very basic image processing script initially used to measure AFP efficacy against frost damage on leaves. You can use it to calculate the ratio between two areas of given colors.
Table of Contents
A very basic image processing script initially used to measure AFP efficacy against frost damage on leaves. You can use it to calculate the ratio between two areas of given colors. We are not programmers so the code is somewhat blasphematory. The code to find the best thresholds is in the Hsvthreshold.py file. The code for the image processing is in the Vision.py file. The HSV thresholder we used to define the thresholds comes from the following stackoverflow thread but any image editing software can be used to determine the threshold values.
VISION is written in Python so, you must have an environment with all the necessary libraries for it to function.
- python libraries
pip install opencv2 pip install csv pip install os
- Clone the repo
git clone https://github.com/igemsoftware2021/UNILausanne-Vision
1.Download the files
2.Install the necessary libraries in your python environment
3.open VISION.py with your code editor
4.replace input and output destinations
5.modify the prefix dictionnary according to your filenames
6.run
iGEM UNILausanne 2021 - Website - igem@unil.ch
Project Link: https://github.com/igemsoftware2021/UNILausanne-Frozone