CAT: Coral Annotation Tool
Coral Annotation Tool - File-based , Structure from Motion (SfM) Orthomosaic coral reef annotation and visualization tool to support coral reef research.
About
CAT is a lightweight, file-based annotation system designed specifically for marine scientists and coral reef researchers working with Structure from Motion (SfM) orthomosaic imagery. Built with modern web technologies and Cloud Optimized GeoTIFF (COG) support, CAT provides a streamlined workflow for annotating, analyzing, and managing coral reef datasets without the complexity of databases or heavy dependencies.
Perfect for field research environments where simplicity, speed, and reliability are essential.
Features
⚠️ Note: Under Active Development: CAT is under active development. Features are being added regularly and some functionality may change. See the Roadmap section for planned improvements.
Mapping & Visualization
- Fast Streaming - Dynamic tile generation for instant viewing (ala google maps but for orthomoasics)
- High Zoom Levels - Zoom up to 2000x for pixel-level inspection
- Multi-Layer Support - Work with multiple orthomosaics simultaneously
- Shapefile Overlay - Import and visualize existing shapefile layers
Annotation Tools
- Vector Annotations - Draw polygons, lines, and points with custom attributes
- Species Database - Built-in coral species reference (1000+ species)
- Rich Metadata - Capture depth, health, morphology, and custom attributes
- Real-time Editing - Modify annotations on-the-fly with visual feedback
- Annotation Timer - Track time spent on each annotation session
Project Management
- File-Based Storage - No database required, pure JSON format
- Drag & Drop Interface - Easy project creation with multiple TIF files
- GeoJSON Export - Export annotations in standard GeoJSON format
- Project Templates - Reusable project structures for consistent workflows
Cloud Optomized GeoTiff (COG) Processing (https://github.com/MichaelAkridge-NOAA/sfm-orthomosaic-tile-viewer)
- Batch Conversion - Convert multiple GeoTIFFs to COG format simultaneously
- One-Time Setup - Automatic COG creation on first project load
- Compression Options - LZW, DEFLATE, or JPEG compression
- Validation - Built-in COG format validation
Interface
Quick Start
Prerequisites
- Python 3.9 or higher
- Local Installation & usage only. (*Note: database and cloud version in development.)
Installation
Option 1: Install from PyPI (Recommended)
pip install coral-annotation-tool
# Or Install with desktop shortcut support (one-time)
pip install coral-annotation-tool[shortcuts]
# Create shortcuts
cat-create-shortcuts
Running the Application
After installation, simply run:
- Double click on Desktop icon
- Start Menu (Windows) or Applications (Mac/Linux)
- Command line:
cat
cat
The application will be available at: http://localhost:8000
Option 2: Install from source (Local Development)
git clone https://github.com/MichaelAkridge-NOAA/cat
cd cat
pip install -e .
If installed locally (from source):
# Install with shortcut support
pip install -e .[shortcuts]
# Create shortcuts
cat-create-shortcuts
# Or use the helper scripts in the repo:
# Windows: Double-click create_shortcuts.bat
# Mac/Linux: ./create_shortcuts.sh
Remove shortcuts (if needed):
cat-remove-shortcuts
Usage
Creating Your First Project
-
Navigate to Project Creator
- Open http://localhost:8000
- Click "Create Project" card
-
Add Your Data
- Drag & drop TIF/GeoTIFF files
- Optionally add shapefile layers (.shp, .shx, .dbf, .prj)
- Fill in project metadata (Site, Year, Cruise, Observer, etc.)
-
Generate Project
- Click "Generate Project"
- Review the JSON structure
- Download the project file
-
Start Annotating
- Click "Coral Annotation" from homepage
- Upload your project JSON file
- Wait for COG conversion (first time only)
- Begin annotating coral features!
Annotation Workflow
-
Select Drawing Tool
- 📍 Point - Individual coral colonies
- ➖ Line - Transects or linear features
- ⬜ Rectangle - Quick area selection
- 🔷 Polygon - Complex coral formations
-
Draw on Map
- Click to place vertices
- Double-click to finish
- Edit by dragging vertices
-
Fill Annotation Form
- Species (autocomplete with 1000+ species)
- Morphology, Health, Size
- Depth, Coverage, Notes
-
Save Annotation
- Press
Ctrl+Sor click Save - Annotations auto-sync to project JSON
- Press
-
Export Results
- Download updated project JSON
- Export GeoJSON and/or shapefile for GIS analysis in ArcGIs/QGIS
Converting TIF to COG
This happens automatically when creating a project, but there is also an additional batch converter included. Via Web Interface:
- Navigate to http://localhost:8000/converter
- Drag & drop GeoTIFF files
- Select compression type
- Click "Convert to COG"
Via Command Line:
# Single file conversion
cat-convert input.tif output_cog.tif
# Batch conversion
cat-batch-convert input_folder/ output_folder/
# Or use the Python scripts directly
python scripts/make_cog.py input.tif output_cog.tif
python scripts/make_cog_batch.py input_folder/ output_folder/
Annotation Information & Data Format
Annotations are stored in GeoJSON format within project JSON files:
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [[[lon1, lat1], [lon2, lat2], ...]]
},
"properties": {
"id": "unique-id",
"analyst": "Observer Name",
"spcode": "PLOB",
"scientific_name": "Porites lobata",
"obs_year": 2025,
"mission_id": "SE1902",
"site": "KAH-608",
"depth_m": 10.5,
"health": "H",
"morph_code": "MD",
"notes": "Large colony with good coverage",
"annotation_time_seconds": 45.2
}
}
Coral Species Database
CAT includes a comprehensive coral species reference database with:
- 1000+ coral species
- Scientific names (Genus + Species)
- Common 4-letter species codes
- Autocomplete search functionality
- NOAA coral identification standards
Located in: data/reference/list_of_coral.csv
Roadmap
🚧 In Progress
- AI-Assisted Annotation - Automated and Semi-automated coral detection, segmentation and classification features (YOLO,SAM3)
- Google Cloud Storage (GCS) Integration - Native support for
gs://bucket paths - Cloud Workstation Support - Optimized deployment for Google Cloud Workstations
- Database Backend - Optional Oracle/SQLlite/PostgreSQL/GIS backend for large projects
- Multi-user Support - Shared annotation sessions with user tracking
📋 Planned Features
Cloud & Collaboration
- Enhanced COG Processing - Improved batch conversion with progress tracking
- Other Cloud Storage Integrations - Support for AWS S3, Azure Blob Storage
- Real-time Sync - Live collaboration and annotation syncing
Analysis & Visualization
- Statistics Dashboard - Project-level analytics and reporting
- Time-series Analysis - Multi-temporal change detection
- Export Formats - Additional formats (KML, GeoPackage, CSV)
Advanced Features
- 3D Support - Integration with 3D reef models and point clouds
💡 Feature Requests
Have an idea? Open an issue with the feature-request label!
Disclaimer
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project content is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.
License
This repository's code is available under the terms specified in LICENSE.md.
Acknowledgments
This project uses TiTiler by Development Seed for dynamic tile generation. TiTiler is licensed under the MIT License.
Metadata
Release files for coral-annotation-tool 1.0.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| coral_annotation_tool-1.0.30.tar.gz | 10.1 MB | With provenance | Details for coral_annotation_tool-1.0.30.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coral_annotation_tool-1.0.30-py3-none-any.whl | Python 3 | none | any | Details for coral_annotation_tool-1.0.30-py3-none-any.whl |
Total release size: 20.1 MB
Release files / coral_annotation_tool-1.0.30.tar.gz
| Download URL | coral_annotation_tool-1.0.30.tar.gz |
|---|---|
| Size | 10.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43b7f19c3dc3e449eef8a695f85f1b7b1938e27f7bf38937bc82a6dd7b31375c
|
|
BLAKE2b-256 checksum How to use checksums |
c659410f61bd24b58a89035a086a2d1a2db9a7d28597c49705224f0369a64170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 21, 2026.
Transparency logRelease files / coral_annotation_tool-1.0.30-py3-none-any.whl
| Download URL | coral_annotation_tool-1.0.30-py3-none-any.whl |
|---|---|
| Size | 10.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3ac3ceeb228c8b4d049935119b3667c13b93718a068a8de141c91b6e3fc5993
|
|
BLAKE2b-256 checksum How to use checksums |
8826ffb1b6200875751d7a6aadc79f5028221139ce6d8f7185fabae813cb3a90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 21, 2026.
Transparency logSecurity for coral-annotation-tool 1.0.30
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for coral_annotation_tool-1.0.30.tar.gz
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 Apr 21, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.