freealise commited on
Commit
cfb10f4
1 Parent(s): c68c8cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -398,7 +398,9 @@ def apply_mask(d, b):
398
  global frame_selected
399
  global masks
400
  global depths
 
401
 
 
402
  mask = cv2.cvtColor(d["layers"][0], cv2.COLOR_RGBA2GRAY)
403
  dilation = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (2 * b + 1, 2 * b + 1), (b, b))
404
  mask = cv2.dilate(mask, dilation)
 
398
  global frame_selected
399
  global masks
400
  global depths
401
+ global edge
402
 
403
+ edge = []
404
  mask = cv2.cvtColor(d["layers"][0], cv2.COLOR_RGBA2GRAY)
405
  dilation = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (2 * b + 1, 2 * b + 1), (b, b))
406
  mask = cv2.dilate(mask, dilation)