Skip to content

Commit 5dcd31d

Browse files
committed
[update] add comment
1 parent 253fdd0 commit 5dcd31d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

main.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44

55
if __name__ == '__main__':
66

7+
# Load config
78
opt = Option()
89
img_paths = opt.img_paths
910

10-
# pick first one
11+
# Pick first one
1112
raw_img = cv2.imread(opt.get_first_one().absolute().as_posix())
1213

13-
# choose how to crop
14+
# Choose how to crop
1415
cropper = Cropper(raw_img)
1516

1617
if cropper.cropped:
@@ -22,7 +23,7 @@
2223

2324
last_size = None
2425

25-
# list all images to crop
26+
# List all images to crop
2627
for img_path in img_paths:
2728

2829
img = cv2.imread(img_path.absolute().as_posix())
@@ -53,6 +54,6 @@
5354
else:
5455
last_size = size
5556

56-
# cropping other images
57+
# Cropping other images
5758
cropped_img = img[starty:endy, startx:endx, :]
5859
cv2.imwrite((opt.output_path / img_path.name).absolute().as_posix(), cropped_img)

0 commit comments

Comments
 (0)