ImageWriter

ImageWriter.write(df, basePath, pathCol='filenames', imageCol='image', encoding='.png')[source]

Reads images from a column of filenames

Parameters:
  • df (DataFrame) – The DataFrame to be processed
  • basePath – (str): Where to save the images
  • pathCol (str) – The name of the column containing filenames
  • imageCol (str) – The name of the added column of images
  • encoding (str) – what openCV encoding to use when saving images