進入要安裝的環境:conda activate pytorch

安裝PyQt5(python3及以上更建議安裝PyQt5)
conda install pyqt=5或者pip install PyQt5

安裝lxml
conda install -c anaconda lxml或者pip install lxml

下載labelling到本地
下載鏈接:https://github.com/tzutalin/labelImg(安裝方法也參考自該鏈接)
在準備放置labeling 的檔案夾下打開git bash

輸入:
git clone https://gitclone.com/github.com/tzutalin/labelImg
(也可以直接點進去鏈接下載)

這里在鏈接中加入gitclone.com/使下載速度變快
進入到剛剛下載的檔案夾中

輸入:
pyrcc5 -o libs/resources.py resources.qrc
python labelImg.py

即可彈出labelling 頁面

使用labelling:
打開檔案夾:

創建矩形,框住目標(pascal voc格式為例):

保存:


查看.xml檔案
有原圖片名稱路徑大小和bndbox(矩形框的左上和右下位置),若圖片中有多個矩形框,那么檔案中就有多個object

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/229184.html
標籤:python
上一篇:cgb2008-京淘day06
