For the complete documentation index, see llms.txt. This page is also available as Markdown.

LabelMe

Overview

This converter allows to import images with .json annotations in LabelMe format. Supported LabelMe format geometry types: polygon, rectangle, circle, point, linestring, mask, line.

Result of the import

Format description

Supported image formats: .jpg, .jpeg, .mpo, .bmp, .png, .webp, .tiff, .tif, .jfif, .avif, .heic, and .heif With annotations: yes Supported annotation file extension: .json. Grouped by: Any structure (will be uploaded as a single dataset)\

Input files structure

Example directory structure:

Single-Image Annotation JSON

An annotation file should contain the following fields:

  • shapes - a list of dictionaries, each containing information about the object

    • label - the name of the class

    • points - a list of points of the object

    • mask - a base64 encoded mask of the object (for mask shape type)

    • shape_type - the type of the object (one of the following: polygon, rectangle, circle, point, linestring, mask, line)

  • imageHeight - the height of the image

  • imageWidth - the width of the image

Example of the annotation file:

📄IMG_0748.json

Last updated