bytchew commited on
Commit
93c0419
·
verified ·
1 Parent(s): 43e1505

Made dim bigger

Browse files
Files changed (1) hide show
  1. face_detection.py +2 -2
face_detection.py CHANGED
@@ -35,8 +35,8 @@ def getCroppedImages(image: Image.Image, cap = -1):
35
  center_x = (left + right) / 2
36
  center_y = (top + bottom) / 2
37
  # Expanded dimensions
38
- box_width = (right - left) * 1.3
39
- box_height = (bottom - top) * 1.3
40
  new_left = int(center_x - box_width / 2)
41
  new_right = int(center_x + box_width / 2)
42
  new_top = int(center_y - box_height / 2)
 
35
  center_x = (left + right) / 2
36
  center_y = (top + bottom) / 2
37
  # Expanded dimensions
38
+ box_width = (right - left) * 1.6
39
+ box_height = (bottom - top) * 1.6
40
  new_left = int(center_x - box_width / 2)
41
  new_right = int(center_x + box_width / 2)
42
  new_top = int(center_y - box_height / 2)