Spaces:
Runtime error
Runtime error
Commit
·
cc6f2b9
1
Parent(s):
9240006
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,7 @@ def midpoint(x1, y1, x2, y2):
|
|
24 |
def draw_mask(img, bounds):
|
25 |
mask = np.zeros(img.shape[:2], dtype="uint8")
|
26 |
for bound in bounds:
|
|
|
27 |
|
28 |
x0, y0 = box0
|
29 |
x1, y1 = box1
|
|
|
24 |
def draw_mask(img, bounds):
|
25 |
mask = np.zeros(img.shape[:2], dtype="uint8")
|
26 |
for bound in bounds:
|
27 |
+
box0, box1, box2, box3 = bound[0]
|
28 |
|
29 |
x0, y0 = box0
|
30 |
x1, y1 = box1
|