我试图开发某种方法来在格式之间转换注释,并且很难找到信息,但在这里我有:
这是PASCAL VOC
<width>800</width>
<height>450</height>
<depth>3</depth>
<bndbox>
<xmin>474</xmin>
<ymin>2</ymin>
<xmax>726</xmax> <!-- shape_width = 252 -->
<ymax>449</ymax> <!-- shape_height = 447 -->
</bndbox>
Run Code Online (Sandbox Code Playgroud)
转换为YOLO 暗网
2 0.750000 0.501111 0.315000 0.993333
Run Code Online (Sandbox Code Playgroud)
注意开头2它是一个类别