← Papers

Unverified paper record

Free and open-source software for object detection, size, and colour determination for use in plant phenotyping

Research Square · 8 Feb 2023 · 10.21203/rs.3.rs-2546630/v1

Abstract

Abstract Background Object detection, size determination, and colour detection of optical images are tools commonly used in plant science. Key examples of this include identification of ripening stages of fruit such as tomatoes and the determination of chlorophyll content as an indicator of plant health. While methods exist for determining these important phenotypes, they often require proprietary software or require coding knowledge to adapt existing code. Results We provide a set of free and open-source Python scripts that, without any adaptation, are able to perform background correction and colour correction on images using a ColourChecker chart. Further scripts identify objects, use an object of known size to calibrate for size, and extract the average colour of objects in RGB, Lab, and YUV colour spaces. We use two examples to demonstrate the use of these scripts. We show the consistency of these scripts by imaging in four different lighting conditions, and then we use two examples to show how the scripts can be used. In the first example, we estimate the lycopene content in tomatoes (Solanum lycopersicum) var. Tiny Tim using fruit images and an exponential model to predict lycopene content. We demonstrate that three different cameras (a DSLR camera and two separate mobile phones) are all able to model lycopene content. The models that predict lycopene or chlorophyll need to be adjusted depending on the camera used. In the second example, we estimate the chlorophyll content of basil (Ocimum basilicum) using leaf images and an exponential model to predict chlorophyll content. Conclusion A fast, cheap, non-destructive, and inexpensive method is provided for the determination of the size and colour of plant materials using a rig consisting of a lightbox, camera, and colour checker card and using free and open-source scripts that run in Python 3.8. This method accurately predicted the lycopene content in tomato fruit and the chlorophyll content in basil leaves.

Plant phenotyping relevance

植物画像からサイズ・色を抽出し、リコペンおよびクロロフィル含量を推定するオープンソース手法と画像取得系を開発・実証しており、植物フェノタイピング手法が中心である。

abstractWe provide a set of free and open-source Python scripts that, without any adaptation, are able to perform background correction and colour correction on images using a ColourChecker chart.
abstractFurther scripts identify objects, use an object of known size to calibrate for size, and extract the average colour of objects in RGB, Lab, and YUV colour spaces.
abstractThis method accurately predicted the lycopene content in tomato fruit and the chlorophyll content in basil leaves.

Code and data availability

The paper provides authors' public Python scripts for plant image colour/size phenotyping on GitHub, plus a public data deposit (University of Sheffield repository DOI) and an OSF snapshot containing all scripts and data.

Codepublic

Custom Python Scripts: https://github.com/HarryCWright/PlantSizeClr

Open resource ↗HarryCWright/PlantSizeClr · lines:62-83
Codepublic

Snapshot of all scripts and data is available on Open Science Framework: DOI: 10.17605/OSF.IO/QAYMU

Open resource ↗10.17605/OSF.IO/QAYMU · lines:62-83

This is an automatically classified, unverified record. Curator approval is required before any resource enters the Catalog.