From e346038589d90bfd9d1365768cbac4dff196d27d Mon Sep 17 00:00:00 2001 From: mcreng Date: Sun, 13 Jan 2019 01:40:53 +0800 Subject: [PATCH] further improved situation mentioned in commit f000fe8 --- im_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/im_generator.py b/im_generator.py index 4f4c0bf..ebe6491 100644 --- a/im_generator.py +++ b/im_generator.py @@ -51,7 +51,7 @@ def remove_background(img): img[thresh == 255] = 0 - kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (13, 13)) + kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (17, 17)) erosion = cv2.erode(img, kernel, iterations=1) erosion_gray = cv2.cvtColor(erosion, cv2.COLOR_BGR2GRAY)