LabelImg is a graphical image annotation tool.
It is written in Python and uses Qt for its graphical interface.
This fork of the library has been streamlined for usage by Queen's University Autodrive.
Install Git Bash if not already
Install Python if not already (Python Version >= 3.6)
- Open git bash and clone repository in desired directory.
git clone https://github.com/queens-autodrive/labelImg.git
- change directory into repository and run setup script.
cd labelImg
./buildscripts/win-setup.sh
- Change directory into repository root (
/labelImg
) - Launch labelImg (
python labelImg.py
) - Open image folder #TODO figure out image repo git lfs?
- on left toolbar click "PascalVOC" button to switch to YOLO format. #TODO remove other options
- click 'Create RectBox'
- Click and release left mouse to select a region to annotate the rectbox
- You can use right mouse to drag the rect box to copy or move it
This will create a txt file of YOLO format in the same folder as the image, with the same filename.
- You can refer to the below hotkeys to speed up your workflow.
- During annotation DO NOT ENTER NEW CLASS LABELS
- Your label list must not change existing labels in the middle of processing a set of images as previous annotations will not be updated.
- To propose additional class labels, please submit a pull request to update "data/predefined_classes.txt"
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 |
Citation: Tzutalin. LabelImg. Git code (2015). https://github.com/tzutalin/labelImg