Exporting image annotations to different formats
Exporting the release file for image datasets to different formats
You can export the release file for image datasets to different formats with the Python SDK. Use the export_dataset
util function for this, setting the export_format
parameter to one of the following:
Value
Description
coco-instance
COCO instance segmentation format
coco-panoptic
COCO panoptic segmentation format
yolo
Yolo Darknet object detection format
instance
Grayscale PNGs (16-bit) where the values correspond to instance ids
semantic
Grayscale PNGs (8-bit) where the values correspond to category ids
instance-color
Colored PNGs where the colors correspond to different instances
semantic-color
Colored PNGs where the colors correspond to different categories, with colors as configured in the label editor settings when available
polygon
For exporting segmentation bitmap labels to polygons
Example:
Alternatively, you can use the initialized SegmentsDataset
to loop through the samples and labels, and visualize or process them in any way you please:
Last updated