Skip to main content

Individual tree segmentation

Project description

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

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

orchardseg-0.0.2.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

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

orchardseg-0.0.2-py3-none-any.whl (6.2 MB view details)

Uploaded Python 3

File details

Details for the file orchardseg-0.0.2.tar.gz.

File metadata

  • Download URL: orchardseg-0.0.2.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for orchardseg-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5a8ba64e3d570e30bdcfb52ebe42c57b7668d10afa5bb6bb74f30d9ca346c03f
MD5 167c1a9eb7164d5e5e209951099fa6aa
BLAKE2b-256 d67403a694dd7b844160a18acf7bb016aaaeefd5856ae1ccd4c7d6cf08e87517

See more details on using hashes here.

File details

Details for the file orchardseg-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: orchardseg-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for orchardseg-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f16a347f2bb1653d5f60b4710cab64ceea7c73308b08ddbaf41bbdd00f19e0c4
MD5 b9fdcfa15f8cbf8816c75c6c1ff9aac5
BLAKE2b-256 c29dd904e010e4e83c4d72ddf196b80833001527f6ba42a2d36f05664969d7ac

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