diff options
| author | jules@lens <julescarbon@gmail.com> | 2019-01-09 23:12:07 +0100 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2019-01-09 23:12:07 +0100 |
| commit | 6eb733747b1d5333eedbdb976955c2ffb8c98e63 (patch) | |
| tree | 83051a817380fd886649c97de03be4061709fb69 /crop-moving.py | |
| parent | fd022cafdc8a782e00bdb91fb2afb3f4d7893fec (diff) | |
moving
Diffstat (limited to 'crop-moving.py')
| -rw-r--r-- | crop-moving.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/crop-moving.py b/crop-moving.py index 653dc72..18f9a2e 100644 --- a/crop-moving.py +++ b/crop-moving.py @@ -51,18 +51,9 @@ if not opt.no_clobber: if os.path.exists(out_path): rmtree(out_path) -for i in range(opt.count): - x = int(i / opt.count * src_width) - x_margin - w = x + crop_width + x_margin + x_margin - if w > src_width: - w = src_width - x = src_width - (crop_width + x_margin + x_margin) - if x < 0: - x = 0 - crops.append((x, y0, w, y0 + crop_height + y_margin + y_margin,)) - path = os.path.join(out_path, chr(97 + i)) - os.makedirs(path) - paths.append(path) +path = os.path.join(out_path, 'a') +os.makedirs(path) +paths.append(path) max_i = opt.max dataset = [] |
