Omnibus commited on
Commit
b4b147f
Β·
1 Parent(s): 215d546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -204,7 +204,9 @@ def blur_im(img,bounds):
204
  im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB)
205
  for bound in bounds:
206
  p0, p1, p2, p3 = bound[0]
207
- im[p1, p3] = cv2.blur(im[p1, p3] ,(23,23))
 
 
208
  return im
209
 
210
  def draw_boxes(image, bounds, color='blue', width=1):
 
204
  im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB)
205
  for bound in bounds:
206
  p0, p1, p2, p3 = bound[0]
207
+ p0 = (int(p0[0]), int(p0[1]))
208
+ p2 = (int(p2[0]), int(p2[1]))
209
+ im[p0, p2] = cv2.blur(im[p0, p2] ,(23,23))
210
  return im
211
 
212
  def draw_boxes(image, bounds, color='blue', width=1):