from PIL import Image
# Load the image
img_path = 'path_to_your_image.jpg'
img = Image.open(img_path)
# You can manually crop or use inpainting techniques to remove the person
# Example of cropping (this part can be customized to your needs)
cropped_img = img.crop((left, top, right, bottom))
# Save the edited image
cropped_img.save('edited_image.jpg')
# Optionally, display the result
cropped_img.show()