darwin.exporter package
Subpackages
- darwin.exporter.formats package
- Subpackages
- Submodules
- darwin.exporter.formats.coco module
- darwin.exporter.formats.cvat module
- darwin.exporter.formats.darwin module
- darwin.exporter.formats.dataloop module
- darwin.exporter.formats.instance_mask module
- darwin.exporter.formats.mask module
- darwin.exporter.formats.nifti module
PlaneVolumeexport()build_output_volumes()check_for_error_and_return_imageid()update_pixel_array()populate_output_volumes_from_polygons()populate_output_volumes_from_raster_layer()write_output_volume_to_disk()shift_polygon_coords()get_view_idx()process_metadata()process_affine()create_error_message_json()decode_rle()
- darwin.exporter.formats.numpy_encoder module
- darwin.exporter.formats.pascalvoc module
- darwin.exporter.formats.semantic_mask module
- darwin.exporter.formats.semantic_mask_grey module
- darwin.exporter.formats.semantic_mask_index module
- darwin.exporter.formats.yolo module
- darwin.exporter.formats.yolo_segmented module
- Module contents
Submodules
darwin.exporter.exporter module
- darwin.exporter.exporter.darwin_to_dt_gen(file_paths: List[str | Path], split_sequences: bool) Iterator[AnnotationFile][source]
Parses the given paths recursively and into an
IteratorofAnnotationFiles.- Parameters:
file_paths (List[PathLike]) – The paths of the files or directories we want to parse.
split_sequences (bool) – When True, all videos will be split into individual frame images.
- Returns:
An
Iteratorof the parsedAnnotationFiles.- Return type:
Iterator[AnnotationFile]
- darwin.exporter.exporter.export_annotations(exporter: Callable[[Iterator[AnnotationFile], Path], None], file_paths: List[str | Path], output_directory: str | Path, split_sequences: bool = True) None[source]
Converts a set of files to a different annotation format.
- Parameters:
exporter (ExportParser) – The parser to use.
file_paths (List[PathLike]) – The files we want to parse.
output_directory (PathLike) – Where the parsed files will be placed after the operation is complete.
Module contents
- darwin.exporter.get_exporter(format: str) Callable[[Iterator[AnnotationFile], Path], None][source]