Skip to content

Commit

Permalink
Added noise removal and barycenter search
Browse files Browse the repository at this point in the history
  • Loading branch information
mcampestri committed Mar 13, 2020
1 parent 6155ae8 commit 37ba55e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def precompute_box_features():

def preprocess_box(b):
pr_box = b.copy()
# Preprocessing (box image)
pr_box = image_processing.convert_grayscale(pr_box)
pr_box = image_processing.equalize_histogram(pr_box)
if pr_box.shape[0] >= 300:
Expand Down
6 changes: 3 additions & 3 deletions src/prove.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def prove():
cv2.circle(result, c, 20, (0,0,255), 3)
cv2.circle(result, c, 3, (0,255,0), -1)

#visualization.display_img(image_processing.resize_img(barycenter_accumulator.astype(np.uint8), 2))
visualization.display_img(image_processing.resize_img(result, 2))
visualization.display_img(result)

prove()

prove()

0 comments on commit 37ba55e

Please sign in to comment.