{"skill":{"slug":"annotation-format-converter","displayName":"Annotation Format Converter","summary":"Convert annotation files between COCO, YOLO, VOC, and LabelMe formats with auto-detection and support for batch processing of folders.","description":"# Annotation Format Converter\n\nConvert annotation formats between COCO, YOLO, VOC, and LabelMe. Use when user needs to convert annotation files between different formats for computer vision tasks.\n\n## Features\n\n- **COCO → YOLO**: Convert COCO JSON to YOLO txt format\n- **YOLO → COCO**: Convert YOLO txt to COCO JSON\n- **VOC → COCO**: Convert Pascal VOC XML to COCO JSON\n- **LabelMe → COCO**: Convert LabelMe JSON to COCO JSON\n- **Auto-detect**: Automatically detect input format\n- **Batch Convert**: Convert entire folders\n\n## Usage\n\n```bash\n# Convert COCO JSON to YOLO\npython scripts/converter.py coco2yolo input.json output_dir/\n\n# Convert YOLO txt to COCO\npython scripts/converter.py yolo2coco input_dir/ output.json\n\n# Convert VOC XML to COCO\npython scripts/converter.py voc2coco input_dir/ output.json\n\n# Auto-detect and convert\npython scripts/converter.py convert input.json output.json --from coco --to yolo\n\n# List supported formats\npython scripts/converter.py formats\n```\n\n## Supported Formats\n\n| Format | Extension | Description |\n|--------|-----------|-------------|\n| COCO | .json | COCO JSON annotation |\n| YOLO | .txt | YOLO darknet format |\n| VOC | .xml | Pascal VOC XML |\n| LabelMe | .json | LabelMe JSON |\n\n## Examples\n\n### COCO to YOLO\n```\n$ python scripts/converter.py coco2yolo annotations.json yolo_labels/\n\nConverting COCO to YOLO...\n✓ Converted 150 annotations to yolo_labels/\n```\n\n### YOLO to COCO\n```\n$ python scripts/converter.py yolo2coco labels/ output.json --image-dir images/\n\nConverting YOLO to COCO...\n✓ Converted 150 annotations to output.json\n```\n\n## Installation\n\n```bash\npip install pillow tqdm\n```\n\n## Requirements\n\n- Python 3.8+\n- Pillow (for image dimensions)\n- tqdm (for progress bar)\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":606,"installsAllTime":23,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1772706344384,"updatedAt":1778491734013},"latestVersion":{"version":"1.0.0","createdAt":1772706344384,"changelog":"Initial release of Annotation Format Converter.\n\n- Supports conversion between COCO, YOLO, VOC, and LabelMe annotation formats.\n- Enables auto-detection of annotation format.\n- Provides batch conversion for folders.\n- Includes CLI usage examples for all major conversions.\n- Lists supported formats and requirements.","license":null},"metadata":null,"owner":{"handle":"mingo-318","userId":"s174azpqkfzaht4rsrns8gsy4983gadk","displayName":"Mingo_318","image":"https://avatars.githubusercontent.com/u/62329898?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780089761445}}