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