Spaces:
Runtime error
Runtime error
DerrylNessie
commited on
Commit
•
303d9fc
1
Parent(s):
2ad20b3
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def draw_boxes(img, bounds, color='yellow', width=2):
|
|
25 |
for bound in bounds:
|
26 |
pts = np.array([bound[0]], np.int32)
|
27 |
pts = pts.reshape((-1,1,2))
|
28 |
-
cv.fillPoly(
|
29 |
return (mask)
|
30 |
|
31 |
def draw_mask(img, bounds):
|
|
|
25 |
for bound in bounds:
|
26 |
pts = np.array([bound[0]], np.int32)
|
27 |
pts = pts.reshape((-1,1,2))
|
28 |
+
cv.fillPoly(mask, pts, color =(255,255,255))
|
29 |
return (mask)
|
30 |
|
31 |
def draw_mask(img, bounds):
|