Skip to main content

OMERO integration for AI-powered image annotation and segmentation workflows

Project description

OMERO Annotate.AI

Binder CI/CD Documentation PyPI version Python versions License

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 OMERO Connection Widget

Annotation Pipeline 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

📚 Complete Documentation

Links

Contributing

We welcome contributions! For development setup:

  1. Fork the repository
  2. Clone and set up development environment:
    git clone https://github.com/YOUR_USERNAME/omero_annotate_ai.git
    cd omero_annotate_ai
    pixi install
    
  3. Make changes and run tests: pixi run pytest
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omero_annotate_ai-0.2.1.tar.gz (114.0 kB view details)

Uploaded Source

Built Distribution

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

omero_annotate_ai-0.2.1-py3-none-any.whl (92.3 kB view details)

Uploaded Python 3

File details

Details for the file omero_annotate_ai-0.2.1.tar.gz.

File metadata

  • Download URL: omero_annotate_ai-0.2.1.tar.gz
  • Upload date:
  • Size: 114.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for omero_annotate_ai-0.2.1.tar.gz
Algorithm Hash digest
SHA256 224ad848db1d858e953d2a7bd372d7850cd1e11967408e1b42292270fb47f832
MD5 b96c72d1c10d76b31edafb75e051fd31
BLAKE2b-256 22b66c4aad4b052122dd1c3a1041c7cc25a6fcd39ec308ab8fd0e4d3b7de7c35

See more details on using hashes here.

Provenance

The following attestation bundles were made for omero_annotate_ai-0.2.1.tar.gz:

Publisher: ci.yml on Leiden-Cell-Observatory/omero_annotate_ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omero_annotate_ai-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for omero_annotate_ai-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c430aee9d0ed36e9f65708af35da0c639f519d1ce06cf85409879eebe7d31e1
MD5 fd3639daf63ff56bb34786a5d68bf889
BLAKE2b-256 3d2742908a2c9c0f7482bf26ca8f55cbf3cc34eb50a3e2ca6f5c1d0f216d3c27

See more details on using hashes here.

Provenance

The following attestation bundles were made for omero_annotate_ai-0.2.1-py3-none-any.whl:

Publisher: ci.yml on Leiden-Cell-Observatory/omero_annotate_ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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