Skip to content

๐Ÿ–๏ธ LabelImg is a graphical image annotation tool and label object bounding boxes in images

License

Notifications You must be signed in to change notification settings

artian7767/labelface

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LabelImg for AIDATA

์กธ์Œ์šด์ „ ์˜ˆ๋ฐฉ์„ ์œ„ํ•œ ์šด์ „์ž ์ƒํƒœ ์ •๋ณด (ํ†ต์ œํ™˜๊ฒฝ) ๋ฐ์ดํ„ฐ ๊ฐ€๊ณต์„ ์œ„ํ•œ ์–ด๋…ธํ…Œ์ด์…˜ ๋„๊ตฌ.

LabelImg ๊ธฐ๋ฐ˜์œผ๋กœ ์ž‘์„ฑ๋˜์–ด, JSON ํ˜•์‹์œผ๋กœ ์–ด๋…ธํ…Œ์ด์…˜์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.

์„ค์น˜ ๋ฐ ๋นŒ๋“œ(Installation & Build)

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๋ฅผ ๋”๋ธ”ํด๋ฆญํ•˜์—ฌ ์‹คํ–‰.

๋‹จ์ถ•ํ‚ค(Hotkeys)

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

How to reset the settings

In case there are issues with loading the classes, you can either:

  1. From the top menu of the labelimg click on Menu/File/Reset All
  2. Remove the .labelImgSettings.pkl from your home directory. In Linux and Mac you can do:
    rm ~/.labelImgSettings.pkl

License

Free software: MIT license

Citation: Tzutalin. LabelImg. Git code (2015). https://github.com/tzutalin/labelImg

Related

  1. ImageNet Utils to download image, create a label text for machine learning, etc
  2. Use Docker to run labelImg
  3. Generating the PASCAL VOC TFRecord files
  4. App Icon based on Icon by Nick Roach (GPL)
  5. Setup python development in vscode
  6. The link of this project on iHub platform

About

๐Ÿ–๏ธ LabelImg is a graphical image annotation tool and label object bounding boxes in images

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.5%
  • Shell 3.2%
  • Makefile 0.3%