Skip to main content

napari-align-annotator

License BSD-3 Python Version tests codecov npe2 Copier

A napari plugin for building annotated datasets for ALIGN. Annotation work is organised into projects: a directory holding a project.yaml descriptor and a master annotation CSV, so a session can be closed and resumed at any time.


Installation

Install the plugin into an environment that has napari and a Qt binding:

pip install napari-align-annotator

or, to get napari and PyQt together:

pip install "napari-align-annotator[all]"

The plugin can also be installed from napari's plugin manager (Plugins > Install/Uninstall Plugins...).

To install the latest development version:

pip install git+https://github.com/spsalmon/napari-align-annotator.git

Usage

Open napari and start the widget from Plugins > ALIGN Annotator. From there you can either Create Project or Load Project (pick a directory containing a project.yaml).

When creating a project you choose a name, a location, the image type (multichannel, z-stack or time series), the data directories, and optionally whether the data should be copied into the project. Two project types are currently supported:

Classification

Assign one class to each whole image.

  • Define the list of classes, and choose whether to display the image, its mask, or both (masks require mask directories).
  • Click a class button to label the current image and move to the next one. Ignore removes the current image from the project.
  • Labels are written to annotations/annotations.csv, with one row per image (ImagePath, MaskPath, Class).

Panoptic

Assign a class to each segmented instance of an image.

  • Requires raw image directories and matching segmentation (label) directories, plus a list of classes.
  • Select a class, then place a point on an instance to label it. For z-stacks, instances are linked across planes (stitched by IoU, threshold adjustable with Re-stitch) so a label placed on one plane propagates to the rest of the object.
  • Keyboard shortcuts: J next image, H previous image, S save.
  • The master CSV lists Reference, Segmentation and Annotation paths; each per-image annotation file has one row per labelled instance (Label, ClassID, Class, plus Z and InstanceID for z-stacks). Label is the value of the instance in the segmentation file.

The Keypoint project type is shown in the creator but is not supported yet.

Contributing

Contributions are very welcome. Tests can be run with tox or directly with pytest after pip install -e ".[testing]"; 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, "napari-align-annotator" is free and open source software.

Issues

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

This napari plugin was generated with copier using the napari-plugin-template.

Metadata

Release files for napari-align-annotator 0.1.0

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

Source distribution (sdist)

Source distribution for napari-align-annotator 0.1.0
File Size Uploaded
napari_align_annotator-0.1.0.tar.gz 82.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-align-annotator 0.1.0
File Interpreter ABI Platform
napari_align_annotator-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 166.2 kB

Release files / napari_align_annotator-0.1.0.tar.gz

Download URL napari_align_annotator-0.1.0.tar.gz
Size 82.2 kB
Tags Source
SHA-256 checksum
How to use checksums
039390a8e0df0a7548d7bd7634effafa962fc04415b33ddf22152811485f3791
BLAKE2b-256 checksum
How to use checksums
a7531393c81771032e3446379357c6b315a021e1c07a42a569ae782ee4d24991
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / napari_align_annotator-0.1.0-py3-none-any.whl

Download URL napari_align_annotator-0.1.0-py3-none-any.whl
Size 84.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9afd85904f87d960cd90ff370b38c2c4cfd7ea47a5910b55a1a65a0b17330fef
BLAKE2b-256 checksum
How to use checksums
e008a07bb053b9ea2c66628e8a121a5521b7f05a7183064573962a02646ecd54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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