Skip to content
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

Add bounding box label drawing #545

Merged
merged 1 commit into from
Jan 7, 2020
Merged

Add bounding box label drawing #545

merged 1 commit into from
Jan 7, 2020

Conversation

aleju
Copy link
Owner

@aleju aleju commented Jan 1, 2020

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 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.
@codecov-io
Copy link

codecov-io commented Jan 1, 2020

Codecov Report

Merging #545 into master will increase coverage by 0.02%.
The diff coverage is 97.4%.

@@            Coverage Diff             @@
##           master     #545      +/-   ##
==========================================
+ Coverage   96.33%   96.36%   +0.02%     
==========================================
  Files          37       37              
  Lines       13369    13445      +76     
==========================================
+ Hits        12879    12955      +76     
  Misses        490      490

@aleju aleju merged commit 466fc0c into master Jan 7, 2020
@aleju aleju deleted the bb_labels branch January 7, 2020 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants