Spaces:
Running
Running
Commit
·
c28eeae
1
Parent(s):
633711e
Updated utils.py
Browse files
utils.py
CHANGED
@@ -36,7 +36,7 @@ async def detect_faces_frame(detector, frame=None):
|
|
36 |
|
37 |
for i, box in enumerate(boxes):
|
38 |
x1, y1, x2, y2 = box.astype(int)
|
39 |
-
padding = int((x2 - x1) * 0.
|
40 |
height, width = frame.shape[:2]
|
41 |
|
42 |
x1_pad = max(0, x1 - padding)
|
|
|
36 |
|
37 |
for i, box in enumerate(boxes):
|
38 |
x1, y1, x2, y2 = box.astype(int)
|
39 |
+
padding = int((x2 - x1) * 0.3)
|
40 |
height, width = frame.shape[:2]
|
41 |
|
42 |
x1_pad = max(0, x1 - padding)
|