Convert segmentation bounds to detection bounds

Is there a quick/batch way to convert segmentation bounds to detection bounds in a detection project?

do you mean converting segmentation into Bounding Boxes ?
if yes , then…
a Three dots at the Upper Right Direction click on it and you will find methods to convert masks into polygons and other solutions
this is intended if you already uploaded the dataset into roboflow
if not just implement it yourself then upload it

The annotation editor has a β€œConvert…” submenu (via the image ... overflow menu) with these options:

Action Scope Location
Polygon β†’ Box (individual) Single annotation Right-click context menu β†’ convertToBox()
Mask β†’ Box (individual) Single annotation Right-click context menu β†’ convertToBox()
All Polygons β†’ Boxes All annotations on current image ... menu β†’ Convert β†’ convertAllPolygonsToBoxes()
All Polygons β†’ Merged Boxes (per class) All annotations on current image ... menu β†’ Convert β†’ convertAllPolygonsToBoxesMerged()
All Masks β†’ Boxes All annotations on current image ... menu β†’ Convert β†’ convertAllMasksToBoxes()

(there is no batch/bulk way to do this)

Is that what you’re looking for?

Ah thank you! Yeah the Polygon β†’ Box.

But is there a bulk conversion for all my images?

you then should do Automation , use playwright
you can check my linkedin I did a relative task using Automation with Python and Playwright
Linkedin Post : Automating Image Annotation Workflows with Roboflow | Ahmed ElBamby posted on the topic | LinkedIn

Github Repo : LinkedIn

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.