์กธ์์ด์ ์๋ฐฉ์ ์ํ ์ด์ ์ ์ํ ์ ๋ณด (ํต์ ํ๊ฒฝ) ๋ฐ์ดํฐ ๊ฐ๊ณต์ ์ํ ์ด๋ ธํ ์ด์ ๋๊ตฌ.
LabelImg ๊ธฐ๋ฐ์ผ๋ก ์์ฑ๋์ด, JSON ํ์์ผ๋ก ์ด๋ ธํ ์ด์ ์ ์ ์ฅํฉ๋๋ค.
LabelImg ์ ์ค์น ๋ฐฉ๋ฒ๊ณผ ๋์ผํฉ๋๋ค.
- Build from source ์ดํ๋ฅผ ์ด์์ฒด์ ์ ๋ง๊ฒ ์คํํจ. ๋ชจ๋ Python ๊ธฐ๋ฐ ํ๊ฒฝ์ ๊ตฌ์ถํ๊ณ ๊ด๋ จ ์ข ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ค์นํ๊ณ ๋น๋ ํฉ๋๋ค.
- Python ๊ธฐ๋ฐ ํ๊ฒฝ ๊ตฌ์ถ : Python 3.x ๋ฒ์ ๊ถ์ฅ(Anaconda ์ค์น ํ๊ฒฝ ๊ถ์ฅ)
- ์ข ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น : ํ๊ธฐ์ ๋ช ๋ น์ด๋ฅผ Shell, Prompt ๋ฑ์์ ์คํ(๋จ, ํ์ฌ ๊ฒฝ๋ก๋ ๋ณธ ๋ ํฌ๋ก ๋์ด ์์ด์ผ ํจ)
conda install pyqt=5
conda install -c anaconda lxml
pyrcc5 -o libs/resources.py resources.qrc
pip install pyinstaller
- ์คํ ๋ฐฉ๋ฒ 1 : ์ฝ๋๋ก ์คํ
python labelImg.py
- ์คํ ๋ฐฉ๋ฒ 2 : ๋น๋ ํ์ ์คํ
cd <repo>/build-tools/
pyinstaller --hidden-import=xml --hidden-import=xml.etree --hidden-import=xml.etree.ElementTree --hidden-import=lxml.etree -D -F -n labelImg -c "../labelImg.py" -p ../libs -p ../
์ ์คํํ๋ฉด "<repo>/build-tools/build" "<repo>/build-tools/dist"๊ฐ "<repo>/build-tools/labelImg.spec"์ด ์์ฑ๋๋ฉฐ, "<repo>/build-tools/dist" ๋ด์ ๋น๋๋ ์คํํ์ผ(labelImg.exe)์ด ์์ฑ๋จ.
labelImg.exe๋ฅผ ๋๋ธํด๋ฆญํ์ฌ ์คํ.
Ctrl + u | Load all of the images from a directory |
Ctrl + r | Change the default annotation target dir |
Ctrl + s | Save |
Ctrl + d | Copy the current label and rect box |
Ctrl + Shift + d | Delete the current image |
Space | Flag the current image as verified |
w | Create a rect box |
d | Next image |
a | Previous image |
del | Delete the selected rect box |
Ctrl++ | Zoom in |
Ctrl-- | Zoom out |
โโโโ | Keyboard arrows to move selected rect box |
In case there are issues with loading the classes, you can either:
- From the top menu of the labelimg click on Menu/File/Reset All
- Remove the .labelImgSettings.pkl from your home directory. In Linux and Mac you can do:
- rm ~/.labelImgSettings.pkl
Citation: Tzutalin. LabelImg. Git code (2015). https://github.com/tzutalin/labelImg
- ImageNet Utils to download image, create a label text for machine learning, etc
- Use Docker to run labelImg
- Generating the PASCAL VOC TFRecord files
- App Icon based on Icon by Nick Roach (GPL)
- Setup python development in vscode
- The link of this project on iHub platform