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)