LabelStudio
Overview
This converter allows to import images with .json annotations in LabelStudio format. Supported LabelStuidio format geometry types: polygonlabels (polygon), rectanglelabels (rectangle), brushlabels (RLE masks), and choices (tags)

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 data: download ⬇️
⚠️ Note: image names should correspond to the names in the annotation files (data > image field in the JSON file).
Example directory structure:
📦input_folder
┣ 📂ann
┃ ┣ 📄annotation_1.json
┃ ┗ 📄annotation_4.json
┗ 📂img
┣ 🏞️IMG_0748.jpeg
┗ 🏞️IMG_8144.jpeg
Single-Image Annotation JSON
An annotation file should contain the following fields:
annotationsorpredictions- a list of dictionaries, each containing annotation for single imageresult- list of dictionaries, each containing information about the objectsoriginal_width- the width of the original imageoriginal_height- the height of the original imagevalue- a dictionary containing information about the objectpolygonlabels/rectanglelabels/brushlabels/choices- field with the object class namepoints- a list of points of the object (forpolygonlabelsandrectanglelabelsshape types)rleandformat- a base64 encoded mask of the object (formaskshape type)
type- the type of the object (one of the following:polygonlabels,rectanglelabels,brushlabels,choices,relation)
data- a dictionary containing information about the imageimage- the path to the image
Example of the annotation file:
Useful links
Last updated