Skip to content

Auto-Annotation Tool Generates Bounding Boxes Slightly Outside Image Boundaries #375

@Gpaio574

Description

@Gpaio574

While using the auto-annotation feature, I encountered an issue where the bounding boxes generated by the tool sometimes extend slightly outside the image boundaries, particularly near the edges of the images. Despite the bounding box values being normalized between 0 and 1 (as expected in YOLO format), this results in bounding boxes that don't correctly enclose the object within the image.

Image Format: 640x640

In some cases, the bounding box extends slightly beyond the image boundaries, which can be seen in the exported YOLO annotations. Here’s an example of a bugged annotation (normalized YOLO format):

Observed Behavior:
0 0.293685 0.634304 0.587370 0.731392

Upon manual adjustment, the corrected version is:
0 0.293685 0.628883 0.587370 0.742233

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions