This is from an annotations file for an image:
0 0.6142131979695431 0.336 0.467005076142132 0.392
The first zero is the class label. 0.6142131979695431 and 0.336 are the xy coordinates of the bounding box. 0.467005076142132 and 0.392 are the width and the height of the bounding box. However, what I don't get is why the x, y, width and height are in a [0,1] float. Someone told me that its a percentage but a percentage relative to what?
For example. I am writing software that builds a synthetic dataset. This is one training image I produced. It has the bounding boxes around the objects I want to detect.
The bounding boxes wrap the Wizards and Ubuntu logos perfectly. So how can I annotate them like the format above?

