removed debug prints
This commit is contained in:
parent
baaee6f5b7
commit
2aced51dfd
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user