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

change threshold to 100

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -177,12 +177,12 @@ 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 < 100:
181
  is_good = False
182
  if is_good:
183
  good_centers.append(point)
184
 
185
- return fig, mask_counter, good_centers
186
 
187
  demo = gr.Interface(count_barnacles,
188
  inputs=[
 
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 < 200:
181
  is_good = False
182
  if is_good:
183
  good_centers.append(point)
184
 
185
+ return fig, len(good_centers), good_centers
186
 
187
  demo = gr.Interface(count_barnacles,
188
  inputs=[