Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -167,7 +167,7 @@ def crop_face_to_square(image_rgb, padding_ratio=0.2, height_multiplier=1.5):
|
|
167 |
|
168 |
cropped_image = image_rgb[top_left_y:bottom_right_y, top_left_x:bottom_right_x]
|
169 |
|
170 |
-
resized_image = cv2.resize(cropped_image, (768,
|
171 |
|
172 |
return resized_image
|
173 |
|
|
|
167 |
|
168 |
cropped_image = image_rgb[top_left_y:bottom_right_y, top_left_x:bottom_right_x]
|
169 |
|
170 |
+
resized_image = cv2.resize(cropped_image, (768, 768*height_multiplier), interpolation=cv2.INTER_AREA)
|
171 |
|
172 |
return resized_image
|
173 |
|