Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Added value for kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
paigenwilliams committed Oct 21, 2018
1 parent 47b934e commit 691fd8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target_finder/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def find_blobs(image, min_width=20, max_width=100, limit=100, padding=20):
# Find the edges in the image.
cv_image = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
edges = cv2.Canny(cv_image, 200, 500)
kernel = np.ones((3, 3), np.uint8)
edges = cv2.dilate(edges, kernel, 1)
edges = cv2.erode(edges, kernel, 1)

Expand Down

0 comments on commit 691fd8e

Please sign in to comment.