/install annotation-format-converter
Annotation Format Converter
Convert annotation formats between COCO, YOLO, VOC, and LabelMe. Use when user needs to convert annotation files between different formats for computer vision tasks.
Features
- COCO → YOLO: Convert COCO JSON to YOLO txt format
- YOLO → COCO: Convert YOLO txt to COCO JSON
- VOC → COCO: Convert Pascal VOC XML to COCO JSON
- LabelMe → COCO: Convert LabelMe JSON to COCO JSON
- Auto-detect: Automatically detect input format
- Batch Convert: Convert entire folders
Usage
# Convert COCO JSON to YOLO
python scripts/converter.py coco2yolo input.json output_dir/
# Convert YOLO txt to COCO
python scripts/converter.py yolo2coco input_dir/ output.json
# Convert VOC XML to COCO
python scripts/converter.py voc2coco input_dir/ output.json
# Auto-detect and convert
python scripts/converter.py convert input.json output.json --from coco --to yolo
# List supported formats
python scripts/converter.py formats
Supported Formats
| Format | Extension | Description |
|---|---|---|
| COCO | .json | COCO JSON annotation |
| YOLO | .txt | YOLO darknet format |
| VOC | .xml | Pascal VOC XML |
| LabelMe | .json | LabelMe JSON |
Examples
COCO to YOLO
$ python scripts/converter.py coco2yolo annotations.json yolo_labels/
Converting COCO to YOLO...
✓ Converted 150 annotations to yolo_labels/
YOLO to COCO
$ python scripts/converter.py yolo2coco labels/ output.json --image-dir images/
Converting YOLO to COCO...
✓ Converted 150 annotations to output.json
Installation
pip install pillow tqdm
Requirements
- Python 3.8+
- Pillow (for image dimensions)
- tqdm (for progress bar)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install annotation-format-converter - After installation, invoke the skill by name or use
/annotation-format-converter - Provide required inputs per the skill's parameter spec and get structured output
What is Annotation Format Converter?
Convert annotation files between COCO, YOLO, VOC, and LabelMe formats with auto-detection and support for batch processing of folders. It is an AI Agent Skill for Claude Code / OpenClaw, with 292 downloads so far.
How do I install Annotation Format Converter?
Run "/install annotation-format-converter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Annotation Format Converter free?
Yes, Annotation Format Converter is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Annotation Format Converter support?
Annotation Format Converter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Annotation Format Converter?
It is built and maintained by Mingo_318 (@mingo-318); the current version is v1.0.0.