darwin.exporter package

Subpackages

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 Iterator of AnnotationFiles.

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 Iterator of the parsed AnnotationFiles.

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

exception darwin.exporter.ExporterNotFoundError[source]

Bases: ModuleNotFoundError

darwin.exporter.get_exporter(format: str) Callable[[Iterator[AnnotationFile], Path], None][source]