Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,6 +208,9 @@ def blur_im(img,bounds):
|
|
| 208 |
y = int(p0[1])
|
| 209 |
w = int(p2[0]) - int(x)
|
| 210 |
h = int(p2[1]) - int(y)
|
|
|
|
|
|
|
|
|
|
| 211 |
im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w],(91,91),0)
|
| 212 |
|
| 213 |
return im
|
|
|
|
| 208 |
y = int(p0[1])
|
| 209 |
w = int(p2[0]) - int(x)
|
| 210 |
h = int(p2[1]) - int(y)
|
| 211 |
+
kernel = np.ones((5, 5), np.uint8)
|
| 212 |
+
im = cv2.erode(im, kernel, iterations=3)
|
| 213 |
+
|
| 214 |
im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w],(91,91),0)
|
| 215 |
|
| 216 |
return im
|