# fiftyone.utils.labels¶

Label utilities.

Functions:

 Converts the fiftyone.core.labels.Classification field of the collection into a fiftyone.core.labels.Detections field containing a single detection whose bounding box spans the entire image. objects_to_segmentations(sample_collection, …) Converts the instance segmentations or polylines in the specified field of the collection into semantic segmentation masks.
fiftyone.utils.labels.objects_to_segmentations(sample_collection, in_field, out_field, mask_size=None, mask_targets=None, thickness=1)

Converts the instance segmentations or polylines in the specified field of the collection into semantic segmentation masks.

Parameters
fiftyone.utils.labels.classification_to_detections(sample_collection, in_field, out_field)

Converts the fiftyone.core.labels.Classification field of the collection into a fiftyone.core.labels.Detections field containing a single detection whose bounding box spans the entire image.

Parameters