Skip to main content

🌳 Segtree

License BSD-3 PyPI Python Version tests codecov napari hub npe2 Copier

Segtree is a plugin designed for the segmentation of individual trees from imagery. It isolates tree in ovelapping tree context.

Input: RGB images or preprocessed point clouds.

Output: Binary masks of segmentated tree.

alt text

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.

alt text

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 orchardseg via pip:

pip install orchardseg

To install latest development version :

pip install git+https://github.com/hereariim/segtree.git

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, "segtree" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for orchardseg 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orchardseg 0.0.2
File Size Uploaded Provenance
orchardseg-0.0.2.tar.gz 7.4 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for orchardseg 0.0.2
File Interpreter ABI Platform
orchardseg-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 MB

Release files / orchardseg-0.0.2.tar.gz

Download URL orchardseg-0.0.2.tar.gz
Size 7.4 MB
Tags Source
SHA-256 checksum
How to use checksums
5a8ba64e3d570e30bdcfb52ebe42c57b7668d10afa5bb6bb74f30d9ca346c03f
BLAKE2b-256 checksum
How to use checksums
d67403a694dd7b844160a18acf7bb016aaaeefd5856ae1ccd4c7d6cf08e87517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / orchardseg-0.0.2-py3-none-any.whl

Download URL orchardseg-0.0.2-py3-none-any.whl
Size 6.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f16a347f2bb1653d5f60b4710cab64ceea7c73308b08ddbaf41bbdd00f19e0c4
BLAKE2b-256 checksum
How to use checksums
c29dd904e010e4e83c4d72ddf196b80833001527f6ba42a2d36f05664969d7ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for orchardseg 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page