# Let's crop the face region from Frame 2 for better clarity in face recognition
from PIL import ImageDraw
# Load Frame 2
frame_path = saved_frames[2] # frame_2.jpg
image = Image.open(frame_path)
# For now, crop a central region manually (approximate location for demo purposes)
width, height = image.size
left = int(width * 0.35)
top = int(height * 0.2)
right = int(width * 0.65)
bottom = int(height * 0.7)
face_crop = image.crop((left, top, right, bottom))
face_crop_path = "/mnt/data/cropped_face.jpg"
face_crop.save(face_crop_path)
face_crop.show()