Omnibus commited on
Commit
94abf45
β€’
1 Parent(s): c60cfa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=3)
214
 
215
- im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w],(91,91),0)
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