Spaces:
Runtime error
Runtime error
DerrylNessie
commited on
Commit
•
6ea63d9
1
Parent(s):
895c20f
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def draw_mask(img, bounds):
|
|
43 |
thickness = int(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
|
44 |
|
45 |
cv.line(mask, (x_mid0, y_mid0), (x_mid1, y_mi1), 255, thickness)
|
46 |
-
img = cv.inpaint(img, mask, 1, cv.
|
47 |
|
48 |
return(img)
|
49 |
|
|
|
43 |
thickness = int(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
|
44 |
|
45 |
cv.line(mask, (x_mid0, y_mid0), (x_mid1, y_mi1), 255, thickness)
|
46 |
+
img = cv.inpaint(img, mask, 1, cv.INPAINT_NS)
|
47 |
|
48 |
return(img)
|
49 |
|