sparkocr.utils.svs.phi_cleaning#
Module Contents#
Classes#
Functions#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Remove label images, macro images, and specified metadata from SVS files. |
|
|
|
Get absolute path to resource, works for dev and for PyInstaller |
|
|
|
Attributes#
- add_description(f)#
- check_free_space(directory)#
- copy_and_strip(file, copyop, index, tags, verbose)#
- copy_and_strip_all(files, copyop, tags, verbose)#
- delete_associated_image(slide_path, image_type, log)#
- delete_associated_metadata(slide_path, tags, log)#
- detect_format(filename)#
- do_strip_in_place(file)#
- file_progress(b)#
- generate_unique_id()#
- get_config_path(dlgtype='native', path='')#
- get_csv_message()#
- get_dir(dlgtype='native', path='')#
- get_dir_(dlgtype='native', path='path')#
- get_filename(f)#
- get_files(dlgtype='native', path='')#
- get_files_(dlgtype='native', path='')#
- get_files_structure(input: str, output: str, rename: bool)#
- get_inplace_dir(dlgtype='native', path='')#
- get_inplace_files(dlgtype='native', path='')#
- get_inplace_info(fs)#
- inplace_info(f)#
- parse_csv(file, filelist, invalid)#
- parse_files(files)#
- parse_inplace_files(files)#
- remove_phi(input, output, tags=predefined_tags, append_tags=[], rename=False, verbose=False)#
Remove label images, macro images, and specified metadata from SVS files.
This function processes SVS files to remove sensitive metadata and associated images. By default, it removes specific metadata tags: “ImageDescription.Filename”, “ImageDescription.Date”, “ImageDescription.Time”, and “ImageDescription.User”.
Parameters: - input (str): The file path or directory containing the SVS files to be de-identified. - output (str): The file path or directory where the de-identified files will be saved. - tags (list, optional): A list of metadata tags to remove, replacing the default tags if provided. - append_tags (list, optional): Additional tags to remove, added to the defaults without overriding them. - rename (bool, optional): whether to rename the output svs file. Default is False. - verbose (bool, optional): whether to plot detailed logs or not. Default is False.
Returns: - None
- remove_tag_section(input_string, tag)#
- resource_path(relative_path)#
Get absolute path to resource, works for dev and for PyInstaller
- test_file_dialog(dlgtype, path='')#
- track_copy_progress(copyop)#
- predefined_tags = ['ImageDescription.Filename', 'ImageDescription.Date', 'ImageDescription.Time', 'ImageDescription.User']#