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

Commit

Permalink
Merge pull request #6 from uavaustin/dilate_edges
Browse files Browse the repository at this point in the history
Added value for kernel
  • Loading branch information
bbridges authored Oct 21, 2018
2 parents a8bae9a + 691fd8e commit 6f3c043
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 6f3c043

Please sign in to comment.