frontveg 0.1.dev1__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. {frontveg-0.1.dev1 → frontveg-0.2.0}/.github/dependabot.yml +14 -14
  2. {frontveg-0.1.dev1 → frontveg-0.2.0}/.github/workflows/test_and_deploy.yml +91 -91
  3. {frontveg-0.1.dev1 → frontveg-0.2.0}/.napari-hub/DESCRIPTION.md +9 -9
  4. {frontveg-0.1.dev1 → frontveg-0.2.0}/.napari-hub/config.yml +9 -9
  5. {frontveg-0.1.dev1 → frontveg-0.2.0}/.pre-commit-config.yaml +27 -27
  6. {frontveg-0.1.dev1 → frontveg-0.2.0}/LICENSE +28 -28
  7. {frontveg-0.1.dev1 → frontveg-0.2.0}/PKG-INFO +23 -9
  8. {frontveg-0.1.dev1 → frontveg-0.2.0}/README.md +89 -69
  9. {frontveg-0.1.dev1 → frontveg-0.2.0}/pyproject.toml +120 -126
  10. frontveg-0.2.0/src/frontveg/__init__.py +17 -0
  11. {frontveg-0.1.dev1 → frontveg-0.2.0}/src/frontveg/_tests/test_widget.py +66 -66
  12. {frontveg-0.1.dev1 → frontveg-0.2.0}/src/frontveg/_version.py +2 -2
  13. frontveg-0.2.0/src/frontveg/_widget.py +129 -0
  14. frontveg-0.2.0/src/frontveg/napari.yaml +30 -0
  15. {frontveg-0.1.dev1 → frontveg-0.2.0}/src/frontveg.egg-info/PKG-INFO +23 -9
  16. frontveg-0.2.0/src/frontveg.egg-info/SOURCES.txt +23 -0
  17. frontveg-0.2.0/src/frontveg.egg-info/requires.txt +12 -0
  18. {frontveg-0.1.dev1 → frontveg-0.2.0}/src/frontveg.egg-info/top_level.txt +0 -1
  19. {frontveg-0.1.dev1 → frontveg-0.2.0}/tox.ini +33 -33
  20. frontveg-0.1.dev1/src/frontveg/__init__.py +0 -11
  21. frontveg-0.1.dev1/src/frontveg/_widget.py +0 -132
  22. frontveg-0.1.dev1/src/frontveg/napari.yaml +0 -14
  23. frontveg-0.1.dev1/src/frontveg/utils.py +0 -95
  24. frontveg-0.1.dev1/src/frontveg.egg-info/SOURCES.txt +0 -55
  25. frontveg-0.1.dev1/src/frontveg.egg-info/requires.txt +0 -18
  26. frontveg-0.1.dev1/src/sam2/__init__.py +0 -11
  27. frontveg-0.1.dev1/src/sam2/automatic_mask_generator.py +0 -454
  28. frontveg-0.1.dev1/src/sam2/build_sam.py +0 -167
  29. frontveg-0.1.dev1/src/sam2/configs/sam2/sam2_hiera_b+.yaml +0 -113
  30. frontveg-0.1.dev1/src/sam2/configs/sam2/sam2_hiera_l.yaml +0 -117
  31. frontveg-0.1.dev1/src/sam2/configs/sam2/sam2_hiera_s.yaml +0 -116
  32. frontveg-0.1.dev1/src/sam2/configs/sam2/sam2_hiera_t.yaml +0 -118
  33. frontveg-0.1.dev1/src/sam2/modeling/__init__.py +0 -5
  34. frontveg-0.1.dev1/src/sam2/modeling/backbones/__init__.py +0 -5
  35. frontveg-0.1.dev1/src/sam2/modeling/backbones/hieradet.py +0 -317
  36. frontveg-0.1.dev1/src/sam2/modeling/backbones/image_encoder.py +0 -134
  37. frontveg-0.1.dev1/src/sam2/modeling/backbones/utils.py +0 -95
  38. frontveg-0.1.dev1/src/sam2/modeling/memory_attention.py +0 -169
  39. frontveg-0.1.dev1/src/sam2/modeling/memory_encoder.py +0 -181
  40. frontveg-0.1.dev1/src/sam2/modeling/position_encoding.py +0 -221
  41. frontveg-0.1.dev1/src/sam2/modeling/sam/__init__.py +0 -5
  42. frontveg-0.1.dev1/src/sam2/modeling/sam/mask_decoder.py +0 -295
  43. frontveg-0.1.dev1/src/sam2/modeling/sam/prompt_encoder.py +0 -182
  44. frontveg-0.1.dev1/src/sam2/modeling/sam/transformer.py +0 -360
  45. frontveg-0.1.dev1/src/sam2/modeling/sam2_base.py +0 -907
  46. frontveg-0.1.dev1/src/sam2/modeling/sam2_utils.py +0 -323
  47. frontveg-0.1.dev1/src/sam2/sam2_hiera_b+.yaml +0 -1
  48. frontveg-0.1.dev1/src/sam2/sam2_hiera_l.yaml +0 -1
  49. frontveg-0.1.dev1/src/sam2/sam2_hiera_s.yaml +0 -1
  50. frontveg-0.1.dev1/src/sam2/sam2_hiera_t.yaml +0 -1
  51. frontveg-0.1.dev1/src/sam2/sam2_image_predictor.py +0 -466
  52. frontveg-0.1.dev1/src/sam2/sam2_video_predictor.py +0 -1172
  53. frontveg-0.1.dev1/src/sam2/utils/__init__.py +0 -5
  54. frontveg-0.1.dev1/src/sam2/utils/amg.py +0 -348
  55. frontveg-0.1.dev1/src/sam2/utils/misc.py +0 -349
  56. frontveg-0.1.dev1/src/sam2/utils/transforms.py +0 -118
  57. {frontveg-0.1.dev1 → frontveg-0.2.0}/.gitignore +0 -0
  58. {frontveg-0.1.dev1 → frontveg-0.2.0}/MANIFEST.in +0 -0
  59. {frontveg-0.1.dev1 → frontveg-0.2.0}/setup.cfg +0 -0
  60. {frontveg-0.1.dev1 → frontveg-0.2.0}/src/frontveg/_tests/__init__.py +0 -0
  61. {frontveg-0.1.dev1 → frontveg-0.2.0}/src/frontveg.egg-info/dependency_links.txt +0 -0
  62. {frontveg-0.1.dev1 → frontveg-0.2.0}/src/frontveg.egg-info/entry_points.txt +0 -0
@@ -1,14 +1,14 @@
1
- # Dependabot configuration
2
- # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates#enabling-github-dependabot-version-updates
3
- # https://til.simonwillison.net/github/dependabot-python-setup
4
-
5
- version: 2
6
- updates:
7
- - package-ecosystem: pip
8
- directory: "/"
9
- schedule:
10
- interval: monthly
11
- groups:
12
- python-packages:
13
- patterns:
14
- - "*"
1
+ # Dependabot configuration
2
+ # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates#enabling-github-dependabot-version-updates
3
+ # https://til.simonwillison.net/github/dependabot-python-setup
4
+
5
+ version: 2
6
+ updates:
7
+ - package-ecosystem: pip
8
+ directory: "/"
9
+ schedule:
10
+ interval: monthly
11
+ groups:
12
+ python-packages:
13
+ patterns:
14
+ - "*"
@@ -1,91 +1,91 @@
1
- # This workflows will upload a Python Package using Twine when a release is created
2
- # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
-
4
- name: tests
5
-
6
- on:
7
- push:
8
- branches:
9
- - main
10
- - npe2
11
- tags:
12
- - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
13
- pull_request:
14
- branches:
15
- - main
16
- - npe2
17
- workflow_dispatch:
18
-
19
- jobs:
20
- test:
21
- name: ${{ matrix.platform }} py${{ matrix.python-version }}
22
- runs-on: ${{ matrix.platform }}
23
- timeout-minutes: 30
24
- strategy:
25
- matrix:
26
- platform: [ubuntu-latest, windows-latest, macos-latest]
27
- python-version: ["3.10", "3.11", "3.12", "3.13"]
28
-
29
- steps:
30
- - uses: actions/checkout@v4
31
-
32
- - name: Set up Python ${{ matrix.python-version }}
33
- uses: actions/setup-python@v5
34
- with:
35
- python-version: ${{ matrix.python-version }}
36
-
37
- # these libraries enable testing on Qt on linux
38
- - uses: tlambert03/setup-qt-libs@v1
39
-
40
- # strategy borrowed from vispy for installing opengl libs on windows
41
- - name: Install Windows OpenGL
42
- if: runner.os == 'Windows'
43
- run: |
44
- git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
45
- powershell gl-ci-helpers/appveyor/install_opengl.ps1
46
-
47
- # note: if you need dependencies from conda, considering using
48
- # setup-miniconda: https://github.com/conda-incubator/setup-miniconda
49
- # and
50
- # tox-conda: https://github.com/tox-dev/tox-conda
51
- - name: Install dependencies
52
- run: |
53
- python -m pip install --upgrade pip
54
- python -m pip install setuptools tox tox-gh-actions
55
-
56
- # this runs the platform-specific tests declared in tox.ini
57
- - name: Test with tox
58
- uses: aganders3/headless-gui@v2
59
- with:
60
- run: python -m tox
61
- env:
62
- PLATFORM: ${{ matrix.platform }}
63
-
64
- - name: Coverage
65
- uses: codecov/codecov-action@v3
66
-
67
- deploy:
68
- # this will run when you have tagged a commit, starting with "v*"
69
- # and requires that you have put your twine API key in your
70
- # github secrets (see readme for details)
71
- needs: [test]
72
- runs-on: ubuntu-latest
73
- if: contains(github.ref, 'tags')
74
- steps:
75
- - uses: actions/checkout@v4
76
- - name: Set up Python
77
- uses: actions/setup-python@v5
78
- with:
79
- python-version: "3.x"
80
- - name: Install dependencies
81
- run: |
82
- python -m pip install --upgrade pip
83
- pip install -U setuptools setuptools_scm wheel twine build
84
- - name: Build and publish
85
- env:
86
- TWINE_USERNAME: __token__
87
- TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
88
- run: |
89
- git tag
90
- python -m build .
91
- twine upload dist/*
1
+ # This workflows will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
+
4
+ name: tests
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - main
10
+ - npe2
11
+ tags:
12
+ - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
13
+ pull_request:
14
+ branches:
15
+ - main
16
+ - npe2
17
+ workflow_dispatch:
18
+
19
+ jobs:
20
+ test:
21
+ name: ${{ matrix.platform }} py${{ matrix.python-version }}
22
+ runs-on: ${{ matrix.platform }}
23
+ timeout-minutes: 30
24
+ strategy:
25
+ matrix:
26
+ platform: [ubuntu-latest, windows-latest, macos-latest]
27
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
28
+
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+
32
+ - name: Set up Python ${{ matrix.python-version }}
33
+ uses: actions/setup-python@v5
34
+ with:
35
+ python-version: ${{ matrix.python-version }}
36
+
37
+ # these libraries enable testing on Qt on linux
38
+ - uses: tlambert03/setup-qt-libs@v1
39
+
40
+ # strategy borrowed from vispy for installing opengl libs on windows
41
+ - name: Install Windows OpenGL
42
+ if: runner.os == 'Windows'
43
+ run: |
44
+ git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
45
+ powershell gl-ci-helpers/appveyor/install_opengl.ps1
46
+
47
+ # note: if you need dependencies from conda, considering using
48
+ # setup-miniconda: https://github.com/conda-incubator/setup-miniconda
49
+ # and
50
+ # tox-conda: https://github.com/tox-dev/tox-conda
51
+ - name: Install dependencies
52
+ run: |
53
+ python -m pip install --upgrade pip
54
+ python -m pip install setuptools tox tox-gh-actions
55
+
56
+ # this runs the platform-specific tests declared in tox.ini
57
+ - name: Test with tox
58
+ uses: aganders3/headless-gui@v2
59
+ with:
60
+ run: python -m tox
61
+ env:
62
+ PLATFORM: ${{ matrix.platform }}
63
+
64
+ - name: Coverage
65
+ uses: codecov/codecov-action@v3
66
+
67
+ deploy:
68
+ # this will run when you have tagged a commit, starting with "v*"
69
+ # and requires that you have put your twine API key in your
70
+ # github secrets (see readme for details)
71
+ needs: [test]
72
+ runs-on: ubuntu-latest
73
+ if: contains(github.ref, 'tags')
74
+ steps:
75
+ - uses: actions/checkout@v4
76
+ - name: Set up Python
77
+ uses: actions/setup-python@v5
78
+ with:
79
+ python-version: "3.x"
80
+ - name: Install dependencies
81
+ run: |
82
+ python -m pip install --upgrade pip
83
+ pip install -U setuptools setuptools_scm wheel twine build
84
+ - name: Build and publish
85
+ env:
86
+ TWINE_USERNAME: __token__
87
+ TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
88
+ run: |
89
+ git tag
90
+ python -m build .
91
+ twine upload dist/*
@@ -1,9 +1,9 @@
1
- <!-- This file is a placeholder for customizing description of your plugin
2
- on the napari hub if you wish. The readme file will be used by default if
3
- you wish not to do any customization for the napari hub listing.
4
-
5
- If you need some help writing a good description, check out our
6
- [guide](https://github.com/chanzuckerberg/napari-hub/wiki/Writing-the-Perfect-Description-for-your-Plugin)
7
- -->
8
-
9
- The developer has not yet provided a napari-hub specific description.
1
+ <!-- This file is a placeholder for customizing description of your plugin
2
+ on the napari hub if you wish. The readme file will be used by default if
3
+ you wish not to do any customization for the napari hub listing.
4
+
5
+ If you need some help writing a good description, check out our
6
+ [guide](https://github.com/chanzuckerberg/napari-hub/wiki/Writing-the-Perfect-Description-for-your-Plugin)
7
+ -->
8
+
9
+ The developer has not yet provided a napari-hub specific description.
@@ -1,9 +1,9 @@
1
- # You may use this file to customize how your plugin page appears
2
- # on the napari hub: https://www.napari-hub.org/
3
- # See their wiki for details https://github.com/chanzuckerberg/napari-hub/wiki
4
-
5
- # Please note that this file should only be used IN ADDITION to entering
6
- # metadata fields (such as summary, description, authors, and various URLS)
7
- # in your standard python package metadata (e.g. setup.cfg, setup.py, or
8
- # pyproject.toml), when you would like those fields to be displayed
9
- # differently on the hub than in the napari application.
1
+ # You may use this file to customize how your plugin page appears
2
+ # on the napari hub: https://www.napari-hub.org/
3
+ # See their wiki for details https://github.com/chanzuckerberg/napari-hub/wiki
4
+
5
+ # Please note that this file should only be used IN ADDITION to entering
6
+ # metadata fields (such as summary, description, authors, and various URLS)
7
+ # in your standard python package metadata (e.g. setup.cfg, setup.py, or
8
+ # pyproject.toml), when you would like those fields to be displayed
9
+ # differently on the hub than in the napari application.
@@ -1,27 +1,27 @@
1
- repos:
2
- - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v5.0.0
4
- hooks:
5
- - id: check-docstring-first
6
- - id: end-of-file-fixer
7
- - id: trailing-whitespace
8
- exclude: ^\.napari-hub/.*
9
- - id: check-yaml # checks for correct yaml syntax for github actions ex.
10
- - repo: https://github.com/astral-sh/ruff-pre-commit
11
- rev: v0.11.6
12
- hooks:
13
- - id: ruff
14
- - repo: https://github.com/psf/black
15
- rev: 25.1.0
16
- hooks:
17
- - id: black
18
- - repo: https://github.com/tlambert03/napari-plugin-checks
19
- rev: v0.3.0
20
- hooks:
21
- - id: napari-plugin-checks
22
- # https://mypy.readthedocs.io/en/stable/
23
- # you may wish to add this as well!
24
- # - repo: https://github.com/pre-commit/mirrors-mypy
25
- # rev: v1.9.0
26
- # hooks:
27
- # - id: mypy
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: check-docstring-first
6
+ - id: end-of-file-fixer
7
+ - id: trailing-whitespace
8
+ exclude: ^\.napari-hub/.*
9
+ - id: check-yaml # checks for correct yaml syntax for github actions ex.
10
+ - repo: https://github.com/astral-sh/ruff-pre-commit
11
+ rev: v0.11.6
12
+ hooks:
13
+ - id: ruff
14
+ - repo: https://github.com/psf/black
15
+ rev: 25.1.0
16
+ hooks:
17
+ - id: black
18
+ - repo: https://github.com/tlambert03/napari-plugin-checks
19
+ rev: v0.3.0
20
+ hooks:
21
+ - id: napari-plugin-checks
22
+ # https://mypy.readthedocs.io/en/stable/
23
+ # you may wish to add this as well!
24
+ # - repo: https://github.com/pre-commit/mirrors-mypy
25
+ # rev: v1.9.0
26
+ # hooks:
27
+ # - id: mypy
@@ -1,28 +1,28 @@
1
-
2
- Copyright (c) 2025, Herearii Metuarea
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
7
-
8
- * Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- * Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- * Neither the name of copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+
2
+ Copyright (c) 2025, Herearii Metuarea
3
+ All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ * Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ * Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ * Neither the name of copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: frontveg
3
- Version: 0.1.dev1
3
+ Version: 0.2.0
4
4
  Summary: Segmentation of vegetation located to close to camera
5
5
  Author: Herearii Metuarea
6
6
  Author-email: herearii.metuarea@univ-angers.fr
@@ -50,19 +50,13 @@ Classifier: Programming Language :: Python :: 3.11
50
50
  Classifier: Programming Language :: Python :: 3.12
51
51
  Classifier: Programming Language :: Python :: 3.13
52
52
  Classifier: Topic :: Scientific/Engineering :: Image Processing
53
- Requires-Python: ==3.11.12
53
+ Requires-Python: >=3.10
54
54
  Description-Content-Type: text/markdown
55
55
  License-File: LICENSE
56
56
  Requires-Dist: numpy
57
57
  Requires-Dist: magicgui
58
58
  Requires-Dist: qtpy
59
59
  Requires-Dist: scikit-image
60
- Requires-Dist: transformers==4.51.3
61
- Requires-Dist: torch>=2.3.1
62
- Requires-Dist: torchvision>=0.18.1
63
- Requires-Dist: hydra-core==1.3.2
64
- Requires-Dist: iopath>=0.1.10
65
- Requires-Dist: pillow>=9.4.0
66
60
  Provides-Extra: testing
67
61
  Requires-Dist: tox; extra == "testing"
68
62
  Requires-Dist: pytest; extra == "testing"
@@ -83,7 +77,14 @@ Dynamic: license-file
83
77
  [![npe2](https://img.shields.io/badge/plugin-npe2-blue?link=https://napari.org/stable/plugins/index.html)](https://napari.org/stable/plugins/index.html)
84
78
  [![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json)](https://github.com/copier-org/copier)
85
79
 
86
- Segmentation of vegetation located to close to camera
80
+ 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.
81
+
82
+ ----------------------------------
83
+
84
+ The method was developped by Herearii Metuarea, PHENET PhD at LARIS (French laboratory located in Angers, France) and Abdoul-Djalil Hamza Ousseini, 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.
85
+
86
+
87
+ ![Data Warehouse](https://github.com/user-attachments/assets/781dc1ef-3ae0-47ff-9771-6de2879ed602)
87
88
 
88
89
  ----------------------------------
89
90
 
@@ -109,6 +110,19 @@ To install latest development version :
109
110
 
110
111
  pip install git+https://github.com/hereariim/frontveg.git
111
112
 
113
+ ## Description
114
+
115
+ This plugin is a tool to perform image inference. This plugin contained two steps of image processing. First, from RGB image, an depth map is estimated and then thresholded to detect foreground and background in image. Second, grounding dino model detect foliage in foreground. The output is a binary mask where white colour are associated to foliage in foreground.
116
+
117
+ ## Contact
118
+
119
+ Imhorphen team, bioimaging research group
120
+
121
+ 42 rue George Morel, Angers, France
122
+
123
+ - Pr David Rousseau, david.rousseau@univ-angers.fr
124
+ - Abdoul-djalil ousseini-hamza, abdoul-djalil.ousseini-hamza@inrae.fr
125
+ - Herearii Metuarea, herearii.metuarea@univ-angers.fr
112
126
 
113
127
  ## Contributing
114
128
 
@@ -1,69 +1,89 @@
1
- # frontveg
2
-
3
- [![License BSD-3](https://img.shields.io/pypi/l/frontveg.svg?color=green)](https://github.com/hereariim/frontveg/raw/main/LICENSE)
4
- [![PyPI](https://img.shields.io/pypi/v/frontveg.svg?color=green)](https://pypi.org/project/frontveg)
5
- [![Python Version](https://img.shields.io/pypi/pyversions/frontveg.svg?color=green)](https://python.org)
6
- [![tests](https://github.com/hereariim/frontveg/workflows/tests/badge.svg)](https://github.com/hereariim/frontveg/actions)
7
- [![codecov](https://codecov.io/gh/hereariim/frontveg/branch/main/graph/badge.svg)](https://codecov.io/gh/hereariim/frontveg)
8
- [![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/frontveg)](https://napari-hub.org/plugins/frontveg)
9
- [![npe2](https://img.shields.io/badge/plugin-npe2-blue?link=https://napari.org/stable/plugins/index.html)](https://napari.org/stable/plugins/index.html)
10
- [![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json)](https://github.com/copier-org/copier)
11
-
12
- Segmentation of vegetation located to close to camera
13
-
14
- ----------------------------------
15
-
16
- This [napari] plugin was generated with [copier] using the [napari-plugin-template].
17
-
18
- <!--
19
- Don't miss the full getting started guide to set up your new package:
20
- https://github.com/napari/napari-plugin-template#getting-started
21
-
22
- and review the napari docs for plugin developers:
23
- https://napari.org/stable/plugins/index.html
24
- -->
25
-
26
- ## Installation
27
-
28
- You can install `frontveg` via [pip]:
29
-
30
- pip install frontveg
31
-
32
-
33
-
34
- To install latest development version :
35
-
36
- pip install git+https://github.com/hereariim/frontveg.git
37
-
38
-
39
- ## Contributing
40
-
41
- Contributions are very welcome. Tests can be run with [tox], please ensure
42
- the coverage at least stays the same before you submit a pull request.
43
-
44
- ## License
45
-
46
- Distributed under the terms of the [BSD-3] license,
47
- "frontveg" is free and open source software
48
-
49
- ## Issues
50
-
51
- If you encounter any problems, please [file an issue] along with a detailed description.
52
-
53
- [napari]: https://github.com/napari/napari
54
- [copier]: https://copier.readthedocs.io/en/stable/
55
- [@napari]: https://github.com/napari
56
- [MIT]: http://opensource.org/licenses/MIT
57
- [BSD-3]: http://opensource.org/licenses/BSD-3-Clause
58
- [GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
59
- [GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
60
- [Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
61
- [Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
62
- [napari-plugin-template]: https://github.com/napari/napari-plugin-template
63
-
64
- [file an issue]: https://github.com/hereariim/frontveg/issues
65
-
66
- [napari]: https://github.com/napari/napari
67
- [tox]: https://tox.readthedocs.io/en/latest/
68
- [pip]: https://pypi.org/project/pip/
69
- [PyPI]: https://pypi.org/
1
+ # frontveg
2
+
3
+ [![License BSD-3](https://img.shields.io/pypi/l/frontveg.svg?color=green)](https://github.com/hereariim/frontveg/raw/main/LICENSE)
4
+ [![PyPI](https://img.shields.io/pypi/v/frontveg.svg?color=green)](https://pypi.org/project/frontveg)
5
+ [![Python Version](https://img.shields.io/pypi/pyversions/frontveg.svg?color=green)](https://python.org)
6
+ [![tests](https://github.com/hereariim/frontveg/workflows/tests/badge.svg)](https://github.com/hereariim/frontveg/actions)
7
+ [![codecov](https://codecov.io/gh/hereariim/frontveg/branch/main/graph/badge.svg)](https://codecov.io/gh/hereariim/frontveg)
8
+ [![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/frontveg)](https://napari-hub.org/plugins/frontveg)
9
+ [![npe2](https://img.shields.io/badge/plugin-npe2-blue?link=https://napari.org/stable/plugins/index.html)](https://napari.org/stable/plugins/index.html)
10
+ [![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json)](https://github.com/copier-org/copier)
11
+
12
+ 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.
13
+
14
+ ----------------------------------
15
+
16
+ The method was developped by Herearii Metuarea, PHENET PhD at LARIS (French laboratory located in Angers, France) and Abdoul-Djalil Hamza Ousseini, 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.
17
+
18
+
19
+ ![Data Warehouse](https://github.com/user-attachments/assets/781dc1ef-3ae0-47ff-9771-6de2879ed602)
20
+
21
+ ----------------------------------
22
+
23
+ This [napari] plugin was generated with [copier] using the [napari-plugin-template].
24
+
25
+ <!--
26
+ Don't miss the full getting started guide to set up your new package:
27
+ https://github.com/napari/napari-plugin-template#getting-started
28
+
29
+ and review the napari docs for plugin developers:
30
+ https://napari.org/stable/plugins/index.html
31
+ -->
32
+
33
+ ## Installation
34
+
35
+ You can install `frontveg` via [pip]:
36
+
37
+ pip install frontveg
38
+
39
+
40
+
41
+ To install latest development version :
42
+
43
+ pip install git+https://github.com/hereariim/frontveg.git
44
+
45
+ ## Description
46
+
47
+ This plugin is a tool to perform image inference. This plugin contained two steps of image processing. First, from RGB image, an depth map is estimated and then thresholded to detect foreground and background in image. Second, grounding dino model detect foliage in foreground. The output is a binary mask where white colour are associated to foliage in foreground.
48
+
49
+ ## Contact
50
+
51
+ Imhorphen team, bioimaging research group
52
+
53
+ 42 rue George Morel, Angers, France
54
+
55
+ - Pr David Rousseau, david.rousseau@univ-angers.fr
56
+ - Abdoul-djalil ousseini-hamza, abdoul-djalil.ousseini-hamza@inrae.fr
57
+ - Herearii Metuarea, herearii.metuarea@univ-angers.fr
58
+
59
+ ## Contributing
60
+
61
+ Contributions are very welcome. Tests can be run with [tox], please ensure
62
+ the coverage at least stays the same before you submit a pull request.
63
+
64
+ ## License
65
+
66
+ Distributed under the terms of the [BSD-3] license,
67
+ "frontveg" is free and open source software
68
+
69
+ ## Issues
70
+
71
+ If you encounter any problems, please [file an issue] along with a detailed description.
72
+
73
+ [napari]: https://github.com/napari/napari
74
+ [copier]: https://copier.readthedocs.io/en/stable/
75
+ [@napari]: https://github.com/napari
76
+ [MIT]: http://opensource.org/licenses/MIT
77
+ [BSD-3]: http://opensource.org/licenses/BSD-3-Clause
78
+ [GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
79
+ [GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
80
+ [Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
81
+ [Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
82
+ [napari-plugin-template]: https://github.com/napari/napari-plugin-template
83
+
84
+ [file an issue]: https://github.com/hereariim/frontveg/issues
85
+
86
+ [napari]: https://github.com/napari/napari
87
+ [tox]: https://tox.readthedocs.io/en/latest/
88
+ [pip]: https://pypi.org/project/pip/
89
+ [PyPI]: https://pypi.org/