removed debug prints

This commit is contained in:
Matthias Bisping 2022-02-04 17:44:02 +01:00
parent baaee6f5b7
commit 2aced51dfd

View File

@ -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)