Spaces:
Runtime error
Runtime error
Commit
•
df45ea5
1
Parent(s):
f459ff6
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ def draw_mask(img, bounds):
|
|
39 |
|
40 |
thickness = int(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
|
41 |
|
42 |
-
|
43 |
-
img =
|
44 |
|
45 |
return(img)
|
46 |
|
|
|
39 |
|
40 |
thickness = int(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
|
41 |
|
42 |
+
cv.line(mask, (x_mid0, y_mid0), (x_mid1, y_mi1), 255, thickness)
|
43 |
+
img = cv.inpaint(img, mask, 7, cv.INPAINT_NS)
|
44 |
|
45 |
return(img)
|
46 |
|