Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|
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)
|