EngAbod commited on
Commit
a3f864c
·
verified ·
1 Parent(s): 0532f2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -215,7 +215,8 @@ if picture:
215
  expanded_h = min(expanded_h, frm.shape[0] - expanded_y)
216
 
217
  # Extract the expanded face area
218
- face_img = frm[expanded_y:expanded_y + expanded_h, expanded_x:expanded_x + expanded_w]
 
219
 
220
  # Now, 'face_img' contains the largest face. You can process it further as needed.
221
  if np.array(face_img).size != 0 :
 
215
  expanded_h = min(expanded_h, frm.shape[0] - expanded_y)
216
 
217
  # Extract the expanded face area
218
+ # face_img = frm[expanded_y:expanded_y + expanded_h, expanded_x:expanded_x + expanded_w]
219
+ face_img = frm[y:y + h, x:x + w]
220
 
221
  # Now, 'face_img' contains the largest face. You can process it further as needed.
222
  if np.array(face_img).size != 0 :