from PIL import Image, ImageDraw
# Load the group photo
group_img = Image.open("group_photo.jpg")
# Coordinates to draw the rectangle around the identified person
# (left, top, right, bottom) — adjust if needed
highlight_coords = (620, 300, 680, 380)
# Draw a red rectangle
draw = ImageDraw.Draw(group_img)
draw.rectangle(highlight_coords, outline="red", width=5)
# Save or show the result
group_img.show() # or use group_img.save("highlighted_group.jpg")