amirgame197 commited on
Commit
3757187
·
verified ·
1 Parent(s): 3d05a69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def circular_blur(image_path, detections, parts_to_blur):
11
  if label in parts_to_blur:
12
  x, y, width, height = map(int, detection['box'])
13
  center_x, center_y = x + width // 2, y + height // 2
14
- radius = int(min(width, height) / 2)
15
 
16
  mask = np.zeros_like(image)
17
  cv2.circle(mask, (center_x, center_y), radius, (255, 255, 255), -1)
 
11
  if label in parts_to_blur:
12
  x, y, width, height = map(int, detection['box'])
13
  center_x, center_y = x + width // 2, y + height // 2
14
+ radius = int(min(width, height))
15
 
16
  mask = np.zeros_like(image)
17
  cv2.circle(mask, (center_x, center_y), radius, (255, 255, 255), -1)