Skip to main content
v2026.11,986 entries · CC-BY 4.0

PlantCV: Open-Source Plant Image Analysis Software

What PlantCV is, the image types it handles, how to install it, how its notebook-to-parallel workflow runs, and how to cite it.

Written and maintained by CASRAI Editorial Board

Published

On this page

PlantCV is an open-source image analysis software package built for plant phenotyping: a Python library of modular functions that turns plant images (colour, near-infrared, thermal, chlorophyll fluorescence or hyperspectral) into measurements such as size, shape, colour and fluorescence values. It is developed in the open by the Donald Danforth Plant Science Center community on GitHub, installs with conda or pip, and is released under the Mozilla Public License 2.0 (MPL-2.0).

What PlantCV is and what it is for

The project’s GitHub page describes PlantCV as an open-source image analysis software package targeted for plant phenotyping, with a common interface to image-processing techniques drawn from several other packages, and a modular design. In practice that means a researcher does not write one monolithic program. They chain small, documented functions (read an image, threshold it, apply a mask, define a region of interest, analyse the object) into a workflow, and the same workflow can then be repeated over every image in an experiment.

The official documentation states that the functions are meant to work with many plant types and many imaging systems, and it lists the image types the package handles: RGB (visible, VIS) images, grayscale near-infrared (NIR) images, thermal infrared images, grayscale chlorophyll fluorescence images of photosystem II (PSII), and hyperspectral data in ENVI format. Documentation is kept for every release from version 1.1, with a “stable” and a “latest” edition.

PlantCV sits in the phenotyping part of a research workflow. If you are new to the field, the CASRAI guide to phenomics explains the wider context of measuring organism traits at scale. If your question is narrower, such as measuring leaf area from a photograph with a general-purpose tool, compare the approach in measuring leaf area with ImageJ; for cell-level image quantification see CellProfiler. PlantCV is the option built around plant imaging systems and plant-specific analysis functions.

Who develops it, what licence it uses and where it is published

The GitHub repository lists the licence as MPL-2.0 and the source as available from GitHub, PyPI, conda-forge and Zenodo (software DOI 10.5281/zenodo.595522). About 75 contributors are listed, among them Noah Fahlgren, Malia Gehan, Mark Wilson and Jeffrey Berry. The documentation footer credits the Donald Danforth Plant Science Center.

The current major version is 4. The published description of v4 is a paper in Plant Phenome Journal (volume 9, issue 1, article e70065, DOI 10.1002/ppj2.70065, open access under CC BY 4.0) by Schuhl, Brown, Sheng and colleagues, with Malia A. Gehan and Noah Fahlgren as corresponding authors. According to the institutional record for that paper, PlantCV has been in use for more than ten years, and version 4 concentrates on usability (tutorials and a simpler installation), adds support for fluorescence, thermal and hyperspectral imaging, and introduces a morphology subpackage that measures features such as leaf angle and was compared with manual measurements. A bioRxiv preprint of the paper exists under DOI 10.1101/2025.11.19.689271.

The Python Package Index lists 4.11.3 as the latest release (uploaded 2026-07-10, checked November 2026), under the MPL 2.0 licence. Release numbers change often, so check the package index for the current one before you pin a version in a methods section.

How PlantCV is used in practice: the documented workflow

The documentation’s recommended sequence has five steps: install the package, use it with Jupyter notebooks, build a workflow, run the workflow in parallel, and convert the results to CSV with the json2csv tool. Each step answers a different practical question.

1. Develop the workflow in a notebook

The Jupyter page explains that notebooks let a user develop an analysis workflow with immediate visualisation of the input and output images of each step, and describes this as a good way to develop a workflow before running it over many images. PlantCV has a built-in debug setting that is off by default. Setting debug to “print” writes debug images to files; inside Jupyter, setting it to “plot” draws the images straight into the notebook. The page also shows the WorkflowInputs class, which organises and names a workflow’s inputs (images, names, a results file and the debug mode) so that the same code is compatible with later parallel execution.

2. Convert the notebook to a script

The documentation notes that once a workflow has been developed it must be converted into a pure Python script if the goal is to use the parallelization tools on many images. The practical consequence is that exploration (the notebook) and production (the script) are two separate artefacts, and the script is the one to archive with your data.

3. Run the script over the whole dataset

The parallelization tutorial opens with a warning: optimise a workflow on a test set of images before running a whole dataset. The tool is called plantcv-run-workflow. A configuration file in JSON is created with the command plantcv-run-workflow --template my_config.json, edited, and run with plantcv-run-workflow --config config.json. The configuration can be changed in Python through the WorkflowConfig class and saved with its save_config method. The same page states that the tool can run workflows locally or distribute them to a cluster through a scheduler such as HTCondor or SLURM.

The tutorial also covers images stored in an ordinary (flat) directory, including subdirectories. Its stated rule is that consistent naming matters: ideally filenames are built from metadata separated by a consistent delimiter, and a regular-expression parser is available when they are not. The documentation’s own example filename is AABA002948_2014-03-14 03-29-45_Pilot-031014_VIS_TV_z3500.png, read as plant ID, timestamp, measurement label, image type, camera label and zoom. The metadata keys the parser accepts include camera, imgtype, zoom, exposure, gain, frame, rotation, lifter, timestamp, id, barcode, treatment, cartag and measurementlabel, plus an “other” key. Planning filenames before imaging begins is therefore a data-management decision, not a technicality.

4. Export the measurements

PlantCV workflows write their measurements as JSON, and the documentation points to a json2csv step to convert them to a table that a statistics environment can open. The documentation also has a page summarising output measurements.

Installing PlantCV: the documented routes

The official installation page lists supported platforms as 64-bit Linux on x86 processors, macOS on Intel and Apple (ARM) processors, and 64-bit Windows on x86 processors. It states that PlantCV requires Python and was tested with versions 3.11, 3.12 and 3.13, while the package index metadata declares a minimum of Python 3.8. It recommends installing into a virtual environment, noting this avoids package conflicts and can increase the reproducibility of your work by isolating package versions for a specific project.

Route Command or tool named in the documentation Intended use stated in the documentation
conda (conda-forge) conda create -n plantcv -c conda-forge plantcv Server or command-line installation, for people who will build workflows and run them in parallel; Miniforge is the recommended conda
conda with extras adds jupyterlab, ipympl and nodejs to the same command Optional but recommended dependencies
PyPI pip install plantcv (optionally with jupyterlab and ipympl) Alternative to conda
JupyterLab Desktop app Desktop step-by-step guide A simple option to test PlantCV; the page recommends the command-line route for analyses and parallel workflows

Windows users need a Linux-style terminal: the documentation recommends the Miniforge Prompt that ships with Miniforge, or Git for Windows with conda added to the .bashrc file.

Image types and the analysis functions that match them

The data table below compares each image type the documentation lists with the analysis functions in the PlantCV namespace and the tutorial that covers it. The function names are the headings under “Analysis Methods”, “Hyperspectral Data” and “Photosynthesis Functions” in the documentation’s navigation; the tutorial names come from the documentation home page.

Two points follow from the table. First, the functions are grouped by what the sensor measures, not by plant species, so a lab choosing a camera is implicitly choosing the family of PlantCV functions it will use. Second, the same preprocessing vocabulary (thresholding, masks, regions of interest, colour correction) appears across all of them, which is what makes a workflow written for one image type easier to adapt to the next.

Where PlantCV matters for labs and research offices

Reproducibility and methods reporting

Because a PlantCV analysis is a script plus a pinned software version plus a configuration file, all three can be deposited with the images. The documentation itself ties virtual environments to reproducibility. For the general principle, see the CASRAI dictionary entry on computational reproducibility and the entry on the Software Citation FAIR Working Group.

How to cite it

The GitHub page asks users to cite the PlantCV publications relevant to their work and points to a list of publications on the project website. It also gives a Zenodo software DOI (10.5281/zenodo.595522). A methods section can therefore name the software, the exact version used, and the relevant paper, such as the v4 article in Plant Phenome Journal if version 4 was used.

Licence

The licence is MPL-2.0, as stated on the repository and the package index. Anyone planning to modify and redistribute the code, or to embed it in a product, should read the licence text itself and involve their technology transfer office; this page does not interpret it.

Common misunderstandings

  • “PlantCV is a point-and-click program.” It is a Python package; the documentation’s own guidance assumes a terminal, a conda or pip environment and, for large datasets, a script and a configuration file.
  • “A workflow built in a notebook is ready for the whole dataset.” The documentation says to optimise on a test set first and to convert the notebook into a Python script before using the parallelization tool.
  • “It only handles ordinary photographs.” The documented image types include thermal, PSII fluorescence and hyperspectral data as well as RGB and NIR.
  • “File names do not matter.” For flat-directory analysis, the metadata parsed from file names drives grouping and labelling of results.
  • “Any version is the same.” Version 4 reorganised functions (the documentation has a dedicated page on updating to v4 and a changelog), so state the version in your methods.

Sources

Data: PlantCV image types mapped to analysis functions and tutorials

Compiled from the PlantCV stable documentation home page (image types, tutorial list) and the headings of its function namespace navigation. Each row pairs one documented image type with the analysis functions grouped for it and the tutorial that covers it.

PlantCV image types mapped to analysis functions and tutorials
Image typeAnalysis functions in the PlantCV namespaceDocumented tutorial
RGB (visible, VIS)Analyze Color; Analyze Size and Shape; Analyze Pixel DistributionsSingle-plant RGB tutorial; multi-plant tutorial; morphology tutorial
Grayscale near-infrared (NIR)Analyze GrayscaleGrayscale tutorial; dual RGB/NIR tutorial
Thermal infraredAnalyze ThermalThermal tutorial
Grayscale chlorophyll fluorescence (PSII)Analyze YII; Analyze NPQPSII tutorial
Hyperspectral (ENVI format)Analyze Spectral Reflectance; Analyze Spectral IndexHyperspectral tutorial

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about PlantCV: Open-Source Plant Image Analysis Software

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →