diff options
| -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 = [] |
