Labelme
How it worksProductsExamplesStoryPricingDocumentation
Sign in
  • Installation
  • Install Labelme as App
  • Install Labelme using Terminal
  • Install Labelme using Terminal (old way)
  • Install Labelme Toolkit
  • Troubleshoot
  • All released versions
  • Toolkit Docs
  • ai-annotate-rectangles
  • ai-rectangle-to-mask
  • export-to-voc
  • export-to-yolo
  • extract-image
  • import-from-yolo
  • json-to-mask
  • json-to-masks
  • json-to-visualization
  • list-labels
  • print-stats
  • rename-labels
  • resize-image
  • Starter Guide
  • 1. Annotate image with Labelme
  • 2. Open and edit annotated file
  • 3. Load annotated file with Python
  • 4. Export annotated file to PNG
  • 5. Load exported files with Python
  • Dataset Guide
  • 1. Download real dataset
  • 2. Verify dataset visually
  • 3. Verify dataset statistically
  • 4. Additional data collection
  • 5. Export dataset
  • Bonus: PyTorch dataset class

export-to-voc

You need to be a Pro member to access the full content of this.

export-to-voc converts your Labelme dataset to a commonly used VOC format:

v0.1.2 (2025-03-28): Supports shape_type="mask".

Usage

Pass a directory that contains JSON files.

labelmetk export-to-voc [OPTIONS] DATASET_DIR

Example

labelmetk export-to-voc small_dataset \
  --class-names __ignore__,_background_,bottle,bus,car,chair,person,sofa

Download an example dataset from:

small_dataset.zip (389KB)
  • Usage
  • Example