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:
Individual Image Annotations (JSON)
An annotation file should contain the following fields:
annotations
orpredictions
- 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 (forpolygonlabels
andrectanglelabels
shape types)rle
andformat
- a base64 encoded mask of the object (formask
shape 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