microsoft / VoTT

Visual Object Tagging Tool: An electron app for building end to end Object Detection Models from Images and Videos.
MIT License
4.28k stars 834 forks source link

Wrong bndbox coordinate #923

Open shuaxinkong opened 4 years ago

shuaxinkong commented 4 years ago

Describe the bug For images with width 640, the x coordinates of the bndbox in Pascal VOC annotaion file can be 0 and 640, which should only range from 0 to 639 or 1 to 640!

Annotation example

<size>
        <width>640</width>
        <height>480</height>
        <depth>3</depth>
</size>

<bndbox>
        <xmin>0</xmin>
        <ymin>232.55614581592582</ymin>
        <xmax>13.322651161698396</xmax>
        <ymax>249.49733795329212</ymax>
</bndbox>

<bndbox>
        <xmin>618.6933730742735</xmin>
        <ymin>220.74866310160428</ymin>
        <xmax>640</xmax>
        <ymax>234.60962958514372</ymax>
</bndbox>

Desktop:

krishnak commented 4 years ago

Do you know how to get <ymin>232</ymin> or <ymin>233</ymin> instead of <ymin>232.55614581592582</ymin>