diff --git a/ex3.py b/ex3.py new file mode 100644 index 0000000..6fdd678 --- /dev/null +++ b/ex3.py @@ -0,0 +1,26 @@ +import os.path +from glob import glob + + +class ImageStandardizer: + def __init__(self, input_dir: str) -> None: + super().__init__() + + # todo scan for .jpeg files + + # scan input dir for files + files = glob(input_dir + '/**/*.jpg', recursive=True) + if len(files) == 0: + raise ValueError + + # convert them into absolute paths + files = [os.path.abspath(x) for x in files] + + # sort filenames + files.sort() + + def analyze_images(self) -> None: + pass + + def get_standardized_images(self) -> None: + pass