Orseg
Segtree is a plugin designed for the segmentation of individual trees from imagery. It isolates tree in ovelapping tree context.
Segtree is a plugin designed for the segmentation of individual trees from imagery. It isolates tree in ovelapping tree context.
How it works
The user provides as input a color image and, optionally, a trunk detector mask.
With a single click, the plugin automatically places prompt points on the detected trunk labels. These prompts are then used by SAM2 HQ (Segment Anything Model v2, High Quality mode) to segment the tree foliage associated with each trunk.
Article : Individual Segmentation of Intertwined Apple Trees in a Row via Prompt Engineering
METUAREA, Herearii, LAURENS, François, GUERRA, Walter, et al. Individual Segmentation of Intertwined Apple Trees in a Row via Prompt Engineering. Sensors, 2025, vol. 25, no 15, p. 4721.
Citing segtree
If you find segtree useful in your research, please star ⭐ this repository and consider citing 📝:
@article{metuarea2025individual,
title={Individual Segmentation of Intertwined Apple Trees in a Row via Prompt Engineering},
author={Metuarea, Herearii and Laurens, Fran{\c{c}}ois and Guerra, Walter and Lozano, Lidia and Patocchi, Andrea and Van Hoye, Shauny and Dutagaci, Helin and Labrosse, Jeremy and Rasti, Pejman and Rousseau, David},
journal={Sensors},
volume={25},
number={15},
pages={4721},
year={2025},
publisher={MDPI}
}
Installation
You can install orseg
via pip:
pip install orseg
If napari is not already installed, you can install orseg
with napari and Qt via:
pip install "orseg[all]"
To install latest development version :
pip install git+https://github.com/hereariim/orseg.git
Contact
Imhorphen team, bioimaging research group
42 rue George Morel, Angers, France
- Pr David Rousseau, david.rousseau@univ-angers.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, "orseg" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Version:
- 0.0.2
Last updated:
- 2025-09-11
First released:
- 2025-09-10
License:
- Copyright (c) 2025, Herearii M...
Operating system:
- Information not submitted
Requirements:
- torch>=2.3.1
- torchvision>=0.18.1
- numpy
- magicgui
- qtpy
- aiofiles==23.2.1
- altair==5.5.0
- annotated-types==0.7.0
- antlr4-python3-runtime==4.9.3
- anyio==4.9.0
- attrs==25.3.0
- certifi==2025.1.31
- charset-normalizer==3.4.1
- click==8.1.8
- coloredlogs==15.0.1
- contourpy==1.3.1
- cycler==0.12.1
- fastapi==0.115.12
- ffmpy==0.5.0
- filelock==3.18.0
- flatbuffers==25.2.10
- fonttools==4.56.0
- fsspec==2025.3.2
- gradio==4.29.0
- gradio-client==0.16.1
- gradio-imageslider==0.0.20
- h11==0.14.0
- httpcore==1.0.7
- httpx==0.28.1
- huggingface-hub==0.30.1
- humanfriendly==10.0
- hydra-core==1.3.2
- idna==3.10
- imageio==2.37.0
- importlib-resources==6.5.2
- iopath==0.1.10
- jinja2==3.1.6
- joblib==1.4.2
- jsonschema==4.23.0
- jsonschema-specifications==2024.10.1
- kiwisolver==1.4.8
- lazy-loader==0.4
- markdown-it-py==3.0.0
- markupsafe==2.1.5
- matplotlib==3.10.1
- mdurl==0.1.2
- mpmath==1.3.0
- narwhals==1.33.0
- networkx==3.4.2
- numpy==1.26.4
- omegaconf==2.3.0
- onnx==1.17.0
- onnxruntime==1.21.0
- opencv-python==4.11.0.86
- orjson==3.10.16
- pandas==2.2.3
- pillow==10.4.0
- portalocker==3.1.1
- protobuf==6.30.2
- py-cpuinfo==9.0.0
- pycocotools==2.0.8
- pydantic==2.11.1
- pydantic-core==2.33.0
- pydub==0.25.1
- pyparsing==3.2.3
- pyreadline3==3.5.4
- python-multipart==0.0.20
- pytz==2025.2
- pyyaml==6.0.2
- referencing==0.36.2
- regex==2024.11.6
- requests==2.32.3
- rich==14.0.0
- rpds-py==0.24.0
- ruff==0.11.2
- safetensors==0.5.3
- scikit-image==0.25.2
- scikit-learn==1.6.1
- scipy==1.15.2
- seaborn==0.13.2
- semantic-version==2.10.0
- shellingham==1.5.4
- sniffio==1.3.1
- starlette==0.46.1
- sympy==1.13.1
- threadpoolctl==3.6.0
- tifffile==2025.3.30
- timm==1.0.15
- tokenizers==0.21.1
- tomlkit==0.12.0
- tqdm==4.67.1
- transformers==4.50.3
- typer==0.15.2
- typing-inspection==0.4.0
- tzdata==2025.2
- ultralytics==8.3.99
- ultralytics-thop==2.0.14
- urllib3==2.3.0
- uvicorn==0.34.0
- websockets==11.0.3
- napari[all]; extra == "all"