/ASL-EWF

Count and size categorization of lettuce TGI images from the command line

Primary LanguagePython

ASL-CLI

ASL-CLI provides a command line interface (CLI) for counting lettuce.

Running ASL-CLI pipeline

  • First download the GitHub repo:
git clone https://github.com/emmanuelgonz/ASL-EWF.git

  • Then, go to the ASL-EWF directory and change permissions as follows:
cd ASL-EWF
chmod -R 755 *

  • Go the to src directory and run the depend.sh which contains all the necessary dependencies to run ASL-CLI:
cd src/
./depend.sh

  • Now you're ready to count lettuce! All you have to do is run the following command line argument:
./asl_cli.py <image_file_directory>

  • Here is an example to run a sample image. This is an example, make sure to change to your own directory.
./asl_cli.py '/home/emmanuel/Documents/ASL-EWF/test_images/sample_region1.png'

Note

If using your own images, please make sure to add them to the /test_images directory.


After running ASL-CLI, the following files will be output into a sub folder inside the data directory:

  • boxes.npy
  • loop_vars.npy
  • probs.npy
  • size_labels.npy
  • sizes.png
  • counts.png
  • grey_conversion.png
  • harvest_regions.png
  • <filename>fielddata.csv