From 588126ddb66a5204c9da4be8bb5c5c02d1c5e4fd Mon Sep 17 00:00:00 2001 From: yiannisha Date: Wed, 24 Apr 2024 15:29:03 +0300 Subject: [PATCH] change opening iterations --- cv_bottle_detection/detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv_bottle_detection/detector.py b/cv_bottle_detection/detector.py index 20bb3a6..23fc8d3 100644 --- a/cv_bottle_detection/detector.py +++ b/cv_bottle_detection/detector.py @@ -281,7 +281,7 @@ def detect_bottles(self, img: np.array, _preproc: bool = True, _return_bboxes=Fa # opening kernel = np.ones((3, 3), np.uint8) - dst = cv2.morphologyEx(dst, cv2.MORPH_OPEN, kernel, iterations=10) + dst = cv2.morphologyEx(dst, cv2.MORPH_OPEN, kernel, iterations=18) img = dst