How to extract bounding boxes #959
Unanswered
Matthias1982
asked this question in
Q&A
Replies: 1 comment
-
CocoWriterUtility.py has a static method "bbox_from_binary_mask" which, as the name suggests, is calculating the bounding boxes based on instance segmentation maps which you can get from data["instance_segmaps"]. You can copy and paste it with a couple of tweaks to get the bounding boxes without dumping them into a json. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I tried as an excerise to extract bounding boxes from example "random_backgrounds". I have most probably an understanding problem.
With "write_coco_annotations" the annotations are writen in a *.json file. The json file contains among other information the bbox und the segmentation. Is there an option to extract directly without an own script only the bounding boxes? The pictures in "examples -> advances -> coco_annotations" indicates that it should be possible?
I need the bounding boxes to train a yolov8 model.
With Roboflow I do the conversion from coco to yolo format.
Thank you in advance for the support
Beta Was this translation helpful? Give feedback.
All reactions