developer0hye / Yolo_Label

GUI for marking bounded boxes of objects in images for training neural network YOLO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

saving box coords are wrong

birolkuyumcu opened this issue · comments

saving coords with this code

_> double midX = objBox.box.x() + objBox.box.width() / 2.;

        double midY     = objBox.box.y() + objBox.box.height() / 2.;
        double width    = objBox.box.width();
        double height   = objBox.box.height();_

but in Yolo


Where x, y, width, and height are relative to the image's width and height.

not from mid

In Yolo, x and y mean the center position of object.