pat2vec.util.presentation_methods
Functions
|
Create a PowerPoint presentation from images in a specified folder. |
|
Creates a PowerPoint presentation by grouping images in a folder. |
|
Creates a PowerPoint presentation with one image per slide. |
Creates a PowerPoint presentation from grouped images. |
|
|
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