https://github.com/hereariim/frontveg
https://github.com/hereariim/frontveg
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hereariim/frontveg
- Owner: hereariim
- License: bsd-3-clause
- Created: 2025-04-20T12:24:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-01T08:57:46.000Z (11 months ago)
- Last Synced: 2025-07-01T09:43:57.888Z (11 months ago)
- Language: Python
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# frontveg
[](https://github.com/hereariim/frontveg/raw/main/LICENSE)
[](https://pypi.org/project/frontveg)
[](https://python.org)
[](https://github.com/hereariim/frontveg/actions)
[](https://codecov.io/gh/hereariim/frontveg)
[](https://napari-hub.org/plugins/frontveg)
[](https://napari.org/stable/plugins/index.html)
[](https://github.com/copier-org/copier)
A plugin for foreground vegetation segmentation, tailored for trellised vegetation row images. It uses RGB images to perform inference and allows users to manually refine the generated mask.
----------------------------------
The method was developped by Herearii Metuarea, PHENET PhD at LARIS (French laboratory located in Angers, France) and Abdoul Djalil Ousseini Hamza, AgroEcoPhen Engineer at IRHS (French Institute located in INRAe Angers, France) in Imhorphen team (bioimaging research group lead) under the supervision of Eric Duchêne (Research Engineer), Morgane Roth (Research Engineer) and David Rousseau (Full professor). This plugin was written by Herearii Metuarea and was designed in the context of the european project PHENET.

----------------------------------
This [napari] plugin was generated with [copier] using the [napari-plugin-template].
## Installation
You can install `frontveg` via [pip]:
pip install frontveg
To install latest development version :
pip install git+https://github.com/hereariim/frontveg.git
GPU is mandatory for time processing and models running (especially Grounding-DINO). Please visit the official PyTorch website to get the appropriate installation command:
👉 https://pytorch.org/get-started/locally
**Exemple : GPU (CUDA 12.1)**
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
## Description
This plugin is a tool to perform image inference. This plugin contained two steps of image processing. First, from RGB image, a depth map is estimated and then thresholded based on the estimated depth histogram modes to detect foreground and background regions in image. Second, a Grounding DINO model detects foliage in the foreground. The output is a binary mask where white colour are associated to foliage in the foreground.
The plugin is applicable to images of trellised plants; in this configuration, it has been applied to images of pome fruit trees (apple), stone fruit trees (apricot) and climbing plants (grapevine).

## Contact
Imhorphen team, bioimaging research group
42 rue George Morel, Angers, France
- Pr David Rousseau, david.rousseau@univ-angers.fr
- Abdoul Djalil Ousseini Hamza, abdoul-djalil.ousseini-hamza@inrae.fr
- Herearii Metuarea, herearii.metuarea@univ-angers.fr
## Contributing
Contributions are very welcome. Tests can be run with [tox], please ensure
the coverage at least stays the same before you submit a pull request.
## License
Distributed under the terms of the [BSD-3] license,
"frontveg" is free and open source software
## Issues
If you encounter any problems, please [file an issue] along with a detailed description.
[napari]: https://github.com/napari/napari
[copier]: https://copier.readthedocs.io/en/stable/
[@napari]: https://github.com/napari
[MIT]: http://opensource.org/licenses/MIT
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
[napari-plugin-template]: https://github.com/napari/napari-plugin-template
[file an issue]: https://github.com/hereariim/frontveg/issues
[napari]: https://github.com/napari/napari
[tox]: https://tox.readthedocs.io/en/latest/
[pip]: https://pypi.org/project/pip/
[PyPI]: https://pypi.org/