项目作者: van-der-knaap-lab

项目描述 :
Extract geometric traits from images of tomatoes, peppers, and more.
高级语言: Python
项目地址: git://github.com/van-der-knaap-lab/tomato-analyzer-lite.git
创建时间: 2020-09-20T14:53:04Z
项目社区:https://github.com/van-der-knaap-lab/tomato-analyzer-lite

开源协议:

下载


Tomato Analyzer Lite

Extract geometric trait measurements from images of tomatoes and other fruit.

Acknowledgements

General approach inspired by Suxing Liu, in particular Smart Plant Growth Top-Down Traits.

PlantCV also used for skeletonization, pruning, leaf & stem counting, etc.

Requirements

Docker is required to run this project in a Unix environment.

Installation

To install from source, clone the project with git clone https://github.com/van-der-knaap-lab/tomato-analyzer-lite.git, then build the image from the root directory with docker build -t <your tag> -f Dockerfile ..

Alternatively, you can just pull the pre-built image with docker pull van-der-knaap-lab/tomato-analyzer-lite, or allow it to be pulled automatically from another Docker CLI command (as below).

Usage

To analyze an image:

  1. docker run wbonelli/tomato-analyzer-lite python3.8 /opt/tomato-analyzer-lite/talite.py <input file>

By default, output files will be written to the current working directory. To specify a different output location, use -o <full path to output directory>.

Development

To set up a development environment and explore or modify the source, just mount the project root as your container’s working directory, for instance:

  1. docker run -it -v $(pwd):/opt/dev -w /opt/dev wbonelli/tomato-analyzer-lite bash

Then invoke the CLI with python3.8 /opt/code/cli.py <input file>.

Git is also instructed to ignore data and output directories for convenience.