以下的错误的话
Traceback (most recent call last):
File “”, line 1059, in openPrevImg
File “”, line 876, in loadFile
File “”, line 1225, in loadPascalXMLByFilename
File “Z:\home\darrenl\tools\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\pascal_voc_io”, line 132, in init
File “Z:\home\darrenl\tools\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\pascal_voc_io”, line 161, in parseXML
AttributeError: ‘NoneType’ object has no attribute ‘text’
原因:新版本的labelimg无法读取旧版本的xml
所以只能下载新的工具了(用anaconda环境下的python)
这里是github链接,点击下载zip包
如果你的机子安装过anaconda了,就跳过下方链接,否则查看链接中的详细步骤。
深度学习标注工具LabelImg安装(Windows + Anaconda3 + python3)
1、下载之后,把labelImg-master压缩包解压到桌面
2、使用Anaconda Prompt,用cd命令进入到刚刚解压到桌面的lableImg文件夹,例如我的是:C:\Users\用户\Desktop\labelImg-master
方便复制 cd Desktop\labelImg-master