doubleblind.blinding.ImageCoder¶
- class doubleblind.blinding.ImageCoder(root_dir: Path, recursive: bool = True)¶
A class for encoding and decoding image and video files in a directory using a generic coding scheme.
The ImageCoder class extends the GenericCoder class to provide specific functionality for encoding and decoding image and video files. It supports various image and video file formats and allows customization of the encoding process.
- Args:
root_dir (Path): The root directory containing the image and video files to be encoded/decoded. recursive (bool, optional): Flag indicating whether to perform the operation recursively on
all subdirectories. Defaults to True.
- __init__(root_dir: Path, recursive: bool = True)¶
Methods
__init__
(root_dir[, recursive])blind
([output_dir])Blind (encode) the files in the directory.
unblind
(additional_files)Unblind (decode) the files in the directory.
Attributes
FILENAME
FORMATS