Python Forum
Crop Image to Bounding Box Coordinates
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Crop Image to Bounding Box Coordinates
#2
(Jul-17-2020, 03:32 PM)sallyjc81 Wrote: How can I create a unique output filename?
You can append the bbox specification to each filename, e.g.

im.save(f"{output}-subimage-{row[1]}_{row[2]}_{row[3]}_{row[4]}.png")
Reply


Messages In This Thread
RE: Crop Image to Bounding Box Coordinates - by scidam - Jul-18-2020, 04:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Draw bounding boxes on live feed Jerome 0 468 Jan-20-2024, 10:50 PM
Last Post: Jerome
  Get the image's coordinates not the canvas' when navigate on an image hobbyist 9 2,033 Jul-21-2022, 03:29 PM
Last Post: deanhystad
  How to crop a video to 9:16? yschrs 3 2,805 May-14-2022, 06:48 AM
Last Post: yschrs
  How to crop eyes/nose/mouth in the face only? [OpenCV] buzzdarkyear 0 2,297 Jan-11-2022, 01:41 PM
Last Post: buzzdarkyear
  How to extract (x,y) coordinates of the boundary of a .tif image? Pythonista 23 17,162 Feb-18-2017, 09:17 AM
Last Post: merlem

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020