intuitive262 commited on
Commit
08d6957
·
1 Parent(s): a99b38e

Updated utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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.3)
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.8)
40
  height, width = frame.shape[:2]
41
 
42
  x1_pad = max(0, x1 - padding)