Extract geometric traits from top-view images of plants.
Project description
Speedy Measurement of Arabidopsis Rosette Traits (SMART)
Author: Suxing Liu
Robust and parameter-free plant image segmentation and trait extraction.
- Process with plant image top view, including whole tray plant image, this tool will segment it into individual images.
- Robust segmentation based on parameter-free color clustering method.
- Extract individual plant gemetrical traits, and write output into excel file.
Requirements
Either Docker or Singularity is required to run this project in a Unix environment.
Usage
Docker
docker pull computationalplantscience/smart
docker run -v "$(pwd)":/opt/arabidopsis-rosette-analysis -w /opt/arabidopsis-rosette-analysis computationalplantscience/arabidopsis-rosette-analysis python3 /opt/arabidopsis-rosette-analysis/trait_extract_parallel.py -i input -o output -ft "jpg,png"
Singularity
singularity exec docker://computationalplantscience/arabidopsis-rosette-analysis python3 trait_extract_parallel.py -i input -o output -ft "jpg,png"
Contents
Requirements
The easiest way to run this project is with Docker or Singularity .
To pull the computationalplantscience/smart
image, the current working directory, and open a shell with Docker:
docker run -it -v $(pwd):/opt/dev -w /opt/dev computationalplantscience/smart bash
Singularity users:
singularity shell docker://computationalplantscience/smart
Usage
Segmentation
To perform color segmentation:
python3 /opt/smart/core/color_seg.py -p /path/to/input/file -r /path/to/output/folder
You can also pass a folder path (-p /path/to/dir
). By default any JPG
and PNG
are included. You can choose filetype explicitly with e.g. -ft jpg
.
To extract traits:
python3 /opt/smart/core/trait_extract_parallel_ori.py -p /path/to/input/file -r /path/to/output/folder
You can also use a folder path as above, likewise for filetype specification.
By default this script will not perform leaf segmentation and analysis. To enable leaf analysis, use the -l
flag.
To indicate that your input is a multiple-tray or -individual photo, add the -m
flag.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for smart-arabidopsis-traits-0.5.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4f3757ad2f2b6ae6bcb68b1efc2d852a060563b50e98596da4db056ce05f830 |
|
MD5 | e67a7784a2212ccde3f87dbab067f986 |
|
BLAKE2b-256 | cb9032dc1ce826b96e4d7f4fb43168f3669bc76841f07eba3ac4e0be9813a822 |
Hashes for smart_arabidopsis_traits-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbfa0217a6b1c6b79768ec44171e94b4399a9b662b1bba317be92ef7149f84cf |
|
MD5 | 03054a1278bdd69de57d46add3e30231 |
|
BLAKE2b-256 | 94ed6e18fb116640ca7fb79cd113fab77ae6fe722bde350e4f289cca2b31d8ff |