diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-15 19:40:02 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-15 19:40:02 +0100 |
| commit | 8e06e61f3fd4cfab3f16f66e186abeee7a4cabf1 (patch) | |
| tree | b2324111e8abfc5717e96e6c752648f37c804f39 /crop_frames.py | |
| parent | 1e545a8a40b289123570ade0dd871c2beb1e43d2 (diff) | |
dir
Diffstat (limited to 'crop_frames.py')
| -rw-r--r-- | crop_frames.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crop_frames.py b/crop_frames.py index 2462e7b..7f42d47 100644 --- a/crop_frames.py +++ b/crop_frames.py @@ -9,7 +9,6 @@ from PIL import Image parser = argparse.ArgumentParser() parser.add_argument('--step', default=256, type=int) parser.add_argument('--overlap', default=2, type=int) -parser.add_argument('--scale', default=4, type=int) parser.add_argument('--in_dir', help='Directory to process') parser.add_argument('--out_dir', default='crops', help='Directory to output to') args = parser.parse_args() @@ -19,7 +18,7 @@ def crop_dir(): overlap = args.overlap side = step + overlap * 2 files = glob.glob('{}/*.png'.format(args.in_dir)) - print(files) + # print(files) img = Image.open(files[0]) width, height = img.size |
