Tuesday 21 November 2023

Google Colab Annotate

The bounding box coordinates of the colab_utils.annotate is:

np.array([[0.41941667, 0.08333333, 0.89941667, 0.7296875]], dtype=np.float32),

This is the bounding box coordinates of apps like labelImg:

<bndbox>
            <xmin>948</xmin>
            <ymin>537</ymin>
            <xmax>1416</xmax>
            <ymax>650</ymax>
</bndbox>

Question: is the coordinates of google colab normalised according to the pixels of the image? like this:?

# Bounding box coordinates
xmin = 948
ymin = 537
xmax = 1416
ymax = 650

# Image dimensions
width = 1920
height = 1080

# Compute normalized coordinates
xmin_norm = xmin / width
ymin_norm = ymin / height
xmax_norm = xmax / width
ymax_norm = ymax / height


from Google Colab Annotate

No comments:

Post a Comment