Manuscript Offprint

arXiv:2610.06575

FrontVeg V2: A Training-Free Software Framework for Foreground-Aware Zero-Shot Plant Trait Segmentation in High-Resolution Images of Trellised Crops

Abdoul Djalil Ousseini Hamza, Herearii Metuarea, Corentin Lothod{é}, Morgane Roth, Jacem Ben Hamden, Eric Duch{ê}ne, Lionel Ley, David Alletru, David Rousseau

Abstract

FrontVeg V2 is an open-source, training-free software framework for foreground-aware zero-shot segmentation of plant traits in high-resolution images of trellised crops. The pipeline combines monocular depth estimation, automatic foreground extraction using Valley-Aware Depth Thresholding, tiled zero-shot segmentation, Graph-Based Mask Assembly, and geometry-aware fusion. This design enables plant organs and disease symptoms to be segmented while reducing detections arising from neighboring vegetation rows. The current implementation integrates Depth Anything V2 (DAV2) and SAM3 and can be used through both command-line batch processing and a Napari graphical interface. FrontVeg V2 provides a reusable framework for multi-crop, multi-trait digital phenotyping without task-specific model retraining.

Keywords:

Plant Phenotyping, Zero-Shot Segmentation, Foundation Models, Monocular Depth Estimation, Trellised Crops

*Corresponding author.

Email address: david.rousseau@univ-angers.fr (David Rousseau ID^{ID})

Required Metadata

All metadata are provided in Table 1, and the corresponding GitHub repository is publicly available.

Nr.Code metadata descriptionPlease fill in this column
C1Current code versionv2.2.0
C2Permanent GitHub link to code/repository used for this code versionhttps://github.com/djaliloh/FrontVegV2
C3Legal Code LicenseMIT License
C4Code versioning system usedGit
C5Software code languages, tools, and services usedPython, PyTorch, Napari
C6Compilation requirements, operating environments & dependenciesMiniforge/Anaconda, Python 3.10, CUDA 12.1, PyTorch, SAM3, Depth Anything V2, napari, NumPy, OpenCV, SciPy, scikit-image, scikit-learn, Pillow, pandas, matplotlib
C7If available Link to developer documentation/manualhttps://github.com/djaliloh/FrontVegV2
C8Support email for questionsdavid.rousseau@univ-angers.fr

Table 1: Code metadata

References (26)