optical.converter.utils.write_xml

optical.converter.utils.write_xml(df: pandas.core.frame.DataFrame, image_root: Union[str, os.PathLike, pathlib.PosixPath], output_dir: Optional[Union[str, os.PathLike, pathlib.PosixPath]] = None) None[source]

write xml files in PASCAL VOC format given a label dataframe

Parameters
  • df (pd.DataFrame) – dataframe of the single image with multiple objects in it.

  • image_root (Union[str, os.PathLike, PosixPath]) – path to image directory.

  • output_dir (Optional[Union[str, os.PathLike, PosixPath]], optional) – output directory