diff options
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 |
