Spaces:
Runtime error
Runtime error
Commit
•
2ad20b3
1
Parent(s):
137d498
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.
|
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(image, pts, color =(255,255,255))
|
29 |
return (mask)
|
30 |
|
31 |
def draw_mask(img, bounds):
|