Author: Suxing Liu, Alexander Bucksch
Robust and parameter-free plant image segmentation and trait extraction.
- Process with plant image top view, including whole tray plant image.
- Robust segmentation based on parameter-free color clustering method.
- Extract individual plant traits, and write output into an excel file.
Sample ear test results in Excel format, unit (cm).
Sample multiple ear test results in Excel format, unit (cm).
- Tassel branches are opened and spread out evenly.
- Background was black in color and diffusion reflection material, not reflective.
- Coin and barcode should be placed under the bottom line of the tassel.
- Coin and barcode template images should be cropped and stored in the folder "marker_template" as "barcode.png" and "coin.png" to aid the detection. These template images should be the same for one experiment.
- Suggested Coin was silver Brazil 1 Real coin, golden ones are not suggested.
- Suggested to use a QR code in the future instead of a 2D barcode.
Docker is required to run this project in a Linux environment.
Install Docker Engine (https://docs.docker.com/engine/install/)
- Build a docker image on your PC under Linux environment
docker build -t syngenta_phenotools -f Dockerfile .
- Download prebuild docker image from the Docker hub
docker pull computationalplantscience/syngenta_phenotools
- Run the pipeline inside the docker container
link your test image path to the /images/ path inside the docker container
docker run -v /path_to_your_test_image:/images -it syngenta_phenotools
or
docker run -v /path_to_your_test_image:/images -it computationalplantscience/syngenta_phenotools
(For example: docker run -v /your local directory to cloned "Syngenta_PhenoTOOLs"/Syngenta_PhenoTOOLs/sample_test/Ear_test:/images -it syngenta_phenotools)
- Run the pipeline inside the container
python3 trait_computation_mazie_ear.py -p /images/ -ft png
python3 trait_computation_maize_tassel.py -p /images/ -ft png
Update:
to run mutiple ear test(more than 2 ears, please use "trait_computation_mazie_ear_upgrade.py" and add "-ne 5" paramter)
python3 trait_computation_mazie_ear_upgrade.py -p -p /images/ -ft png -ne 5 -min 250000