美文网首页ROS机器人系统
目标检测中,无目标的图像如何标定处理?

目标检测中,无目标的图像如何标定处理?

作者: yuanthu | 来源:发表于2021-08-10 21:00 被阅读0次

我使用的是LabelImg做为目标标注,当所拍摄图像没有特定目标出现时,不会生成相应的xml文件,我们可以将抛弃,或,希望生成xml就将其设为verify image,这样会在该图周围生成绿色边缘,生成一下xml,


AA8B602D-2008-4B42-810B-E8E924E42B2D.jpeg

由于verify image会将其设置为<annotation verified="yes">,如果不想其为 验证 图,把开头的<annotation verified="yes">改为<annotation>,最后如下:

<annotation>
    <folder>train</folder>
    <filename>Img_309.jpg</filename>
    <path>D:\BaiduNetdiskDownload\train\Img_309.jpg</path>
    <source>
        <database>Unknown</database>
    </source>
    <size>
        <width>640</width>
        <height>480</height>
        <depth>3</depth>
    </size>
    <segmented>0</segmented>
</annotation>

这样就生成空的xml,再用脚本生成csv就可以啦。

相关文章

网友评论

    本文标题:目标检测中,无目标的图像如何标定处理?

    本文链接:https://www.haomeiwen.com/subject/vymfbltx.html