A graphical tool to label images and video with polygons, boxes, and points, exporting JSON plus VOC or COCO datasets.
Overview
Labelme is a Python application with a Qt interface for annotating images and video in computer-vision workflows. It supports primitives including polygons, rectangles, circles, lines, and points, plus image-level flags for classification or cleanup tasks. Annotations are stored as JSON beside each image, and the interface can be customized with predefined labels, auto-save, and label validation.
Export paths include Pascal VOC-style datasets for semantic or instance segmentation and COCO-format instance segmentation. AI-assisted modes can draft masks from points using SAM or EfficientSAM, or generate shapes from text prompts with YOLO-world or SAM3 models when those weights are available. Video annotation is supported as a documented workflow.
The application is run via the labelme command-line entry point on 64-bit macOS, Windows, or Linux with current Python and Qt6 bindings; older Qt5 and Python versions are maintained on a legacy release line. Public contracts are the CLI, the JSON annotation schema, and the user config file—internal Python modules are not a supported library API on recent major versions.
JPEG 2000 images can be opened when Pillow includes OpenJPEG support, decoding in memory for display while leaving source files unchanged.
Key features
- Polygon and box shape tools
- Video frame annotation
- JSON per-image annotations
- VOC and COCO export
- SAM-assisted mask drafting
- Text-prompt model integrations
- Multi-language GUI
- Image classification flags
Use cases
- Instance segmentation datasets
- Object detection bounding boxes
- Semantic segmentation labeling
- Video object markup
- Computer-vision training data prep