大家好,又见面了,我是你们的朋友全栈君。
安装 Anaconda 之后,在开始菜单下找到 Anaconda 文件夹 找到 Anaconda Prompt 点击运行
pip install labelImg #直接命令行输入
labelImg #直接命令行输入名称即可
注意:(因为使用cv2.imread读取图像,路径中不能有中文) 特别注意: 路径有中文也会导致图片和xml文件匹配不上,labelimg上不显示框
快捷键:W(创建方框),A(上一张),D(下一张)
XML文件示例
<annotation>
<folder>夜读</folder>
<filename>6b6e567cgy1fpsj8k953nj20rs0roq5w.jpg</filename>
<path>C:\Users\Chengguo\Pictures\夜读\6b6e567cgy1fpsj8k953nj20rs0roq5w.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>690</width>
<height>687</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>person</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>371</xmin>
<ymin>259</ymin>
<xmax>637</xmax>
<ymax>522</ymax>
</bndbox>
</object>
</annotation>
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/147971.html原文链接:https://javaforall.cn