supervision
supervision copied to clipboard
Enhance `sv.LabelAnnotator` by adding argument for round edges
Search before asking
- [X] I have searched the Supervision issues and found no similar feature requests.
Description
In sv.LabelAnnotator
an attribute that will apply round edges to the label box can be added for prettier labels.
I have modified the annotator by adding an attribute:
round_edges
: bool = True
Use case
Better visualization results.
Additional
No response
Are you willing to submit a PR?
- [X] Yes I'd like to help by submitting a PR!
Hi @xaristeidou 👋🏻 I think it's a cool idea, but I would replace round_edges
with corner_radious
.
@SkalskiP So for corner_radius
I assume that it will be integer and if the value is higher than the half of the lower dimension (height or width) of the box, it should be clipped?
@SkalskiP Accidentally closed it.
@xaristeidou
So for
corner_radius
I assume that it will be integer and if the value is higher than the half of the lower dimension (height or width) of the box, it should be clipped?
Exactly!
Accidentally closed it.
Don't worry, it happens to me all the time.
@SkalskiP Ok, I will proceed with it and come back when ready.
I close the issue, implemented in PR #1037
Thanks for your help @xaristeidou 🙏🏻