pat2vec.util.presentation_methods

Functions

create_powerpoint_from_images(folder_path)

Create a PowerPoint presentation from images in a specified folder.

create_powerpoint_from_images_group(folder_path)

Creates a PowerPoint presentation by grouping images in a folder.

create_powerpoint_slides(images, ...)

Creates a PowerPoint presentation with one image per slide.

create_powerpoint_slides_client_idcode_groups(...)

Creates a PowerPoint presentation from grouped images.

group_images_by_suffix(folder_path)

Groups image files in a folder based on their filename suffix.

pat2vec.util.presentation_methods.group_images_by_suffix(folder_path)[source]

Groups image files in a folder based on their filename suffix.

For example, ‘image_A_client1.png’ and ‘image_B_client1.png’ would both be grouped under the key ‘client1’.

Parameters:

folder_path (str) – The path to the folder containing the images.

Return type:

Dict[str, List[str]]

Returns:

A dictionary where keys are suffixes and values are lists of image filenames.

pat2vec.util.presentation_methods.create_powerpoint_slides_client_idcode_groups(image_groups, output_path)[source]

Creates a PowerPoint presentation from grouped images.

Each image from the image_groups dictionary is placed on a new, blank slide in the presentation.

Parameters:
  • image_groups (Dict[str, List[str]]) – A dictionary where keys are group identifiers and values are lists of image filenames.

  • output_path (str) – The path where the output PowerPoint presentation will be saved.

Return type:

None

pat2vec.util.presentation_methods.create_powerpoint_from_images_group(folder_path)[source]

Creates a PowerPoint presentation by grouping images in a folder.

Parameters:

folder_path (str) – The path to the folder containing the images.

Return type:

None

pat2vec.util.presentation_methods.create_powerpoint_slides(images, folder_path, output_path)[source]

Creates a PowerPoint presentation with one image per slide.

Parameters:
  • images (List[str]) – A list of image filenames.

  • folder_path (str) – The directory where the image files are located.

  • output_path (str) – The path to save the generated PowerPoint file.

Return type:

None

pat2vec.util.presentation_methods.create_powerpoint_from_images(folder_path)[source]

Create a PowerPoint presentation from images in a specified folder.

Parameters: - folder_path (str): The path to the folder containing images.

Return type:

None

Parameters:

folder_path (str)