From fd37af8b938f26841aef804efab66cb991870672 Mon Sep 17 00:00:00 2001 From: yiannisha Date: Wed, 24 Apr 2024 19:32:47 +0300 Subject: [PATCH] Change opening iterations value --- 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 2536d88..c1c3579 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=16) + dst = cv2.morphologyEx(dst, cv2.MORPH_OPEN, kernel, iterations=15) img = dst