Spaces:
Sleeping
Sleeping
change mask adding to list
Browse files
app.py
CHANGED
@@ -180,7 +180,6 @@ def track_and_mask(vid, original_frame, masked_frame):
|
|
180 |
|
181 |
mask = mask.astype(np.uint8) # convert to an unsigned byte
|
182 |
mask = mask * 255
|
183 |
-
mask_list.append(mask)
|
184 |
cv2.polylines(frame, [np.int0(location).reshape(
|
185 |
(-1, 1, 2))], True, (0, 255, 0), 3)
|
186 |
|
|
|
180 |
|
181 |
mask = mask.astype(np.uint8) # convert to an unsigned byte
|
182 |
mask = mask * 255
|
|
|
183 |
cv2.polylines(frame, [np.int0(location).reshape(
|
184 |
(-1, 1, 2))], True, (0, 255, 0), 3)
|
185 |
|