You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensures that the label box does not extend beyond the image.
Automatically adjust the position of overlapping labels to prevent them from overlapping.
The algorithm boils down to locating overlapping label boxes and then calculating the direction of vectors to push the labels apart. This process may require an iterative approach, as moving label boxes can lead to new overlaps with other label boxes.
Importantly, the bounding box remains in the same place, only the label boxes are moved. It would be great if, after the shift, the label and its original position were connected by a line.
Examples of incorrect behavior
Examples of expected behavior
vertex-label-annotator-v1-optimized.mp4
Here's the Google Colab I used to experiment with this feature.
Additional
Note: Please share a Google Colab with minimal code to test the new feature. We know it's additional work, but it will speed up the review process. The reviewer must test each change. Setting up a local environment to do this is time-consuming. Please ensure that Google Colab can be accessed without any issues (make it public). Thank you! 🙏🏻
The text was updated successfully, but these errors were encountered:
Description
Overlapping labels are a common issue, especially in crowded scenes. Let's add an optional smart label positioning feature to the
LabelAnnotator
,RichLabelAnnotator
, andVertexLabelAnnotator
that:The algorithm boils down to locating overlapping label boxes and then calculating the direction of vectors to push the labels apart. This process may require an iterative approach, as moving label boxes can lead to new overlaps with other label boxes.
Importantly, the bounding box remains in the same place, only the label boxes are moved. It would be great if, after the shift, the label and its original position were connected by a line.
Examples of incorrect behavior
Examples of expected behavior
vertex-label-annotator-v1-optimized.mp4
Here's the Google Colab I used to experiment with this feature.
Additional
The text was updated successfully, but these errors were encountered: