-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drawn bounding box labels #519
Comments
Currently this is not available in an easy function call. It has been requested in the past and is a todo since quite a while. There just wasn't the time available to add it yet. |
This patch adds automatic drawing of BB labels upon calls of `BoundingBox.draw_on_image()` and `BoundingBoxesOnImage.draw_on_image()`. This resolves issues #519 and #195. * Add method `imgaug.augmentables.BoundingBox.draw_label_on_image()`. * Add method `imgaug.augmentables.BoundingBox.draw_box_on_image()`. * Change method `imgaug.augmentables.BoundingBox.draw_on_image()` to automatically draw a bounding box's label.
This feature was recently added to the library in 0.4.0. Bounding box labels are now automatically drawn (so long as the bounding box has a label). |
Hi,
When initializing an object using the BoundingBox class an option to store a
label
parameter is available. However, an option to then draw this label onto an image together with the bounding box, using the method draw_on_image is not an option. This presents an issue when drawing bounding boxes onto an image that contains multiple objects.Is there a way to get these labels drawn onto an image using the
imgaug
library, or is there a plan to add this functionality in the near future.Thanks!
The text was updated successfully, but these errors were encountered: