HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.77k stars 6.31k forks source link

What's the meaning of xmin, ymin, xmax and ymax in the .xml file? #418

Open Avalon7 opened 5 years ago

Avalon7 commented 5 years ago
oweniverson commented 5 years ago

Technically, it's telling the ingesting algorithm exactly what sections of the photo to look at and then apply the corresponding label to that particular region.

I also use these values (from the XML, pulled into Excel) to determine where I might have label boxes smaller than 32x32 px. image

bugfoot commented 5 years ago

It seems that for xmin, ymin, xmax, and ymax, the x and y coordinates start from 1 - could you confirm this? Many image processing tools and libraries set the upper left corner to be x = 0 and y = 0, labelImg seems to set it to x = 1 and y = 0. A related question is whether xmax and ymax values are still considered to be inside the image or the first lower right pixel that is outside of it.