Skip to content

This repository contains a plantcv workflow tool for performing automatic image-based phenotyping on blueberry samples.

Notifications You must be signed in to change notification settings

SFP-team/berrycv-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bcv-workflow

This repository contains a plantcv workflow tool for performing automatic image-based phenotyping on blueberry samples.

Overview

The code takes images with QR code labels and berry samples and segments the image to isolate the objects and labels them with sample metadata. These sample files are then used in constructing a job list for the various workflow analysis scripts used in data extraction. Once these workflows are complete, the data is stored in a plantcv JSON output file and is converted to a set of .csv files.

Using bcv-workflow

Installation

Firstly, install the zbar shared library using yum

yum install zbar

Once pulled, to run from source, use pip, or another package manager to install the python dependencies in requirements.txt.

pip install -r requirements.txt

Flags

Example usage: main.py -i /inputdirectory -n resultname -r /resultsdirectory -a color [...]

  • -i, --indir : input directory for raw images, subfolders
  • -n, --name : name of the output fileset without extension
  • -r, --resultdir : output directory for result files
  • -a, --analysis : list of analysis steps to run separated by space. Includes:
    • shape : height, object area, convex hull, convex hull area, perimeter, extent x, extent y, longest axis, centroid x coordinate, centroid y coordinate, in bounds QC
    • color : color data from RGB, LAB, and HSV color channels as histograms for each
    • bloom : utilizes color models created to mask 'bloom' and 'no-bloom' elements in the berry sample photos and creates additional columns of single-valued data for these feature areas
    • disease : produces a disease factor column as a proportion of the pixels below a hue threshold for disease out of the total pixels
  • -P : using the photo booth for input photos, no flag uses sample_leaf_workflow.py
  • -S : using the scanner for input photos, produces a single sample image as a mask of the whole input image (not separate samples), no flag uses sample_leaf_workflow.py

About

This repository contains a plantcv workflow tool for performing automatic image-based phenotyping on blueberry samples.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages