Omnibus commited on
Commit
8d09312
Β·
1 Parent(s): 1b7088d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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