hello.fiftyone.coco module

class hello.fiftyone.coco.CocoDataset(name, classes=[], mask_targets={})[source]

Bases: object

add_sample(filepath, annotations, frame_size)[source]

Adds a sample to the dataset.

Parameters:
  • filepath – the path to the image on disk.

  • annotations – a list of (label, bbox, mask, confidence, iscrowd) tuple

  • frame_size – the (width, height) of the image.

hello.fiftyone.coco.coco_add_samples(dataset, dataset_dir=None, data_path=None, labels_path=None, label_field=None, splits=None, tags=None)[source]
hello.fiftyone.coco.coco_export(export_dir, dataset, label_field, splits=None, **kwargs)[source]
hello.fiftyone.coco.coco_export_images(dataset_or_view, data_path)[source]
hello.fiftyone.coco.coco_export_info(info, info_path)[source]
hello.fiftyone.coco.coco_export_labels(dataset_or_view, label_field, labels_path, **kwargs)[source]
hello.fiftyone.coco.coco_export_semantic_labels(dataset_or_view, label_field, labels_path, **kwargs)[source]
hello.fiftyone.coco.parse_data_path(dataset_dir=None, data_path=None, default=None)[source]
hello.fiftyone.coco.parse_labels_path(dataset_dir=None, labels_path=None, default=None)[source]