The example lightbox contains LED lighting; this could be further improved by using bulbs that are closer to standard illuminants (D65 for sRGB). An object of known size (coins work well). Software: Python 3.8. Python packages: List of packages and their versions used available in Additional file 1 : S0. Custom Python Scripts: https://github.com/HarryCWright/PlantSizeClr Snapshot of all scripts and data is available on Open Science Framework: www.doi.org/10.17605/OSF.IO/QAYMU Optional for extraction of lycopene: acetone, high purity ethanol, hexane deionised water and a UV/vis spectrophotometer
Open resource ↗HarryCWright/PlantSizeClr · lines:34-50Unverified paper record
Free and open-source software for object detection, size, and colour determination for use in plant phenotyping
Plant Methods · 14 Nov 2023 · 10.1186/s13007-023-01103-0
Abstract
BACKGROUND: Object detection, size determination, and colour detection of 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.
abstractWe show the consistency of these scripts by imaging in four different lighting conditions
abstractA fast, cheap, non-destructive, and inexpensive method is provided for the determination of the size and colour of plant materials
Code and data availability
The authors provide public, paper-specific assets: the PlantSizeClr Python scripts on GitHub, a snapshot of all scripts and data on OSF, and all data generated for the manuscript on the University of Sheffield data repository.
Snapshot of all scripts and data is available on Open Science Framework: www.doi.org/10.17605/OSF.IO/QAYMU
Open resource ↗OSF.IO/QAYMU · 10.17605/OSF.IO/QAYMU · lines:34-50This is an automatically classified, unverified record. Curator approval is required before any resource enters the Catalog.