From cf7fe74d750e2ad79089931d5f72ffbf3eb32f23 Mon Sep 17 00:00:00 2001 From: Erick Date: Thu, 30 Jun 2022 19:09:40 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b537e3..bff49c9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# opencv-resizer -Image resizer script with OpenCV for ML input homogenization +# Image Manipulation Tools +Collection of useful scripts for image manipulation for dataset/ML usage + +## Image Resizer +Resize a set of images to a given resolution (default: 640x640px) and save them separately. From f767a1c78077eae9d8605e42404c0ea1ec995346 Mon Sep 17 00:00:00 2001 From: Erick Date: Thu, 30 Jun 2022 19:12:15 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bff49c9..4e461b9 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ Collection of useful scripts for image manipulation for dataset/ML usage ## 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. \ No newline at end of file From 9d07f243b7a1c6eb74748c18738aaf52a142a7b6 Mon Sep 17 00:00:00 2001 From: Erick Date: Thu, 30 Jun 2022 19:24:57 +0200 Subject: [PATCH 3/3] Remove unused dependency --- src/img-resizer/img-resizer.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/img-resizer/img-resizer.py b/src/img-resizer/img-resizer.py index fae8efb..b9d8306 100644 --- a/src/img-resizer/img-resizer.py +++ b/src/img-resizer/img-resizer.py @@ -1,7 +1,6 @@ import numpy as np import cv2 import os -from matplotlib import pyplot as plt inputFolder = os.path.join(os.getcwd(), 'dataset', 'dataset-original') outputFolder = os.path.join(os.getcwd(), 'dataset', 'dataset-resized') @@ -16,7 +15,4 @@ for filename in os.listdir(inputFolder): img_res = cv2.resize(img_org, resolution) cv2.imwrite(os.path.join(outputFolder, filename), img_res) else: - continue - -#debug string -print(cv2.__version__) \ No newline at end of file + continue \ No newline at end of file