optical.converter.utils.create_tf_example

optical.converter.utils.create_tf_example(df: pandas.core.frame.DataFrame, root: Union[str, os.PathLike, pathlib.PosixPath])[source]

returns protobuf for a given image

Parameters
  • df (pd.DataFrame) – Dataframe of a single image with multiple records of objects

  • root (Union[str, os.PathLike, PosixPath]) – root of the Image path

Returns

protobuf of each Image

Return type

protobuf