Spaces:
Running
Running
Update app.py
Browse files
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)
|