A plant disease classifier
- Install pip and virtualenv
sudo easy_install pip
pip install --upgrade virtualenv
- Create a virtualenv environment
virtualenv --system-site-packages tensorflow
- Activate the virtualenv environment
source ~/tensorflow/bin/activate
- Ensure pip ≥8.1 is installed
easy_install -U pip
- Install TensorFlow
pip install --upgrade tensorflow
Make sure that the virtual environment is activated
source ~/tensorflow/bin/activate
Run the following command
python demo.py -i targetImage
where targetImage is the path to a grape leaf image to be classified. For instance
python demo.py -i ./data/test/1.jpg
Bad 99.9998688698 %
Good 0.000135660138767 %
The tool returns the probabilty for the leaf to be affected by peronospora disease. In this case, 99.9998% of being sick (Bad) and 0.0001% of beging healthy (Good).