Semi-automatic image annotation tool with AI-assisted object detection
Project description
Anno-Mage: A Semi Automatic Image Annotation Tool
Semi-automatic image annotation toolbox powered by PyTorch object detection models, including open-vocabulary zero-shot detection via OWL-v2. Available as a web app (FastAPI + React).
Web App
See web/README.md for installation, usage, and API reference.
Quick start:
# Backend (port 8000)
cd web/backend && python main.py
# Frontend (port 3000)
cd web/frontend && npm install && npm run dev
Or use the convenience script:
cd web && bash start.sh
PyPI Distribution
Install from PyPI
pip install anno-mage
anno-mage
The app opens in your browser automatically. Annotations are saved to ~/.anno-mage/annotations/.
Publish a Release
Releases publish automatically to PyPI when a version tag is pushed. GitHub Actions builds the frontend, packages everything, and publishes via PyPI Trusted Publishers (no tokens required).
One-time PyPI setup:
- Go to your PyPI project → Manage → Publishing → Add a new publisher
- Set: GitHub repo
virajmavani/semi-auto-image-annotation-tool, workflowrelease.yml, environmentpypi
To release:
git tag v2.0.1
git push origin v2.0.1
That's it — the workflow in .github/workflows/release.yml handles the rest.
Build Locally
To build the package without publishing:
Prerequisites:
pip install build
npm install # inside web/frontend if not already done
bash build_release.sh
This compiles the React frontend, copies the build into anno_mage/static/, and produces wheel and sdist artifacts in dist/.
Output Formats
Both interfaces produce identical output:
| Format | Location | Description |
|---|---|---|
| CSV | annotations/annotations.csv |
image_path,x1,y1,x2,y2,label per row |
| Pascal VOC XML | annotations/annotations_voc/ |
One XML file per image |
Acknowledgments
- Meditab Software Inc.
- PyTorch / Torchvision for the RetinaNet implementation
- HuggingFace Transformers for the OWL-v2 zero-shot detection model
- Computer Vision Group, L.D. College of Engineering
Join the developers channel
Slack: https://join.slack.com/t/annomage/shared_invite/zt-dh4ca9du-4VOcwUMCSNA6lmyG~tNUPg
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
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 anno_mage-2.0.5.tar.gz.
File metadata
- Download URL: anno_mage-2.0.5.tar.gz
- Upload date:
- Size: 194.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
937c11534ba2c13547e75a2d15086433e0790313d1f1d3762feb6330ba96ee76
|
|
| MD5 |
e69307c10db0dadd11037a4c27fbd624
|
|
| BLAKE2b-256 |
6cbb72ef7cdd27f8ae3a4d31191f0b5ecde6e332db825f67b4cf07d930b9978d
|
Provenance
The following attestation bundles were made for anno_mage-2.0.5.tar.gz:
Publisher:
release.yml on virajmavani/semi-auto-image-annotation-tool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anno_mage-2.0.5.tar.gz -
Subject digest:
937c11534ba2c13547e75a2d15086433e0790313d1f1d3762feb6330ba96ee76 - Sigstore transparency entry: 1322396813
- Sigstore integration time:
-
Permalink:
virajmavani/semi-auto-image-annotation-tool@a6c4bf9b30d94297614df7fb607679470d1c5309 -
Branch / Tag:
refs/tags/v2.0.5 - Owner: https://github.com/virajmavani
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a6c4bf9b30d94297614df7fb607679470d1c5309 -
Trigger Event:
push
-
Statement type:
File details
Details for the file anno_mage-2.0.5-py3-none-any.whl.
File metadata
- Download URL: anno_mage-2.0.5-py3-none-any.whl
- Upload date:
- Size: 200.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d14b5e69cff44525378059c0e3c54b46e4f46b375a355afecdd7f0e59cebf671
|
|
| MD5 |
df44ba1ed5c3bf1872fe2ab74e6e1a49
|
|
| BLAKE2b-256 |
ac3f48dec0d83f9a8ab0146559de7e07d2a8962042516e9feda82b9d369c51e8
|
Provenance
The following attestation bundles were made for anno_mage-2.0.5-py3-none-any.whl:
Publisher:
release.yml on virajmavani/semi-auto-image-annotation-tool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anno_mage-2.0.5-py3-none-any.whl -
Subject digest:
d14b5e69cff44525378059c0e3c54b46e4f46b375a355afecdd7f0e59cebf671 - Sigstore transparency entry: 1322396887
- Sigstore integration time:
-
Permalink:
virajmavani/semi-auto-image-annotation-tool@a6c4bf9b30d94297614df7fb607679470d1c5309 -
Branch / Tag:
refs/tags/v2.0.5 - Owner: https://github.com/virajmavani
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a6c4bf9b30d94297614df7fb607679470d1c5309 -
Trigger Event:
push
-
Statement type: