当前位置:网站首页>Windos中安装labellmg教程
Windos中安装labellmg教程
2022-04-23 14:02:00 【百夜﹍悠ゼ】
labelImg安装
windows 10上安装,需要python3+Qt5组合。
这里是引用
安装Anaconda3.5.1.0 windows
链接:https://pan.baidu.com/s/1Gdaaj8El759nA7np5L6LfQ
提取码:vdka
我下载的是64位的python3.6版本。然后双击安装,一般点选“for all person”。我安装目录为D:\Anaconda3510,安装成功后建议在环境变量path里面增加anaconda环境配置“D:\Anaconda3510”。
安装lXMl、PyQt
打开命令行cmd窗口,输入conda list
,会列出所有预装的python扩展包,查看是否有lxml和pyqt。插件安装命令conda install 包名,和pip基本一致。命令行输入conda install lxml
安装lxml,命令行输入conda install pyqt=5
,等待一会即可完成PyQt5的安装。
注:也可通过python环境的 pip进行安装,pip install lxml
和 pip install pyqt5
。
lxml 4.1.1 py36hef2cd61_1
pyqt 5.6.0 py36hb5ed885_5
下载labelImg1.3.4 windows版
链接:https://pan.baidu.com/s/1bOXhxbr8Ps2cA7FoLNA3Sw
提取码:qxdu
labelImg 源码下载地址
链接:https://pan.baidu.com/s/1omGtGK572LnRIhxdXAg4Hg
提取码:mq36
我下载到D:\BaiduNetdiskDownload\loading中。解压可得到名为labelImg-master的文件夹,复制里面的resources.py文件到libs中(可先查看是否存在,存在可跳过)。
打开cmd命令窗口并进入labelImg-master的文件夹D:\BaiduNetdiskDownload\loading\labelImg-master,进入到依次输入下面语句即可打开软件。
pyrcc5 -o resources.py resources.qrc
python labelImg.py #执行后会打开软件运行窗口
使用方法
1.labelImg-master文件夹中打开data/predefined_classes.txt,添加你需要的类别,比如改成person、car、motorcycle三个类别,然后重新运行。
2.修改默认的XML文件保存位置,使用快捷键“Ctrl+R”,改为自定义位置,我是在labelImg-master文件夹下创建了xml-results文件夹,这里的路径一定不能包含中文,否则无法保存。
3.“Open Dir”打开图片文件夹,选择第一张图片开始进行标注,使用“Create RectBox”或者“Ctrl+N”开始画框,单击结束画框,再双击选择类别。完成一张图片后点击“Save”保存,此时XML文件已经保存到本地了。点击“Next Image”转到下一张图片。
4.标注过程中可随时返回进行修改,后保存的文件会覆盖之前的。
打开结果保存路径,里面保存了修改后的xml文件,该文件保存了源图片路径、图片像素大小、标注类别序号、以及标注框的左上右下两个对顶点坐标信息。
<annotation>
<folder>images</folder>
<filename>DJI_20201118093307_0018_Z.JPG</filename>
<path>C:\Users\admin\Desktop\images\DJI_20201118093307_0018_Z.JPG</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>5184</width>
<height>2916</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>Sewage pipe</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>1990</xmin>
<ymin>1507</ymin>
<xmax>3179</xmax>
<ymax>2365</ymax>
</bndbox>
</object>
</annotation>
版权声明
本文为[百夜﹍悠ゼ]所创,转载请带上原文链接,感谢
https://blog.csdn.net/AlierSnow/article/details/110438881
边栏推荐
- 关于pthread多线程一些好文章
- Universal template for scikit learn model construction
- JS force deduction brush question 103 Zigzag sequence traversal of binary tree
- SQL: How to parse Microsoft Transact-SQL Statements in C# and to match the column aliases of a view
- linux MySQL数据定时dump
- Business case | how to promote the activity of sports and health app users? It is enough to do these points well
- 微信小程序 input隐藏和不可操作的设置
- MySQL 修改主数据库
- json反序列化匿名数组/对象
- Program compilation and debugging learning record
猜你喜欢
STM32 learning record 0007 - new project (based on register version)
Decentralized Collaborative Learning Framework for Next POI Recommendation
分库分表 & ShardingSphere
3300万IOPS、39微秒延迟、碳足迹认证,谁在认真搞事情?
Choreographer full resolution
大专的我,闭关苦学 56 天,含泪拿下阿里 offer,五轮面试,六个小时灵魂拷问
烟雾传感器(mq-2)使用详细教程(基于树莓派3b+实现)
神经元与神经网络
1256: bouquet for algenon
2021年秋招,薪资排行NO
随机推荐
try --finally
微信小程序调用客服接口
FDFS start
linux MySQL数据定时dump
多重继承虚基类习题
The art of automation
Atcoder beginer contest 248c dice sum (generating function)
Node接入支付宝开放平台的沙箱实现支付功能
商家案例 | 运动健康APP用户促活怎么做?做好这几点足矣
Special test 05 · double integral [Li Yanfang's whole class]
Oracle告警日志alert.log和跟踪trace文件中文乱码显示
Introduction to spark basic operation
freeCodeCamp----arithmetic_ Arranger exercise
微信小程序通过低功耗蓝牙设备进行定位及测距(二)
crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
SQL数据库
About note 1
Function executes only the once function for the first time
elmo(BiLSTM-CRF+elmo)(Conll-2003 命名实体识别NER)
smart-doc + torna生成接口文档