Henry Scheible commited on
Commit
a2f0d58
1 Parent(s): 17cac1b

change threshold to 100

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -177,7 +177,7 @@ def count_barnacles(image_raw, split_num, progress=gr.Progress()):
177
  for point in centers:
178
  is_good = True
179
  for prev_point in good_centers:
180
- if (point[0] - prev_point[0]) ** 2 + (point[1] + prev_point[1]) ** 2 < 40:
181
  is_good = False
182
  if is_good:
183
  good_centers.append(point)
 
177
  for point in centers:
178
  is_good = True
179
  for prev_point in good_centers:
180
+ if (point[0] - prev_point[0]) ** 2 + (point[1] + prev_point[1]) ** 2 < 100:
181
  is_good = False
182
  if is_good:
183
  good_centers.append(point)