Omnibus commited on
Commit
4762235
Β·
1 Parent(s): 72ab8e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -210,16 +210,8 @@ def blur_im(img,bounds):
210
  h = int(p2[1]) - int(y)
211
  p0 = (int(p0[0]),int(p0[1]))
212
  p2 = (int(p2[0]),int(p2[1]))
213
- im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w])
214
- #im[p0, p2] = cv2.GaussianBlur(im[p0, p2] ,(51,51),0)
215
- #ROI = image[y:y+h, x:x+w]
216
- #blur = cv2.GaussianBlur(ROI, (51,51), 0)
217
-
218
- # Insert ROI back into image
219
- #image[y:y+h, x:x+w] = blur
220
-
221
-
222
-
223
  return im
224
 
225
  def draw_boxes(image, bounds, color='blue', width=1):
 
210
  h = int(p2[1]) - int(y)
211
  p0 = (int(p0[0]),int(p0[1]))
212
  p2 = (int(p2[0]),int(p2[1]))
213
+ im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w],(51,51),0)
214
+
 
 
 
 
 
 
 
 
215
  return im
216
 
217
  def draw_boxes(image, bounds, color='blue', width=1):