OMERO integration for AI-powered image annotation and segmentation workflows
Project description
OMERO Annotate.AI
Package to support reproducible image annotation workflows for AI training using OMERO data repositories. This Python package provides Jupyter widgets and tools for reproducible annotation, training, and inference using micro-SAM, Cellpose, and other AI models directly with OMERO datasets.
Key Features
- Interactive Jupyter widgets for OMERO connection and workflow configuration
- AI-assisted annotation using micro-SAM integration
- Reproducible workflows with YAML configuration tracking
- Training data preparation for BiaPy and DL4MicEverywhere
- Direct OMERO integration with automatic result storage
Quick Start
Installation
# Recommended: Using pixi
pixi init myproject && cd myproject
pixi add micro-sam
pixi add --pypi omero-annotate-ai
pixi shell
# Alternative: Conda + pip
conda install -c conda-forge micro-sam
pip install omero-annotate-ai
📖 See Installation Guide for detailed instructions and troubleshooting.
Basic Usage
OMERO Connection Widget
Annotation Pipeline Widget
from omero_annotate_ai import create_omero_connection_widget, create_workflow_widget, create_pipeline
# Connect to OMERO
conn_widget = create_omero_connection_widget()
conn_widget.display()
conn = conn_widget.get_connection()
# Configure annotation workflow
workflow_widget = create_workflow_widget(connection=conn)
workflow_widget.display()
config = workflow_widget.get_config()
# Run annotation pipeline
pipeline = create_pipeline(config, conn)
table_id, processed_images = pipeline.run_full_workflow()
Example Notebooks
Try these example notebooks to get started:
Alternative: YAML Configuration
For batch processing and reproducible workflows, you can also use YAML configuration files:
from omero_annotate_ai.core.annotation_config import load_config
from omero_annotate_ai.core.annotation_pipeline import create_pipeline
# Load configuration from YAML
config = load_config("annotation_config.yaml")
conn = create_connection(host="omero.server.com", user="username")
# Run annotation pipeline
pipeline = create_pipeline(config, conn)
results = pipeline.run_full_workflow()
See the YAML Configuration Guide for complete documentation.
Documentation
- Installation Guide - Detailed installation instructions and troubleshooting
- micro-SAM Tutorial - Step-by-step annotation workflow tutorial
- YAML Configuration Guide - Complete YAML configuration reference and examples
- API Reference - Complete API documentation
- Examples - Jupyter notebook tutorials
Links
Contributing
We welcome contributions! For development setup:
- Fork the repository
- Clone and set up development environment:
git clone https://github.com/YOUR_USERNAME/omero_annotate_ai.git cd omero_annotate_ai pixi install
- Make changes and run tests:
pixi run pytest - Submit a pull request
See Installation Guide - Development Setup for detailed instructions.
Contact
Maarten Paul - m.w.paul@lacdr.leidenuniv.nl
Acknowledgments: Developed within the NL-BioImaging infrastructure, funded by NWO.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omero_annotate_ai-0.2.8.tar.gz.
File metadata
- Download URL: omero_annotate_ai-0.2.8.tar.gz
- Upload date:
- Size: 128.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d46be226eccbb23be28ceaeda7bc97e9f8edf8a198f00f2e97afe2aabd7776a
|
|
| MD5 |
c869fe06cadb7d14b0917203fa625159
|
|
| BLAKE2b-256 |
b0a5548a81b62689977106bec1500a07bb769985637416b3d2673b32cbcc5299
|
Provenance
The following attestation bundles were made for omero_annotate_ai-0.2.8.tar.gz:
Publisher:
ci.yml on Leiden-Cell-Observatory/omero_annotate_ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omero_annotate_ai-0.2.8.tar.gz -
Subject digest:
9d46be226eccbb23be28ceaeda7bc97e9f8edf8a198f00f2e97afe2aabd7776a - Sigstore transparency entry: 1207675057
- Sigstore integration time:
-
Permalink:
Leiden-Cell-Observatory/omero_annotate_ai@24fb9314e440a963de73ed633d642cfab253b5f2 -
Branch / Tag:
refs/tags/v0.2.8 - Owner: https://github.com/Leiden-Cell-Observatory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@24fb9314e440a963de73ed633d642cfab253b5f2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file omero_annotate_ai-0.2.8-py3-none-any.whl.
File metadata
- Download URL: omero_annotate_ai-0.2.8-py3-none-any.whl
- Upload date:
- Size: 98.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
806718e990891f7ff91800225cb7d69cb38e5c0e3f9a9e593b548a75f16e3492
|
|
| MD5 |
f2ef7a5336c1efad668ad4eee37f84e3
|
|
| BLAKE2b-256 |
2dacc5dcab66bd3ac51bfae7d5b7cf257636a33aee61f2fe82d23b889e1a9fb9
|
Provenance
The following attestation bundles were made for omero_annotate_ai-0.2.8-py3-none-any.whl:
Publisher:
ci.yml on Leiden-Cell-Observatory/omero_annotate_ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omero_annotate_ai-0.2.8-py3-none-any.whl -
Subject digest:
806718e990891f7ff91800225cb7d69cb38e5c0e3f9a9e593b548a75f16e3492 - Sigstore transparency entry: 1207675087
- Sigstore integration time:
-
Permalink:
Leiden-Cell-Observatory/omero_annotate_ai@24fb9314e440a963de73ed633d642cfab253b5f2 -
Branch / Tag:
refs/tags/v0.2.8 - Owner: https://github.com/Leiden-Cell-Observatory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@24fb9314e440a963de73ed633d642cfab253b5f2 -
Trigger Event:
release
-
Statement type: