bboxconverter.io.reader_manifest

Module Contents

Functions

get_bbox_type(→ str)

Get the bounding box type of a DataFrame.

read_manifest(→ bboxconverter.core.bbox_parser.BboxParser)

Read bounding boxes from a manifest file using pandas.read_csv.

bboxconverter.io.reader_manifest.get_bbox_type(df) str

Get the bounding box type of a DataFrame.

bboxconverter.io.reader_manifest.read_manifest(path: str | Path, configuration, format='auto') bboxconverter.core.bbox_parser.BboxParser

Read bounding boxes from a manifest file using pandas.read_csv.

Parameters:
  • path (str | Path) – Path to csv file

  • format (str) – Format of the manifest file. Can be one of the following: ‘auto’, ‘coco’, ‘pascal’

  • configuration (dict) – Dictionary containing the configuration of the manifest file.

Returns:

BboxParser object containing bounding boxes

Return type:

BboxParser