From 2aced51dfddcfc9534ec9215529f94428e8f7b8a Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Fri, 4 Feb 2022 17:44:02 +0100 Subject: [PATCH] removed debug prints --- box_detection/box_detection.py | 1 - 1 file changed, 1 deletion(-) diff --git a/box_detection/box_detection.py b/box_detection/box_detection.py index 28adb2f..e1192a1 100644 --- a/box_detection/box_detection.py +++ b/box_detection/box_detection.py @@ -32,7 +32,6 @@ def find_redactions(image: np.array, min_nomralized_area=200000): gray = ~cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blurred = cv2.GaussianBlur(gray, (5, 5), 1) - plt.imshow(blurred) thresh = cv2.threshold(blurred, 252, 255, cv2.THRESH_BINARY)[1] contours, hierarchies = cv2.findContours(thresh.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)