Made dim bigger
Browse files- 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.
|
| 39 |
-
box_height = (bottom - top) * 1.
|
| 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)
|