Spaces:
Runtime error
Runtime error
Commit
•
32d36e6
1
Parent(s):
cd02c9c
Update app.py
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ def draw_mask(img, bounds):
|
|
44 |
thickness = int(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
|
45 |
|
46 |
cv.line(mask, (x_mid0, y_mid0), (x_mid1, y_mi1), 255, thickness)
|
47 |
-
|
48 |
|
49 |
-
return(
|
50 |
|
51 |
def inference(img, lang):
|
52 |
if lang == "english":
|
|
|
44 |
thickness = int(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
|
45 |
|
46 |
cv.line(mask, (x_mid0, y_mid0), (x_mid1, y_mi1), 255, thickness)
|
47 |
+
img = cv.inpaint(img, mask, 1, cv.INPAINT_NS)
|
48 |
|
49 |
+
return(img)
|
50 |
|
51 |
def inference(img, lang):
|
52 |
if lang == "english":
|