Skip to main content

Segmentation of vegetation located to close to camera

Project description

frontveg

License BSD-3 PyPI Python Version tests codecov napari hub npe2 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.

Data Warehouse


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).

sample_example

Contact

Imhorphen team, bioimaging research group

42 rue George Morel, Angers, France

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frontveg-0.3.5.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

frontveg-0.3.5-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file frontveg-0.3.5.tar.gz.

File metadata

  • Download URL: frontveg-0.3.5.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for frontveg-0.3.5.tar.gz
Algorithm Hash digest
SHA256 ec2d6eb54c19ce6ef8071037398ded11c72a8c6f90398faf61f5f9015bc81fd1
MD5 49180e0624b30dc6fb20a98e1a7f6192
BLAKE2b-256 416d9f568680c68fd2bd18ece6d105cfcd55ca6aa9ef66088feee7d4733b88f7

See more details on using hashes here.

File details

Details for the file frontveg-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: frontveg-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for frontveg-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 640622d5eb5b47fe7394564b443696d78aa3a4de685be96d19cd33d26bddc548
MD5 8d8198225f740b36b5ae47bc4fa52632
BLAKE2b-256 76f64a93d7043a3a2245562d99a0eeff1f650b06dfc0811f499614e66b1ac3b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page