79699538

Date: 2025-07-12 19:56:02
Score: 1.5
Natty:
Report link

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")

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abolfazl