Xuanyou commited on
Commit
21c98c6
·
verified ·
1 Parent(s): 8de3284

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, 1024), interpolation=cv2.INTER_AREA)
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