LiangLabUMB commited on
Commit
bd02b25
·
verified ·
1 Parent(s): cc0ca2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -196,7 +196,7 @@ def draw_viability_overlay(image_np, masks, label_map):
196
  cv2.drawContours(overlay, contours, -1, color, thickness=2)
197
 
198
  ys, xs = np.where(cell_mask)
199
- if len(ys) > 0:
200
  cx, cy = int(xs.mean()), int(ys.mean())
201
  label_str = str(cell_enum[cid_int])
202
  font = cv2.FONT_HERSHEY_SIMPLEX
@@ -209,7 +209,7 @@ def draw_viability_overlay(image_np, masks, label_map):
209
  (0, 0, 0), -1)
210
  cv2.putText(overlay, label_str,
211
  (cx - tw//2, cy + th//2),
212
- font, font_scale, color, thickness, cv2.LINE_AA)
213
  return overlay
214
 
215
 
 
196
  cv2.drawContours(overlay, contours, -1, color, thickness=2)
197
 
198
  ys, xs = np.where(cell_mask)
199
+ """ if len(ys) > 0:
200
  cx, cy = int(xs.mean()), int(ys.mean())
201
  label_str = str(cell_enum[cid_int])
202
  font = cv2.FONT_HERSHEY_SIMPLEX
 
209
  (0, 0, 0), -1)
210
  cv2.putText(overlay, label_str,
211
  (cx - tw//2, cy + th//2),
212
+ font, font_scale, color, thickness, cv2.LINE_AA) """
213
  return overlay
214
 
215