Annotation Format Converter

# Annotation Format Converter

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Annotation Format Converter" with this command: npx skills add mingo-318/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

FormatExtensionDescription
COCO.jsonCOCO JSON annotation
YOLO.txtYOLO darknet format
VOC.xmlPascal VOC XML
LabelMe.jsonLabelMe 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)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

AIWolfPK - AI狼人杀

四个AI互相猜疑,你坐着看戏。每局30秒,到底谁是狼? Four AIs play Werewolf while you watch. 30s per round. Spot the wolf before they do.

Registry SourceRecently Updated
General

Project Analyzer

Analyze any project directory and produce a detailed report covering what the project does, its tech stack, folder structure, entry points, how to run it, an...

Registry SourceRecently Updated
General

Thought-Retriever

提炼对话回答中的核心洞察为高置信度知识晶体,存储于本体驱动记忆系统的自我进化与复用。

Registry SourceRecently Updated
General

Miaoji Bid Guard Pro

亚马逊广告护城河Pro版,90天ROI预测+多活动协同+季节性出价+关键词攻防矩阵。 从单次调价建议升级为完整的广告战役规划。基础功能可使用 miaoji-bid-guard 免费版。

Registry SourceRecently Updated