Merge branch 'main' into custom-path
This commit is contained in:
@@ -2,4 +2,4 @@
|
|||||||
Collection of useful scripts for image manipulation for dataset/ML usage
|
Collection of useful scripts for image manipulation for dataset/ML usage
|
||||||
|
|
||||||
## Image Resizer
|
## Image Resizer
|
||||||
Resize a set of images to a given resolution (default: 640x640px) and save them separately.
|
Resize a set of images to a given resolution (default: 640x640px) and save them separately.
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ for filename in os.listdir(inputFolder):
|
|||||||
img_res = cv2.resize(img_org, resolution)
|
img_res = cv2.resize(img_org, resolution)
|
||||||
cv2.imwrite(os.path.join(outputFolder, filename), img_res)
|
cv2.imwrite(os.path.join(outputFolder, filename), img_res)
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user